;

PDA

Click to See Complete Forum and Search --> : can't add eventListener to FLV...?


ccbayer
07-03-2008, 11:34 AM
Hey guys,
I want to add a simple "play again" button when my FLV stops playing. Pretty simple, right? For whatever reason I can't add an eventListener when my video stops though. I can't even trace anything. the video loads i can dynamically change the volume so it's not like i'm referencing it wrong or something like that. Any ideas?

//stop swf playback
stop();
import mx.video.*;
//load .flv
_root.myFlv.contentPath = "../iron.flv";

//new listener to show "play again" btn
var listenerObject:Object = new Object();
_root.myFlv.addEventListener("complete", listenerObject);
listenerObject.complete = function(eventObject:Object):Void {
replayBtn._alpha = 100;
};

dan_hin
07-10-2008, 07:01 AM
that ; at the end of your code wouldn't have anything to do with it, would it?