[Laszlo-dev] lzBrowser.getInitArg swf9 issue or confusion?

Sarah Allen sarah at ultrasaurus.com
Sun Mar 22 08:05:57 PDT 2009


ok, I'm trying to write an example of how you can embed the  
videoplayer component and parameterize the URL to play with a URL  
query param, such as:

http://localhost:8080/trunk-sandbox/test/video/test-videoplayer-url-param.lzx?debug=true&lzr=swf9&url=http:videos/good-dog.flv

this works fine in swf8.  Looking at the docs here:
http://labs.openlaszlo.org/trunk-nightly/docs/developers/browser-integration.html#d0e91864
I see that I should use lz.Browser.getInitArg  (jnstead of global.url  
as I used to).  Both work in swf8.

In swf9,  lz.Browser.getInitArg('url') works in the debugger, but when  
I put in LZX like this:

<canvas width="400" height="355">
<videoplayer id="v" url="${lz.Browser.getInitArg('url')}"  
width="100%" />
</canvas>

I get this error:
ReferenceError: Error #1069: Property $lzc$getInitArg_dependencies not  
found on LzBrowserService and there is no default value.
	at $lzc$class_$23v/$lzc$dependencies_url$v_$m1465()[/Users/sarah/lib/ 
jakarta-tomcat-5.0.30/temp/lzswf9/Users/sarah/src/svn/openlaszlo/trunk- 
sandbox/test/video/build/test-videoplayer-url-param/$lzc$class_$23v.as: 
14]
	at LzNode/applyConstraintExpr()[/private/tmp/lzswf9/lzgen34115/ 
LzNode.as:1107]
	at LzNode/__LZresolveReferences()[/private/tmp/lzswf9/lzgen34115/ 
LzNode.as:969]
	at LzNode/__LZcallInit()[/private/tmp/lzswf9/lzgen34115/LzNode.as:443]
	at LzCanvas/__LZcallInit()[/private/tmp/lzswf9/lzgen34115/LzCanvas.as: 
450]
	at LzCanvas/__LZinstantiationDone()[/private/tmp/lzswf9/lzgen34115/ 
LzCanvas.as:397]
	at LzInstantiatorService/makeSomeViews()[/private/tmp/lzswf9/ 
lzgen34115/LzInstantiatorService.as:234]
	at LzInstantiatorService/checkQ()[/private/tmp/lzswf9/lzgen34115/ 
LzInstantiatorService.as:171]
	at Function/http://adobe.com/AS3/2006/builtin::call()
	at LzEvent/sendEvent()[/private/tmp/lzswf9/lzgen34115/LzEvent.as:89]
	at LzIdleService/__idleupdate()[/private/tmp/lzswf9/lzgen34115/ 
LzIdleService.as:53]
	at LzIdleKernel$/__update()[/private/tmp/lzswf9/lzgen34115/ 
LzIdleKernel.as:25]

Can someone please translate?  Is this a bug in LzBrowserService or a  
bug in my example?  ... happy to fix either if you can point me in the  
right direction.

Thanks,
Sarah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090322/aea2f4e7/attachment.html


More information about the Laszlo-dev mailing list