Groups | Blog | Home
all groups > flash (macromedia) > may 2006 >

flash (macromedia) : object Listener for an FLV not working?


The Madmax
5/22/2006 10:47:59 PM
I can't figure this out I have a object listener for a flv playing through the
FLVPlayback component to close the a movie clip when the flv stops playing but
it will not work the first time but if I drag the playhead back just a bit and
play the flv again then the object listener works perfectly.

Why will it not work the first time?
The Madmax
5/22/2006 11:24:05 PM
here is my code and again I using the FLVPlayback component.

var listenerObject:Object = new Object();

listenerObject.complete = function(eventObject:Object):Void {
_root.gotoAndPlay("End");
}

my_FLVPlybk.addEventListener("complete", listenerObject);
The Madmax
5/22/2006 11:26:01 PM
Here it is again without the smiley faces?

var listenerObject: Object = new Object();

listenerObject.complete = function(eventObject: Object):Void {
_root.gotoAndPlay("End");
}

my_FLVPlybk.addEventListener("complete", listenerObject);
AddThis Social Bookmark Button