Hi!
Which of the 4 button events make that an effect appears when the mouse goes AWAY FROM the button?
For example when the mouse goes OVER the button => fade in. This is the OVER event of the button. What about fade out when the mouse “leaves” the button?
mx-guest2004
rollOut
erm i think he means which button state…
if so make the up a movie clip with stop AS in places then use the rollOut event handler to work out which part of the movieclip to go to…
depending on what you want you may need to include simple variables… but i dunno coz ur not very specific…
hope thet helps/understandable
Prophet.
You know, we have 4 states for a button, as you mentioned: Up, Over, Down and Hit.
I have made an effect for Over (fade in). This works. Now I want to make an effect such that when the mouse goes from the button (without hitting) the button fades out. I hope you understand me better now
mx-guest2004
My question is about the button itself, not what it does when been released.
mx-guest2004
yes, ther is just 4 states - there is no roll out state… so u hav to make 1
do wat i said and it will wok.
wen u use the rollOut handler it is when you move your cursor off it regardless of whether or not youve clicked…
anyway… it turns out i lied slightly…
u wanna set a var wenu roll over the button and have as on the first frame of your buttons up states mc saying gotoAndPlay(2) [if its just play() you will get a flicker of first frame] if the variable is true and u hav to remember to reset the var in the last frame of your rolling out anim…
see attached… and dont laugh - i did it in 2 mins and its 2 am!!
Prophet.
Thanks Prophet,
You gave me the main idea and this is a good help to get.
mx-guest2004
hey phophet,
here’s the code you entered for the button
on (rollOver) {
_root.rollinOut = true
}
right?
shouldn’t it be rollOut instead? (althought ur attachment works):puzzle: