Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Stopping an external FLV after it finishes playing

Cow Forums : Adobe Flash
Stopping an external FLV after it finishes playing
by lionel77li on Jul 22, 2005 at 7:04:03 am

How do I stop an external FLV from playing again (looping) after it finishes playing?

Respond to this post   •   Return to posts index

Re: Stopping an external FLV after it finishes playing
by Richard on Jul 22, 2005 at 10:52:03 pm

by using the NetStream onStatus event handler.

// onStatus events
myNS.onStatus = function(info) {
if (info.code == "NetStream.Play.Stop") {
myNS.seek(0);
myNS.pause();
}
};

Basically, whenever your player starts, stops, or pauses this "onStatus" is triggered. You can use a "if" to check what state it just hit, and if it's a "NetStream.Play.Stop", then you issue commands accordingly.

-Richard


Respond to this post   •   Return to posts index

Re: Stopping an external FLV after it finishes playing
by lionel77li on Jul 23, 2005 at 4:29:44 am

Got it. And it works. Thanks Richard.

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]