Exactly this I did a while ago, but I cannot fully remember how I did it, even after taking a look at the flash file again.
All I remember is, that I created film objects with the three states of the button in one layer. two frames unaffected, after that the animation sequence of “mouse over”, after that the animation sequence of “mouse out”. I also created labels for these animation sequences for the gotoAndPlay command. And on each of the states’ (unaffected, mouse over, mouse out) last frames I put an stop() command (double click these frames).
From the main movie I somehow took the still versions of the buttons, declared them as buttons and wrote some Action Script - but heck, I cannot figure out, where or on what I did apply these scripts - I can view them in the Film-Explorer and these scripts are somehow applied on these buttons :shrug:
Anyway, here is one sample script:
on(rollOver){
tellTarget(“name_of_the_animated_button_film_object”){
gotoAndPlay(“mouse over”);
}
}
on(rollOut){
tellTarget(“name_of_the_animated_button_film_object”){
gotoAndPlay(“mouse out”);
}
}
on(release){
the desired event after button is clicked
(for example: getURL(“URL”, “target --> _blank or _self”);
}
Hum… I hope this helps :shrug:
Maybe someone can fill the gaps in my explanation, since I don’t fully figure this out…


Btw, I’m deciding on the button styles now, in the long run, they’ll all have the same text style.