Your code is telling it to go back to the beginning once the video has finished:

        if(info.code == "NetStream.Play.Stop") {
                ns.seek(0);
        }

The seek() will have the stream play once it has found your spot you wish to seek to. If you didn't want it to play again, insert an ns.pause(true); after your seek.

jord

On Dec 22, 2005, at 12:19 PM, Corban Baxter wrote:

Here is pretty much all I am doing and its hand coded...

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
        trace(info.code);
        if(info.code == "NetStream.Buffer.Full") {
                bufferClip._visible = false;
        }
        if(info.code == "NetStream.Buffer.Empty") {
                bufferClip._visible = true;
        }
        if(info.code == "NetStream.Play.Stop") {
                ns.seek(0);
        }
}

--
Jordan L. Chilcott, President
Interactivity Unlimited
Guelph, Ontario
---------------------------------
Tel:  (519) 837-1879
eFax: (253) 276-8631

mailto:[EMAIL PROTECTED]
http://www.interactivityunlimited.com
iChat/AIM: j1chilcott

Author: "Building Web Sites with Macromedia Studio MX"
Author: "Building Dynamic Web Sites with Macromedia Studio MX"
Author: "Flash Professional 8: Training From the Source"


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to