Professional Web Applications Themes

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

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...

  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. #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" <danhappyREMOVElobster.co.uk> wrote in message
    news:bo8u70$d2f$1newsg2.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

  3. #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.stuhlipublic.srce.hr> wrote in message
    news:bo9afa$u5u$1bagan.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

  4. #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 10:06 PM.
    ShadowSeeker is offline Junior Member
    Join Date
    Dec 2011
    Posts
    1

Similar Threads

  1. Flash movie freezes after "scene" in IEv.6
    By Jonnymm in forum Macromedia Flash Player
    Replies: 0
    Last Post: September 29th, 12:13 PM
  2. another question to finish installing PayPal "Buy Now"button
    By cello book in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: August 23rd, 07:33 AM
  3. Can't Finish "Send Connection Key"
    By RussianBlue in forum Macromedia Contribute Connection Administrtion
    Replies: 3
    Last Post: March 30th, 12:31 PM
  4. gotoandplay doesn't "gotoandplay"
    By Bianca in forum Macromedia Flash
    Replies: 3
    Last Post: January 21st, 05:14 PM
  5. gotoAndPlay in different Scene's
    By Sam Granger webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 3
    Last Post: September 29th, 03:02 PM

Bookmarks

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