Easing with Mouse Click

I’m thinking up new ideas that are always WAY above my knowledge level BUT …

I was checking out the Tutorial @ http://www.kirupa.com/developer/mx/easing_mouseclick.htm and it got me to thinking, that would be a great way to show which button you last clicked.

How hard would it be to have that Ease with Mouse Click work, and stay put on the buttons in the site, I think it’d get pretty confusing if it eased on over to every url you clicked. Also, I want to use some scrolling menu’s, would it be possable to have the dot/png/graphic stick to that button until another is clicked?

I know I probably just asked about four posts worth of stuff, but I’m just brainstorming right now.

K, back to work, enough day dreaming,
Justin:geek:

if i understand what you want then yes its easy to do… you want a dot to ease to the last button clicked?.. ill make you an example fla

what i did was make a button inside of a movie clip… because accessing the x and y of a button doesnt work too well for some reason… so anyway i have 3 buttons within movie clips… the movie clips named b1 b2 and b3… and the dot is named dot… inside dot i declared variables endx and endy on the load… on the buttons… the code gets the x and y of its parent movie clip, and assigns it to the endx and endy in the dot mc. then in the dot on the enter frame i have the easing formula (there is a tutorial on it) but the formula is

_x += (endx-_x)/speed;
_y += (endx-_y)/speed;

and the higher speed is the slower it moves… hope this helps

I have been trying to figure out the same thing (how to attach an ease to a button click) and have been getting all sorts of debugging errors when I tried to do it.

Thanks for posting a solution to this!

glad i could help