Jump to content
Search Community

insertMultiple & Staggering [Solved]

stevenp test
Moderator Tag

Recommended Posts

(Actionscript 2)

 

When using "insertMultiple", staggering appears defeated by using either "TweenLite.to" or "TweenLite.from." Is this true? Or am I missing the syntax?

 

This staggers the clips:

myTimeline5.insertMultiple([new TweenLite(mc_css, 2, {_x:550, _y:225}),
new TweenLite(mc_javascript, 2, {_x:550, _y:225}),
new TweenLite(mc_html, 2, {_x:550, _y:225}),
new TweenLite(mc_flash, 2, {_x:550, _y:225}),
new TweenLite(mc_php, 2, {_x:550, _y:225})], 6, TweenAlign.START, 2);

 

This does not:

var myTimeline6:TimelineLite = new TimelineLite();

myTimeline6.insertMultiple([new TweenLite.to(mc_css, 2, {_x:100, _y:100}),
new TweenLite.to(mc_javascript, 2, {_x:100, _y:100}),
new TweenLite.to(mc_html, 2, {_x:100, _y:100}),
new TweenLite.to(mc_flash, 2, {_x:100, _y:100}),
new TweenLite.to(mc_php, 2, {_x:100, _y:100})], 6, TweenAlign.START, 2);

 

Thanks in advance. 8-)

Link to comment
Share on other sites

you need to adjust your syntax

 

GOOD

TweenLite.to(mc, 1, {x:100})

 

or

 

new TweenLite(mc, 1, {x:100})

 

BAD

new TweenLite.to(mc, 1, {x:100})

 

don't mix new with TweenLite.to

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