a _tiny_ flash question
- Started
- Last post
- 5 Responses
- atle
Alright, I've looked everywhere now, but I can't fint a tutorial that will explain how to make this effect in flash. What I'm talking about is the way the pictures scroll right and left when you click a link. (demo: http://www.fallacyandfusion.com...
I have no clue what this is called, and that's probably why I can't find help elsewere :D
love.
- mayo0
- mayo0
i'm learning this stuff too. is this kind of what you are looking for?
- mennik0
http://www.dragslidefade.com/mai…
goto downloads. it's the one called 'slide' n°3
- atle0
Sweet :)
Thanks ppl
- o0o0
I think what you're after is 'easing'
mennik's example is more complex. Easing is easy.Say your want to move MyMC to x=0 ... first you find out the difference between MyMC._x (current location) and 0 (or whatever your target location is).. call it diff.
OnEnterFrame you do something like this:lag = 5;
MyMC._x += diff/lagjust make sure diff is +/- depending on which direction you want your mc to move...
the higher you make 'lag' the more slowly it will move to the target xhope that made sense....