PDA

View Full Version : Video Cuepoint to trigger Mov


lewisfaith
11-29-2005, 12:27 PM
Hi

After setting a cuepoint on a video import in flash 8,
how do I then tell a movie to go to frame 2 when this cue point is reached.
This seems simple but I can't understand the flash help on this function.

Thanks

lewisfaith
11-29-2005, 09:36 PM
sorted


intro.addEventListener ( "cuePoint", this );

function cuePoint ( eventObj:Object )
{
_root.mainShell.startup.gotoAndPlay(2);
}:eek:

sirebral
08-22-2007, 11:16 PM
sorted

intro.addEventListener ( "cuePoint", this );

function cuePoint ( eventObj:Object )
{
_root.mainShell.startup.gotoAndPlay(2);
}:eek:

The following works.

Here is my code in the swf that is being loaded:

var listenerObject:Object = new Object();

listenerObject.cuePoint = function(eventObject:Object):Void
{

if(eventObject.info.name == "99")
{
_root.takeQuizButton_mc._alpha = 100;
}

}

my_FLVPlayback.addEventListener("cuePoint", listenerObject);

** note that I edited the default FLVPlayback to my_FLVPlayback so I had to edit the instance name of the playback on the stage.