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-17, 5:45 pm

I sent this earlier in the week. Any thoughts or is this just the way it
is?

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, upon going to that cuePoint. If I jump backward to a
cuePoint, it seems that the cuePoint function isn't triggered for JUST the
cuePoint I'm jumping to, but for each one I skip over as well. It's
strange.

How does mediaDisplay.play() work? Does it act as a Rewind/Fast-Forward
or more as a gotoAndPlay? If it's the former, it seems that cuePoints
along the way are triggered. Make sense?

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