PDA

View Full Version : play through button onrollout


mojo1210
11-26-2003, 06:20 PM
the question that I have is quit simple, but i really dont have the experience to figure it out. I have been reading and searching this forum for a while, but I still cant figure out what i want to do

i have no problem getting my movie clip to play when i rollover a hidden button. the problem that I have is that when I roll my mouse out, I want the movie clip to play the entire way through and stop at the end, rather then abruptly stoping. (so in this movie i want the pulse to play through and keep playing when the mouse is over it, but when the mouse rolls out i want the pulse to play through and stop). i hope this question is clear, if not sorry, my appologies.

thanks

binkyboo
11-26-2003, 06:36 PM
Here ya go! At the end of your pulse clip it's checking to see if the user has rolled out of the button.

mojo1210
11-26-2003, 06:39 PM
thanks for your help....i really appreciate it!!!!!!

binkyboo
11-26-2003, 06:40 PM
I'm sorry, you'll also need to reset the variable. Place this on your button.

on (rollOver) {
// this was added to the file I provided.
rolledOut = false;
pulse.gotoAndPlay(1);
}
on (rollOut) {
rolledOut = true;
}

mojo1210
12-01-2003, 03:36 AM
im just going to top this thread instead of creating a new one, since it deals with what i talked about earlier in a way.

say i have two of these buttons. within each button there is a movie clip that has an image fade in and out. the image reacts in the same manner as the pulse. it plays through even after the button is rolled out from. what i want to happen is that when one of the buttons is rolled over and the image is fading in or out, if the other button is rolled over i dont want its image to play if the first image is playing through its movie clip. ive tried using true false tags but i cant get that to work.

so for this file, i dont want the blue square to appear if the red square is visible or vis versa.

mojo1210
12-07-2003, 02:15 AM
anyone?

Fugee
12-07-2003, 08:46 AM
This is an example I made.
The code you need is on the buttons, on the last frame of the clips you are fading and the most important part is on the empty clip that's in the level called "checker".

Hope this sorts it out! :)

mojo1210
12-08-2003, 08:18 PM
thanks for that, after messing around with what you gave me i got the whole thing to work like I want it to.

thanks for the help

if anyone is interested here is the final file if you want if for yourself

Fugee
12-09-2003, 11:20 AM
Glad it helped! :)