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.addEventLi stener("en d",myListe ner);
It doesn't work. Any ideas on what I'm doing wrong?
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.addEventLi
It doesn't work. Any ideas on what I'm doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Those viewing PAQ please make note of code change in the second post....
change that "end" to complete
myDisplay.addEventListener
function completeListener(evt_obj:O
trace("video ended");
trace(eventObject.target);
trace(eventObject.type);
}