Hi
Especially i m compiling my code on swf10 but especially at the
netconnection operations (sharedobject, netconnection, netstream..) i m
getting many errors.
For example at this code for swf8 everything goes fine
<canvas debug="true" height="500" width="100%">
    <attribute name="_conn"/>
    <attribute name="s1"/>
    <attribute name="s2"/>

    <handler name="oninit">
        // These lines begin broadcasting.
        this._conn = new NetConnection(); // Create connection object.
        this._conn.connect("rtmp://192.168.1.94/Red5SharedObject/"); //
Connect to server.
        s1 = new NetStream(this._conn);   // Open stream within connection.
        //s1.attachAudio(Microphone.get());   // Capture audio.
        s1.attachVideo(Camera.get());       // Capture video.
        s1.publish("todays_news");          // Begin broadcasting.

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

            this.s1.onStatus = function(info) {
                Debug.write("simpleNetStream onStatus",info);
            };
            this.s1.onCuePoint = function(info) {
                Debug.write("simpleNetStream onCuePoint",info);
            };
            this.s1.onPlayStatus = function(info) {
                Debug.write("simpleNetStream onPlayStatus",info);
            };
            this.s1.onMetaData = function(info) {
                Debug.write("simpleNetStream onMetaData",info);
            };
    </handler>

    <simplelayout/>

    <videoview id="live" width="150" height="150" type="rtmp" />

</canvas>

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 : Error: Call to a
possibly undefined method NetStream...

<switch>
            <when property="$as3">
                <passthrough>
                    import flash.net.*;
                    import flash.events.*;
                </passthrough>
            </when>
</switch>


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.

Best regards.
-- 
Cem SONMEZ

Reply via email to