Jump to content
Search Community

Timeline

jacynnoru test
Moderator Tag

Recommended Posts

I have a sign with an action I want to play 5 frames and stops, and I have another gesture I want to play 5 frames in reverse

 

 

function fl_SwipeToGoToNextPreviousFrame_22(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
 TweenMax.to(mc_pan,1,play);
}
else if(event.offsetX == -1)
{
 TweenMax.to(mc_pan,1,reverse);
}
}

Link to comment
Share on other sites

Hi,

 

Not sure if I am clear on the situation but if the question is

 

"how do I play through a movie clip's timeline for 5 frames?"

 

Use the frame plugin (see the plugin explorer) and

http://www.snorkl.tv/2010/10/overview-of-tweenmax-framelabel-and-frame-plugins-nifty-way-to-play-a-flash-timeline-backwards/

 

The following code will play through to frame 30 of mc's timeline for 1 second.

TweenMax.to(mc, 1, {frame:30});

 

I think that should help

Link to comment
Share on other sites

I assume you mean something like this:

 

TweenMax.to(mc_pan, 5, {frame:"+=5", useFrames:true, ease:Linear.easeNone});

 

And to go backwards, use "-=" instead of "+=" before the 5. That must means it is a relative tween rather than absolute.

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...