This compiles for me in swf10 without error in trunk<br><br>&lt;canvas debug=&quot;true&quot; height=&quot;500&quot; width=&quot;100%&quot;&gt;<br>    &lt;attribute name=&quot;_conn&quot;/&gt;<br>    &lt;attribute name=&quot;s1&quot;/&gt;<br>

    &lt;attribute name=&quot;s2&quot;/&gt;<br><br>    &lt;switch&gt;<br>      &lt;when property=&quot;$as3&quot;&gt;<br>        &lt;passthrough&gt;<br>          import flash.net.*;<br>          import flash.events.*;<br>
          import flash.media.Camera;<br>
          import flash.media.Video;<br>          import flash.media.Microphone;<br><br>        &lt;/passthrough&gt;<br>      &lt;/when&gt;<br>    &lt;/switch&gt;<br><br>    &lt;handler name=&quot;oninit&quot;&gt;<br>        // These lines begin broadcasting.<br>

        this._conn = new NetConnection(); // Create connection object.<br>        this._conn.connect(&quot;rtmp://<a href="http://192.168.1.94/Red5SharedObject/">192.168.1.94/Red5SharedObject/</a>&quot;); // Connect to server.<br>

        s1 = new NetStream(this._conn);   // Open stream within connection.<br>        //s1.attachAudio(Microphone.get());   // Capture audio.<br>        s1.attachVideo(Camera.getCamera());       // Capture video.<br>        s1.publish(&quot;todays_news&quot;);          // Begin broadcasting.<br>

<br>        s2 = new NetStream(this._conn);<br>        live._attachStream(s2); // Specify where to display video.<br>        s2.play(&quot;todays_news&quot;); // play() uses the same name as publish() above.<br>       <br>

            this.s1.onStatus = function(info) {<br>                Debug.write(&quot;simpleNetStream onStatus&quot;,info);<br>            };<br>            this.s1.onCuePoint = function(info) {<br>                Debug.write(&quot;simpleNetStream onCuePoint&quot;,info);<br>

            };<br>            this.s1.onPlayStatus = function(info) {<br>                Debug.write(&quot;simpleNetStream onPlayStatus&quot;,info);<br>            };<br>            this.s1.onMetaData = function(info) {<br>

                Debug.write(&quot;simpleNetStream onMetaData&quot;,info);<br>            };       <br>    &lt;/handler&gt;<br>       <br>    &lt;simplelayout/&gt;<br>   <br>    &lt;videoview id=&quot;live&quot; width=&quot;150&quot; height=&quot;150&quot; type=&quot;rtmp&quot; /&gt;<br>

<br><br>       <br>&lt;/canvas&gt;<br><br><br><br><br><br><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 7:05 AM, cem sonmez <span dir="ltr">&lt;<a href="mailto:cemosonmez@gmail.com">cemosonmez@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi <br>Especially i m compiling my code on swf10 but especially at the netconnection operations (sharedobject, netconnection, netstream..) i m getting many errors.<br>

For example at this code for swf8 everything goes fine <br>
&lt;canvas debug=&quot;true&quot; height=&quot;500&quot; width=&quot;100%&quot;&gt;<br>    &lt;attribute name=&quot;_conn&quot;/&gt;<br>    &lt;attribute name=&quot;s1&quot;/&gt;<br>    &lt;attribute name=&quot;s2&quot;/&gt;<br>


<br>    &lt;handler name=&quot;oninit&quot;&gt;<br>        // These lines begin broadcasting.<br>        this._conn = new NetConnection(); // Create connection object.<br>        this._conn.connect(&quot;rtmp://<a href="http://192.168.1.94/Red5SharedObject/" target="_blank">192.168.1.94/Red5SharedObject/</a>&quot;); // Connect to server.<br>


        s1 = new NetStream(this._conn);   // Open stream within connection.<br>        //s1.attachAudio(Microphone.get());   // Capture audio.<br>        s1.attachVideo(Camera.get());       // Capture video.<br>        s1.publish(&quot;todays_news&quot;);          // Begin broadcasting.<br>


<br>        s2 = new NetStream(this._conn);<br>        live._attachStream(s2); // Specify where to display video.<br>        s2.play(&quot;todays_news&quot;); // play() uses the same name as publish() above.<br>        <br>


            this.s1.onStatus = function(info) {<br>                Debug.write(&quot;simpleNetStream onStatus&quot;,info);<br>            };<br>            this.s1.onCuePoint = function(info) {<br>                Debug.write(&quot;simpleNetStream onCuePoint&quot;,info);<br>


            };<br>            this.s1.onPlayStatus = function(info) {<br>                Debug.write(&quot;simpleNetStream onPlayStatus&quot;,info);<br>            };<br>            this.s1.onMetaData = function(info) {<br>


                Debug.write(&quot;simpleNetStream onMetaData&quot;,info);<br>            };        <br>    &lt;/handler&gt;<br>        <br>    &lt;simplelayout/&gt;<br>    <br>    &lt;videoview id=&quot;live&quot; width=&quot;150&quot; height=&quot;150&quot; type=&quot;rtmp&quot; /&gt;<br>


        <br>&lt;/canvas&gt;<br><br>But when i try the same operations with as3 way on swf10. Althought i have added lines below in order to add the flash classes to the application for as3, e.g last problem about this issue is an error, like : <code>Error: Call to a possibly undefined method NetStream...</code><br>


<br>&lt;switch&gt;<br>            &lt;when property=&quot;$as3&quot;&gt;<br>                &lt;passthrough&gt;<br>                    import flash.net.*;<br>                    import flash.events.*;<br>                &lt;/passthrough&gt;<br>


            &lt;/when&gt;<br>&lt;/switch&gt;<br><br><br>I am planning to try my applications just on swf10 env. But most of the time, it is a bit harder than swf8 to work without problem. Do you suggest swf10 development on openlaszlo platform for now. <br>


<br>Best regards. <br>-- <br><font color="#888888">Cem SONMEZ<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>