|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How to create an EASING rotation??
Hi.
I've got a button which when clicked, it rotates a movie clip called 'arrow' by 90 degrees (arrow movie clip is initially of an arrow pointing to the right). I use the very simple code below in my button Actions. on (rollOver) { _root.arrow._rotation = 90; } Can anyone help me to create an easing effect on this, so that the arrow movie doesn't just snap from a right arrow to a down arrow?? Bear in mind I'm only using Flash 5 (if that makes any difference). Thanks for any help.
__________________
Captain Planet. |
|
#2
|
|||
|
|||
|
Hi, I dont understand how you want to apply an easing effect to this. You were closer to achieving this with your old code, from your other post. Even using that it can still be tricky. I think you would have to use some form of virtual buffer. Say for example you were pointing to the right picture and the arrow was pointing there. If you should move over the down picture but then over the up picture your arrow would first have to ease to the down picture and then back up to the over picture. It sounds trickier than it really is I think, although I'm not saying it will only take 2 mins to implement.
You could use motion tweening if you constructed an three arrow animations for each picture. The idea with this one is that you manually tween the arrow easing to each picture from each other picture. This method may be easier for you to implement although it may not be as technically pleasing as the other option. |
|
#3
|
||||
|
||||
|
Instead of it snapping to a (eg) down arrow from a right arrow, I want it to start rotating fastish, and then slow down as it gets to its designated angle of rotation.
|
|
#4
|
|||
|
|||
|
Hi, I was just trying to point out that instead of wanting it to follow the cursor you may want to just set it to track which image button has hovered over. Otherwise you may have trouble getting it to ease to where the actual cursor is. If you set it to track the mouse location then it will be continually easing as the cursor will rarely be still.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > How to create an EASING rotation?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|