I knew I was missing something with that line. Thanks a million guys. You saved 
me from a nightmare before Christmas. ha

Corban Baxter      |      rich media designer      |      www.funimation.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde
Sent: Thursday, December 22, 2005 11:35 AM
To: 'Flashcoders mailing list'
Subject: Re: [Flashcoders] flv repeating?


> 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);
>       }
> }
> 
> ns.play("DBZremake_v7_Large_Custom.flv");

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

This lines are causing your flv to repeat. The Status NetStream.Play.Stop is
set when the flv reachs the end.
Instead of ns.seek(0) try:
ns.pause(true);
ns.seek(0);

If you want to seek to the start after the flv ends.

Cheers,
Sönke

[...]

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to