-
FLV Cue Points - gotoAndPlay
I currently have a FLV playback component on the stage along with a movie clip "image_mc".
The FLV has navigation cuePoints embeded in the video ("Slide1", "Slide2", etc.)
The trace command is reading the cuePoints in the output panel.
How to I make it go inside "image_mc" and gotoAndStop frame 2, 3, 4, etc.
This is my AS code...
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Cue point name: " + eventObject.info.name);
trace("Cue point type: " + eventObject.info.type);
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
Thanks
-
Dignitary
Code:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
if(eventObject.info.name == "whatever"){
image_mc.gotoAndStop(2);
}
else if(eventObject.info.name == "whatever"){
image_mc.gotoAndStop(3);
}
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
edit: switching both "whatever's" whith the actual name of the cuepoint
Last edited by rynoe; 03-13-2008 at 03:51 PM.
[SIGPIC][/SIGPIC]
-
And how would you do to have the same plus the navigation ability? The FLV has navigation's cuepoints but i need buttons to send the video + the slides to the right time.
Thank you in advance
-
I would check the documentation for the FLVplayback component in the AS2 livedocs. This will give you a better worded explanation than I ever could!
http://livedocs.adobe.com/flash/9.0/..._reference.pdf
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|