PDA

View Full Version : tween to label. Is this possible?


jojimo
03-22-2006, 12:41 AM
In a movie clip, can you tween from one frame to another in ActionScript? It looks like you can only tween from a certain frame in a timeline to another, as long as it is in order in the timeline eg. frame 2 through 10... but I would also like to tween from frame 20 to frame 15 (without having had to set up a tween on the timeline for this jump). I assume the Tween Class would be used to do this?

Can I also tween to a label using the tween function in ActionScript?

Thanks muchly in advance for any help regarding this

rayee_geo
03-23-2006, 05:30 AM
In a movie clip, can you tween from one frame to another in ActionScript? It looks like you can only tween from a certain frame in a timeline to another, as long as it is in order in the timeline eg. frame 2 through 10... but I would also like to tween from frame 20 to frame 15 (without having had to set up a tween on the timeline for this jump). I assume the Tween Class would be used to do this?

Can I also tween to a label using the tween function in ActionScript?

Thanks muchly in advance for any help regarding this

you want a tween which can read backwards without putting another tween animation for this.. and just using label??!!! if this is what you mean.. then fore my assumption no... because label is only read forward.. you may play your animation backwards but not using label but rather actionscript... ok2x..:confused:

jojimo
03-23-2006, 06:05 AM
Lets see if my example makes sense

Say I have a 3 item navigation menu in a movie clip with items "A", "B", and "C" all underneath each other

When you click on "A", a submenu appears underneath "A"
When you click on "B", a submenu appears underneath "B"
When you click on "C", a submenu appears underneath "C"

Whenever you click on A, B or C, it will close the current submenu item that is open. I am hoping to animate this process so the timeline is as follows.

At Frame 0, a state A, B and C submenu items are closed.
At Frame 10, "A" is open (hence B and C are closed)
At Frame 20, "B" is open (hence A and C are closed)
At Frame 30, "C" is open (hence B and A are closed)

When the user clicks on the A menu item, then I want to tween to A
When the user clicks on the B menu item, then I want to tween to B
When the user clicks on the C menu item, then I want to tween to C

And you can click on A, B or C from any time of the timeline

Let me know if this doesn't make sense