There is a <switch> statement, you can see it's use for example in
lps/components/debugger/library.lzx

It switches on the "runtime" attribute

  <switch>
    <when runtime="dhtml">
      <!-- no debug window in DHTML, it is in its own iframe -->
    </when>
    <otherwise>
      <include href="debugger.lzx"/>
    </otherwise>
  </switch>

On Sun, Jun 1, 2008 at 8:38 AM, Raju Bitter <[EMAIL PROTECTED]>
wrote:

> I tried to run the video test in the test folder (FLV progressive):
>
> /trunk/test/video/test-video.lzx
>
>
> The compiler showed errors since the imports were missing in the AS3 files
> ERRORS:
> [/Users/laszlo/flexprojekte/swf9runtime/src/$lzc$class_mediastream.as: 94]
> line unknown: Error: Call to a possibly undefined method NetConnection.
> [/Users/laszlo/flexprojekte/swf9runtime/src/$lzc$class_mediastream.as:
> 124]
> line unknown: Error: Call to a possibly undefined method NetStream.
> [/Users/laszlo/flexprojekte/swf9runtime/src/$lzc$class_videoview.as: 18]
> line unknown: Error: Call to a possibly undefined method Sound.
>
> How do you manage addition of import statements in LZX files if the import
> statements are SWF9 runtime specific?
>
> Thanks,
> Raju
>
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to