[Laszlo-dev] lzBrowser.getInitArg swf9 issue or confusion?
Sarah Allen
sarah at ultrasaurus.com
Sun Mar 22 08:56:07 PDT 2009
yay! thanks for the quick response on a Sunday morning... we'll get
all these bugs shaken out yet!
On Mar 22, 2009, at 8:53 AM, Henry Minsky wrote:
> Oh I see the bug is that the LzBrowserService class in the LFC is not
> declared 'dynamic', so the
> check for the dependency function gives a runtime error
>
> return [].concat(lz.Browser["$lzc$getInitArg_dependencies"] ?
> lz.Browser["$lzc$getInitArg_dependencies"](this, lz.Browser, "url") :
> [])
>
> I'll fix this, and we should look for any other LFC classes that are
> not declared dynamic but might be
> the target of a constraint...
>
> On Sun, Mar 22, 2009 at 11:46 AM, Henry Minsky
> <hminsky at laszlosystems.com> wrote:
>> I'll file a bug for this regarding how constraints are evaluated in
>> swf9.
>>
>> On Sun, Mar 22, 2009 at 11:05 AM, Sarah Allen
>> <sarah at ultrasaurus.com> wrote:
>>> 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
>>
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list