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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button (UP) question 1

Status
Not open for further replies.

Firehawk734

Technical User
Jan 22, 2002
155
US
Hey gang...

I want to make a button that for example...

When you roll over it, something slides across the button from left to right, slowly. This part I can do.

But rather than when you roll off of it, the slide just disappears and resets, I want it to slide back from right to left SLOWLY. So to sum it up, I need to know how to make a button return to its up state slowly, rather than instantly.

I did make a button one time that did accomplish this, but when the button would first play, it would play the "up state" initially and I dont want that.


Please, keep the script as simple as you can because I am a beginner with script.
 
Like this:

Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
Yes something just like that. Now hopefully I can follow it. Thanks sir.
 
THat is a complicated sequence of actionscript (to me) for doing something so simple it seems heh.

What does it mean when you type area.targetx ?

Is that saying area is the instance name and targetx is the variable?

Sheesh.

Also, is that actionscript the way that you get a slider like that to gradually stop?? I have been attempting to do it with basic tweening.
 
Dave,

If i wanted to (for example in an intro i make) slide a clip of text Like "this is how we do it" across the screen and gradually stop like that slider does so smoothly in that button clip u made for me, what changes would I have to make in order to do that?
 
What does Go mean?? By the way thats what I wanted.

How does the script know that "go" is the trigger for move?

Is it a generic word?? Ugh heheh.

Thx for the help
 
Dave, How do I do something like this in reverse..i.e. If I want to make something go from a slow to gradual fast movement.

The one you showed me goes from fast to slow to stop. Now how do you go from stop to slow to fast?
 
try this


reverse motion tween:

on (press) {
while (_root._currentFrame > 2) {
_root.gotoAndStop (_root._currentFrame-1);
}
}
 
I dont really know where to put that. Where do I put it?? Right on the movie clip I am reversing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top