Macromedia Flash Server - mediaDisplay.play(cuePoint);

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2005 > mediaDisplay.play(cuePoint);





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mediaDisplay.play(cuePoint);
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com