If you write in LZX, you need to put it into a script block like this
so that the code doesn't
get wrapped in a closure.

<script when="immediate">
 class foo { ...
...
}
</script>


Or else it won't compile for swf9 (it might work without the
when="immediate" in dhtml and swf8, but
it's better to use it)





On Mon, Feb 9, 2009 at 9:35 PM, Max Carlson <[email protected]> wrote:
> It's definitely something we support.  The LFC is written this way...
>
> Antun Karlovac wrote:
>>
>> Hi all,
>>
>> I got a question from a developer about using JavaScript class syntax
>> (i.e. class MyClass extends SomeLFCClass {}) with LZX.
>>
>> Is that something that we now support in addition to the LZX class
>> construct? Or should we be steering the community away from it?
>>
>> Thanks,
>>
>> Antun
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to