Jump to content
Search Community

Tweening then Go to Frame

yelle77 test
Moderator Tag

Recommended Posts

Hi, I want to know if it is possible to produce a number of tweens and when complete jump to Frame 2 of my main timeline?

 

Ive tried a few things like calling in the frame Plugin but cant seem to get it to work?

 

import com.greensock.*;

import com.greensock.plugins.*;

stop();

enterButton_mc.addEventListener(MouseEvent.CLICK, enterButton);

function enterButton(e:MouseEvent):void

{

TweenLite.to(enterButton_mc, 1, {alpha:0});

TweenLite.to(hand_mc, 1, {alpha:0});

TweenLite.to(introLogo_mc, 3, {scaleX:6, scaleY:6, alpha:1});

OverwriteManager.init(2);

TweenLite.to(introLogo_mc, 1, {alpha:0, delay:1});

 

}

 

This is my code, after all these tweens have been made I want to jump to Frame 2?

 

Can anyone help?
Link to comment
Share on other sites

Sussed it...

 

enterButton_mc.addEventListener(MouseEvent.CLICK, enterButton);

function enterButton(e:MouseEvent):void

{

TweenLite.to(enterButton_mc, 1, {alpha:0});

TweenLite.to(hand_mc, 1, {alpha:0});

TweenLite.to(introLogo_mc, 3, {scaleX:6, scaleY:6, alpha:1});

OverwriteManager.init(2);

TweenLite.to(introLogo_mc, 1, {alpha:0, delay:1, onComplete:nextFrame});

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