<passthrough>
tells the class compiler to
import SWF10 declarations. For example, in
lps/components/extensions/av/microphone.lzx
:
<class name="microphone" extends="mediadevice"> <passthrough when="$as3"> import flash.media.*; </passthrough> ...
You can also use passthrough
in script. For example, in
lps/components/extensions/drawview.lzx
:
<script when="immediate"><![CDATA[ // Classes that implement an interface must obey the LZX // tag->class mapping convention and must be dynamic dynamic class $lzc$class_drawview extends LzView with DrawviewShared { if ($as3) { #passthrough (toplevel:true) { import flash.geom.Matrix; import flash.geom.Rectangle; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Graphics; import flash.display.Sprite; }# } ...
toplevel:true
makes the swf10 backend put the code outside
of and before the class declaration (the only place that
import
statements can go).
The possible compile time constants are:
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.