| Brandon_Krakowsky-A5pIpylr7pFSljaRc5+PrA@publi 2005-06-15, 8:45 pm |
| I have a listener on my mediaDisplay instance.
*******************
var myCuePointListener = new Object();
myCuePointListener.cuePoint = function(eventObject){
var cueName = eventObject.cuePointName;
someFunction(cueName);
}
speakerVid.addEventListener("cuePoint", myCuePointListener);
*******************
It runs a function every time a cuePoint comes up. I have a menu on the
main stage which jumps to different cuePoints in the video using
mediaDisplay.play(cuePoint). If I skip forward to another cuePoint, the
function runs once. If I jump backward to a cuePoint, it runs the
function the number of cuePoints I'm stepping backward.
Any way to avoid this?
Thanks,
Brandon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|