gotoAndPlay("Scene 2", 1); - How do I get flash to finish the current scene before moving to the next?

Ask a Question related to Adobe Flash, Flex & Director, Design and Development.

  1. #1

    Default gotoAndPlay("Scene 2", 1); - How do I get flash to finish the current scene before moving to the next?

    Okay I have 2 scenes, the first of which has an animation which stops in the
    middle. I also have a button in this scene which has the following action
    attached to it

    on (press)
    {
    gotoAndPlay("Scene 2", 1);
    }

    When pressed it obviously goes to scene 2, frame 1. What I want it to do
    though is finish the current movie before jumping to the next.

    Does that make sense?

    Many thanks

    Dan Bowles



    Dan B Guest

  2. Similar Questions and Discussions

    1. Flash movie freezes after "scene" in IEv.6
      Hello, I made a flash movie with scenes linking photos from one another with transitions. For some odd reason it works fine in Firefox, and the...
    2. movieclip scene to scene navigation
      I have three scenes. There is a movie clip, mc_navigate, which has 2 buttons nested with in. I would like to use these buttons to navigate from...
    3. Change scene and start mc on the new scene...
      Hi, I've got one swf with two scenes. The scene2 contains all the content of my site. This scene have a navigator (mc) with buttons holding...
    4. pre-load scene by scene
      Hi :) I have a fla with a lote of sene inside how car a have a pre-load movies for each scene please ? I know how have one for all the movie clip...
    5. One frame scene verses alot of frames scene
      Hello I have a question. I am working on my own web design website which is www.smoovejcmedia.tfang.org. On my first scene and its only that scene I...
  3. #2

    Default Re: gotoAndPlay("Scene 2", 1); - How do I get flash to finish the current scene before moving to the next?

    you need to start reading help and tutorials, you got it all wrong,

    and the action script isn't simple!!!

    "Dan B" <dan@happyREMOVElobster.co.uk> wrote in message
    news:bo8u70$d2f$1@newsg2.svr.pol.co.uk...
    > Okay I have 2 scenes, the first of which has an animation which stops in
    the
    > middle. I also have a button in this scene which has the following action
    > attached to it
    >
    > on (press)
    > {
    > gotoAndPlay("Scene 2", 1);
    > }
    >
    > When pressed it obviously goes to scene 2, frame 1. What I want it to do
    > though is finish the current movie before jumping to the next.
    >
    > Does that make sense?
    >
    > Many thanks
    >
    > Dan Bowles
    >
    >
    >

    Master Kristijan Stuhli Guest

  4. #3

    Default Re: gotoAndPlay("Scene 2", 1); - How do I get flash to finish the current scene before moving to the next?


    "Master Kristijan Stuhli" <kristina.stuhli@public.srce.hr> wrote in message
    news:bo9afa$u5u$1@bagan.srce.hr...
    > you need to start reading help and tutorials, you got it all wrong,
    >
    > and the action script isn't simple!!!
    >
    Okay thanks but that doesnt really help does it. I assume that you cant help
    me but im sure someone in here has the knowledge to point me in the right
    direction. Please?

    Many thanks

    Dan B


    Dan B Guest

  5. #4

    Default Re: gotoAndPlay("Scene 2", 1); - How do I get flash to finish the current scene befo

    Assuming AS2
    Tried this?:

    on(Press)
    {
    if(_root._currentframe==_root.totalframes)
    {
    gotoAndPlay("Scene 2",1);
    }
    }

    Not sure if you need the _roots :P

    Or if that somehow doesn't work:

    on(Press)
    {
    pressing = true;
    }
    if(pressing==true && _root._currentframe==_root.totalframes)
    {
    gotoAndPlay("Scene 2",1);
    }
    Last edited by ShadowSeeker; December 13th at 09:06 PM.
    ShadowSeeker is offline Junior Member
    Join Date
    Dec 2011
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139