Hi to everybody...I'm new in thescripts forum...
I've a big problem to make a simple Flash animated menù.
I have a FLVPlayback component where I put inside a external FLV.
TO this FLV I've mark 3 step by cuepoint. To every cuepoint I wish load an external .swf file (menù) into a empy MovieClip.
Well the movie start...The listener find the first CP1 (cuepoint1) and the animation stopped (PAUSE), a menu1.swf is loaded into a empty movieclip.
Now When I press a bottun on my menù, I WISH that the FLV go forward until the CP2 where I need to load a menu2.swf into emptyMovieclip, and afther again I want go to CP3...in loop...
//import mx.video.*;
var my_flvPb:mx.video.FLVPlayback;
my_flvPb.contentPath = "fis10.flv";
//make the CuerPoint step
my_flvPb.addASCuePoint(1, "cp1");
my_flvPb.addASCuePoint(2, "cp2");
my_flvPb.addASCuePoint(3, "cp3");
this.createEmptyMovieClip("qui", 9);
//test cuepoint
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
if (rtn_cuePt = my_flvPb.findCuePoint("cp1" , FLVPlayback.EVENT)) {
qui.loadMovie("menu.swf");
trace("the cuepoint is: " + rtn_cuePt.name);
trace(qui);
my_flvPb.pause();
}
if (rtn_cuePt = my_flvPb.findCuePoint("cp2" , FLVPlayback.EVENT)) {
qui.loadMovie("menu2.swf");
trace("Il cue point è: " + rtn_cuePt.name);
trace(qui);
my_flvPb.pause();
}
};
my_flvPb.addEventListener("cuePoint", listenerObject);
this code don't work good...may be I've bad used the if in listener.
I can't explain good my problem and You can find my project here:
http://www.walterfantauzzi.com/forum/flv_menu.zip