Jump to content
Search Community

FramePlugin

pake test
Moderator Tag

Recommended Posts

Hey all!

 

Is it possible to set the "direction" of the tween for the FramePlugin/FrameLabelPlugin?

So for example I have 100frames, current frame is 80 and I want to tween to frame 10, but instead of backward (80->10) I wanna tween it forward (80->100, 1->10)

 

Thanks in advance

Link to comment
Share on other sites

I think this is just what the doctor ordered. I never knew about it til I just looked at the docs

 

http://www.greensock.com/as/docs/tween/ ... lugin.html

 

 

Tweens a MovieClip forward to a particular frame number, wrapping it if/when it reaches the end of the timeline. For example, if your MovieClip has 20 frames total and it is currently at frame 10 and you want tween to frame 5, a normal frame tween would go backwards from 10 to 5, but a frameForward would go from 10 to 20 (the end) and wrap to the beginning and continue tweening from 1 to 5.

 

USAGE:

 

import com.greensock.TweenLite;

import com.greensock.plugins.*;

TweenPlugin.activate([FrameForwardPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.

 

TweenLite.to(mc, 1, {frameForward:5});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...