LInks in Flash CC after automatic transition to new scene are not working
I have a flash file containing three scenes- Scene1, Scene2 and Scene3. In Frame1 I have a loading screen animated with motion tween. I also include a function, which automatically transfer me to Scene2 after 10 sec. However after I go to Scene2 the buttons to go to Scene3 are not working. I've tried to remove Frame1 and then the buttons that are linking Scene2 and Scene3 are working, Do you have an idea where the problem might come from? Here is my code:
var loadNumber = 0; stop(); loadingPercents.text = loadNumber.toString() + "%"; /* Countdown Timer Counts down from a specified number of seconds. Instructions: 1. To change the length of the countdown, change the value 10 in the first line below to the number of seconds you want. */ var fl_SecondsToCountDown:Number = 10; var fl_CountDownTimerInstance:Timer = new Timer(1000, fl_SecondsToCountDown); fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler); fl_CountDownTimerInstance.start(); function fl_CountDownTimerHandler(event:TimerEvent😞void { trace(fl_SecondsToCountDown + " seconds"); fl_SecondsToCountDown--; loadNumber +=10; loadingPercents.text = loadNumber.toString() + "%"; } stage.addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler); function fl_EnterFrameHandler(event:Event😞void { if (loadNumber > 99) { gotoAndPlay(1,"Frame2"); } }and for scene3:
import fl.motion.MotionEvent; stop(); BackFromPrizes.addEventListener(MouseEvent.MOUSE_UP, goBackFromScene3); function goBackFromScene3(event: MouseEvent😞 void { gotoAndStop(1, "Scene2"); }Thanks
