PDA

View Full Version : help on looping


karlzoe
11-06-2002, 02:37 PM
i have a movie which is controlled by two buttons.

my script on the play button

on (press) {
gotoAndPlay("upward comm");
}


however i want the movie to loop, until i press the stop button. in other words the stop the loopin action.

how do i do that

simontheak
11-06-2002, 03:14 PM
Just put
gotoAndPlay("upward comm")

at the end of your animation ... that will send it back to the beginning again and keep it looping until you hit the stop button.
On the stop button just have something like

on (release){
movieInstanceName.stop();
}

karlzoe
11-06-2002, 03:20 PM
i tried that already but it does not go back to play it.
i will try again..

thanks.

by the way i am still accepting responses

simontheak
11-06-2002, 03:25 PM
Ok - let me know what happens.

karlzoe
11-06-2002, 03:33 PM
nah...same thing it does not go back to the frame to enable looping

simontheak
11-06-2002, 03:47 PM
Mmmm - that's wierd. What happens if you replace your frame label with the number 1?

So you have:

gotoAndPlay(1);

I'm just wondering if it has anything to do with the fact that your label is two seperate words rather than one whole one whole one or two with an underscore in the middle. Have you had labels like that work in the past?

karlzoe
11-06-2002, 05:13 PM
same thing...it does not work. i have sent it to the frame number but sill the same thing happens, it stops at the frame and the frame has no stop action

karlzoe
11-07-2002, 12:11 PM
the problem was i had a stop action in the frame i was sending it to. i had place the the action to stop the movie from playing before i told it to. but now i have sorted every thing out. thanks a million...hell a trillion