Link to home
Start Free TrialLog in
Avatar of winstonmortimor
winstonmortimor

asked on

removing an flv file after playback is complete

playing an flv file using Flash 8 video playback component.  
how do i completely remove/close/unload the flv file when playback has finished?

tried:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
    // insert event-handling code here
      myFLVplybk.close();
};
myFLVplybk.addEventListener("complete", listenerObject);

where "myFLVplybk" is assigned as the instance name of the FLVPlayback component.

what am i doing wrong?  i want the flv to play until the end, then go disappear.

thanks!
ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial