Link to home
Start Free TrialLog in
Avatar of clickclickbang
clickclickbang

asked on

Help With Listener and FLV

I'm trying to tell when my FLV is completed playing. I have a one frame flash doc with the FLVPlayback instance in the root and named correctly.

I have this in the timeline:

var MyListener = new Object();
myListener.end = function(eventObject):Void
{
      trace("video ended");
      trace(eventObject.target);
      trace(eventObject.type);
      
}

_root.myDisplay.addEventListener("end",myListener);

It doesn't work. Any ideas on what I'm doing wrong?

ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa 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
wait wait,
change that "end" to complete

myDisplay.addEventListener("complete", completeListener);
function completeListener(evt_obj:Object):Void {
trace("video ended");
trace(eventObject.target);
 trace(eventObject.type);
      
}
Avatar of clickclickbang
clickclickbang

ASKER

Those viewing PAQ please make note of code change in the second post....