[Laszlo-dev] Flash 10 runtime now supported in trunk

Henry Minsky hminsky at laszlosystems.com
Wed Dec 17 16:50:27 PST 2008


Also, please be aware, if you have code that you want to compile or
run conditionally on Flash 9
and Flash 10 , use the "$as3" compile time constant, so instead of

if ($swf9) { ...

say

if ($as3) { ...


In LZX code, there is a new syntax for the <switch> tag, in the <when> clause.

Formerly, you would say

<when runtime="swf9">

Now, you can conditionalize on any compile time constant, which is one of
$debug, $profile, $backtrace, $swf7, $swf8, $as2, $swf9, $swf10, $as3,
$dhtml, $j2me, $svg, $js1

The new syntax is

<switch>
  <when property="$as3">

There is actually an extension of this syntax to compare string
values, so you can say

<switch>
  <when property="$runtime" value="dhtml">

But this is of limited use, because only the $runtime property is a
string value, and all the other compile
time constants listed above are booleans.



On Wed, Dec 17, 2008 at 5:51 PM, Henry Minsky <hminsky at laszlosystems.com> wrote:
> I made a checkin (r12164)  which updates the flex compiler in the LPS
> to something that officially supports
> Flash 10. (It's actually a snapshot of their trunk, they recommended
> anything from after October 29th which was their
> milestone Flash 10 relese)
>
> The LPS now supports a lzr=swf10 runtime target, and will build Flash
> 10 LFC libf by default.
> (This can be disabled by setting build.lfc.runtime.swf10 = false in
> build.properties).
>
> The dev-console has a swf10 button you can select to compile a Flash
> 10 app. You will need to download
> the Flash 10 player, and since you're doing development you should
> install the Flash 10 debug player
> (http://www.adobe.com/support/flashplayer/downloads.html)
> for maximum debugging goodness.
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list