OK, I am stumped. I have three scenes in my movie. Scene 1 is a simple intro
animation. Scenes 2 and 3 each contain mediadisplay components that play
external FLV files. I am able to get flash to jump from scene 1 to scene 2
without problem. I am also able to get scene 2 jump to scene 3 using the "
displayListener.complete" function. This works well... once the video in scene
2 is done, scene 3 loads and the video plays without problem. I would now like
to add a button that allows the user to skip from any point in scene 2 to scene
3, thus allowing the user to not have watch the entire video just to get to the
next scene. The way I have it now, once you click the button, it stops playing
scene two and takes you to a static shot of the media displayPlayback. Scene 3
doesn't play at all. I am really stumped. I attached my code for scene 2
below. Anyone know how I can code it so that the button can take the user from
scene 2 to scene 3 and also have scene 3 play???
stop();
display.autoPlay = true;
display.activePlayControl = true;
display.controllerPolicy = "on";
display.totalTime = 56;
var displayListener:Object = new Object();
displayListener.complete = function(){
gotoAndPlay("scene_3", 1);
}
displayListener.cuePoint = function(eventObj:Object){
var index = Number(eventObj.target.name);
cue_txt.text = cueTextArray[index];
}
display.addEventListener("cuePoint", displayListener);
display.addEventListener("complete", displayListener);
display.addCuePoint("0", 1)
display.addCuePoint("1", 8)
display.addCuePoint("2", 14)
display.addCuePoint("3", 31)
display.addCuePoint("4", 35)
display.addCuePoint("5", 53)
display.addCuePoint("6", 56)
var cueTextArray:Array = new Array();
cueTextArray[0] = "one";
cueTextArray[1] = "two";
cueTextArray[2] = "three";
cueTextArray[3] = "four";
cueTextArray[4] = "five";
cueTextArray[5] = "six";
cueTextArray[6] = "seven";
display.setMedia("scene2_clip.flv", "FLV");
btn_next_intro.onRelease = function(){
display.stop();
gotoAndPlay("scene_3", 1);
}