Jump to content
Search Community

Resize object with Adobe Animate and GreenSock

xassagfd 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

Welcome to the Forums,

 

Just so you know the reason it didn't work is because everything you create in Animate is ultimately rendered to canvas using the open-source EaselJS library.

http://www.createjs.com/easeljs

 

EaselJS provides a quite convenient API which allows you to use code to manipulate / control these objects. When you integrate GSAP into Animate projects you end up tweening properties of EaselJS objects.

 

However, EaselJS DisplayObjects do not have width and height properties which is why you can not animate them with GSAP.

 

http://www.createjs.com/docs/easeljs/classes/DisplayObject.html

 

And yes, this can be frustrating, but it is explained here: http://blog.createjs.com/width-height-in-easeljs/

 

and an update here: http://blog.createjs.com/update-width-height-in-easeljs/

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