[Laszlo-dev] Is there a way to make this work in both swf8 and swf9 ?

Henry Minsky henry.minsky at gmail.com
Sun Oct 5 14:45:17 PDT 2008


>
>
> It should work in both runtimes to just leave out the name of the class,
> since static vars are 'in scope' of the class body.
>

OK that works for that case, but there's another case that's causing an
error in swf8, which is when the thing tries to instantiate an instance of
itself as a static var initializer, e.g.,

public class LzQName {
static var XSD_STRING =
    new LzQName("string", LzNamespace.URI_DEFAULT_SCHEMA_XSD);


<a title="#75">ERROR @rpc/library/qname.js#130: call to undefined function
'LzQName'</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081005/9b7f7a33/attachment.html


More information about the Laszlo-dev mailing list