Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On release Button problem..

Status
Not open for further replies.

Firehawk734

Technical User
Jan 22, 2002
155
US
Hey,

I want to make a button that after the user rolls off the button, it slowly goes back to the original form it was in before the user moved over it.

For example, If I have a button that maybe lights up slowly when the user rolls over it, I want the button to dim slowly after the user rolls off.

How do you make a button do that without the button playing the dim part as it loads up???

I am thinking you make another movie clip for the up part of the button, but if you do that, when the button first loads up the movie clip plays. I dont want that to happen.

Hope this is somewhat clear. Thanks
 
Is the dimming the exact reverse of the lighting up? Does it dim completely? Does it start from nothing?
Need to clear up your thoughts! Regards,

new.gif
 
check out... the top buttons, when u roll over the button it has something come from the side, then when u roll off, it goes off the other side.

This could work if I had another clip for the "up" position, but problem is that upon loading of the button, it would play in the up position just after it loads.
 
ok, i think i get it....
use blank button (just put a graphic the same size if image in the hit area).
In your buttonMC have the button the complete length of the movie. Have a stop() on frame 1. label frame 2 "show".
Tween your graphic from frame 2 to 12 - using alpha etc. Stop on frame (12). frame 13 label "hide" tween graphic back to dim over 10 frames. gotoandstop(1) on frame 23.
On (rollover){
this.gotoAndPlay("show")
}
On (rollout){
this.gotoAndPlay("hide")
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top