Skip to main content
transistor06
Known Participant
August 24, 2010
Answered

.flv with command at the end

  • August 24, 2010
  • 1 reply
  • 443 views

Hey there,

I have created a SWF file that streams an FLV file.

What I would like to do, is have an actionscript command activate AFTER the FLV has played to the end of the movie.

Is there a code for something like this?

This topic has been closed for replies.
Correct answer kglad

you can use:

var lo:Object = new Object();

lo.complete = function(eventObject:Object):Void {

//your as command

};

yourFLVPBC.addEventListener("complete", lo);

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 24, 2010

you can use:

var lo:Object = new Object();

lo.complete = function(eventObject:Object):Void {

//your as command

};

yourFLVPBC.addEventListener("complete", lo);

transistor06
Known Participant
August 25, 2010

great! works beautifuly.


kglad
Community Expert
Community Expert
August 25, 2010

you're welcome.