Jump to content
Search Community

[TimelineLite] Don't know how to do ... [SOLVED]

Radetzky test
Moderator Tag

Recommended Posts

Hi everybody :)

 

First of all, I'm French so sorry if I make some mistake.

 

Ok, so my problem is, I'm using TimelineLite in a small code but I don't know how to make it works.

 

Look at the code, it's very simple. And there's no error at compilation.

 

import com.greensock.*;
import com.greensock.easing.*;

bloc1._xscale = 0;
bloc1._yscale = 0;
bloc2._xscale = 0;
bloc2._yscale = 0;
bloc3._xscale = 0;
bloc3._yscale = 0;
bloc4._xscale = 0;
bloc4._yscale = 0;

var timeline:TimelineLite = new TimelineLite();
timeline.insertMultiple( TweenMax.allTo([bloc1, bloc2, bloc3, bloc4], 1, {scaleX:1, scaleY:1}), timeline.duration );

 

So what I want to do is to hide every bloc and after I want them to appear by increasing their size.

 

Why it's not working?

 

Greetings, Radetzky :D

Link to comment
Share on other sites

If you're using AS2, you use _xscale and _yscale. If you're using AS3, you use scaleX and scaleY. You mixed them.

 

I assume you're using AS2, so your insert code would look like:

 

timeline.insertMultiple( TweenMax.allTo([bloc1, bloc2, bloc3, bloc4], 1, {_xscale:100, _yscale:100}), timeline.duration );

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