PDA

View Full Version : Easing movement from forward and backward buttons.


wownflutter
02-07-2006, 04:30 AM
Hi

I am trying to set up a long horizontal movie clip which will be eased to different points from a forward and a backward button.

I would love to have this done simply via targeting x axis values, but realize this may be best just with "advancing forward" a set number of frames.

But, I still need easing.

How can I code the button to move set amounts of x axis with easing?

Thanks for any help

oldnewbie
02-07-2006, 04:40 AM
You can look into "barney" type sliders (that have easing...) and using 2 buttons , especially if your displays are all of the same width, just move (forward or back...) for a fixed number of pixels, on each of the button presses...

http://www.flashkit.com/search.php?term=barney&Submit.x=19&Submit.y=7

oldnewbie
02-07-2006, 05:03 AM
You don't ease to frames... But to specific coordinates.

Supposing you have 10*200 pixels pictures and the starting position is 0, then the next position will be 0+200 and so fourth...

If the current position (including 0) is set within an updated variable, the going forward or backward, is pos_var + 200 or pos_var - 200...

antibob
02-08-2006, 03:36 PM
I was wonderin ghte same thing as wownflutter...

Your post makes sense oldnewb, but how would one go about easing to the destination coordinates?

thanks for any advice/links.

-ab

wownflutter
02-08-2006, 04:11 PM
I can explain the easing via the laco tweens, but having the movie clip not scroll past the stage is still a big mystery.

I have searched this "everywhere" with no answer.... (oouch)