Jump to content
Search Community

Group movieclips (array) to then animate in Adobe Animate

barrowman test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have a load of animations happening, using Tweenmax in Flanimate.

TweenMax.from(root.logo_mc, 1.00, {alpha:0, delay:1, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.pink_mc, 1.50, {rotation: 54, delay:1.5, force3D:true, ease: Back.easeOut.config(1), overwrite:false})
TweenMax.from(root.photo_mc, 0.50, {alpha:0, delay:2.0, force3D:true, ease:Sine.easeOut, overwrite:false})
TweenMax.from(root.photo_mc, 1.00, {rotation: -34, delay:2.0, force3D:true, ease: Back.easeOut.config(1), overwrite:false})
TweenMax.from(root.photo_necklace_mc, 1.50, {alpha:0, delay:2.4, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.earings_mc, 1.50, {alpha:0, x:195, delay:3.1, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.necklace_mc, 1.50, {alpha:0, x:195, delay:3.6, force3D:true, ease:Sine.easeInOut, overwrite:false})

However I'd like to now move all these items up 15px, rather than create another eight lines of text, how can I add all these to an array and then animate that array by moving it say 20pixel higher?

Thanks in advance.

 

Link to comment
Share on other sites

You could add one line to animate all those items together I think...

TweenMax.from([root.logo_mc,root.pink_mc,root.photo_mc,root.photo_necklace_mc,root.earings_mc,root.necklace_mc], 1.00, {y:"-=20", ease:Sine.easeInOut})

TweenMax.from(root.logo_mc, 1.00, {alpha:0, delay:1, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.pink_mc, 1.50, {rotation: 54, delay:1.5, force3D:true, ease: Back.easeOut.config(1), overwrite:false})
TweenMax.from(root.photo_mc, 0.50, {alpha:0, delay:2.0, force3D:true, ease:Sine.easeOut, overwrite:false})
TweenMax.from(root.photo_mc, 1.00, {rotation: -34, delay:2.0, force3D:true, ease: Back.easeOut.config(1), overwrite:false})
TweenMax.from(root.photo_necklace_mc, 1.50, {alpha:0, delay:2.4, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.earings_mc, 1.50, {alpha:0, x:195, delay:3.1, force3D:true, ease:Sine.easeInOut, overwrite:false})
TweenMax.from(root.necklace_mc, 1.50, {alpha:0, x:195, delay:3.6, force3D:true, ease:Sine.easeInOut, overwrite:false})
  • Like 1
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...