Skip to main content
Participating Frequently
April 15, 2018
Answered

Load next 'scene' after into movie?

  • April 15, 2018
  • 1 reply
  • 383 views

I am a beginner and using Flash CS6.

I have embedded a FLV movie to play when the swf/app starts. If I were to have say a menu screen after the movie plays, what's the correct way to do this. And this includes if you clicked the intro movie also before it ended on it's on accord?

If you can help, tell me like I am 5 years old lol.

thanks

    This topic has been closed for replies.
    Correct answer kglad

    this.addEventListener(MouseEvent.MOUSE_DOWN,downF);

    function downF(e:MouseEvent):void{

    this.gotoAndStop(frame name or number);  // or gotoAndPlay

    }

    1 reply

    kglad
    Community Expert
    Community Expert
    April 15, 2018
    rams009Author
    Participating Frequently
    April 15, 2018

    as 3.0. I found the answer to stopping the movie part. I create a new layer. go to frame 1600(end of movie) and create a keyframe and add stop();.

    Seems to work ok. I need to move onto the next scene at frame 1600 though. I believe I have to add an event listener and if you want to move to the next scene if screen is touched youI add a touch event. Any ideas of the as 3.0 code. ?

    thanks

    kglad
    Community Expert
    Community Expert
    April 16, 2018

    I tried your code and got no errors after compiling, however I tested it by putting it on frame 100(just for testing) but how would I use this code so that it is triggered throughout all 1600 frames.

    So far I have added the FLV in layer 1 and scene 1. I have added a second layer in scene 1 called actions and have added a keyframe at frame 1600 with code stop();  This all worls fine and the FLV doesn't loop.

    At the moment in scene 2 all I have is a image which will be the menu screen eventually.

    So I need FLV --> Touch event up to 1600 frames --> Scene 2.

    So which frame would I put your code on so that it is active throughout all 1600 frames?

    I have searched alot but there doesn't seem to be too much info on flash etc.

    thanks again.


    put the code in frame 1.