Thanks, Henry. Based on the draview code (
http://svn.openlaszlo.org/openlaszlo/trunk/lps/components/extensions/drawvie
w.lzx) I came up with this. Doesn¹t work though...

<library>
  <switch>
    <when runtime="swf9">
        <script when="immediate">
             #passthrough (toplevel:true) {
                import flash.net.NetConnection;
             }#
        </script>
    </when>
  </switch>

    <!--
        Media stream.

        @START_CODE
            <mediastream/>
        @END_CODE
    -->
    <class name="mediastream" extends="node">

Probably misunderstood something here..

Best,
Raju


Am 01.06.2008 16:13 Uhr schrieb "Henry Minsky" unter
<[EMAIL PROTECTED]>:

> 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
>> <http://class_mediastream.as> : 94]
>> line unknown: Error: Call to a possibly undefined method NetConnection.
>> [/Users/laszlo/flexprojekte/swf9runtime/src/$lzc$class_mediastream.as
>> <http://class_mediastream.as> : 124]
>> line unknown: Error: Call to a possibly undefined method NetStream.
>> [/Users/laszlo/flexprojekte/swf9runtime/src/$lzc$class_videoview.as
>> <http://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
>> 
>> 
> 
> 


Reply via email to