Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Modernfx

Flash Pro CC 2014 and GSAP Position Problem

Go to solution Solved by somnamblst,

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

Hello everyone,

 

I'm trying to get GSAP working withing Flash Pro CC 2014. I've set up my HTML included all the files I need.

Everything seems to be working fine except that when I try and do a basic Y position tween it ends up off by

about 20-30px.

 

Below is my example

I have a test flash canvas file in that file I have 2 rectangles which I am trying to animate as a test.

 

In the actions panel I have the following script:

TweenLite.to(this.redStripe, 0.5, {y:176, delay:0.5})  ->  (this ends up about 20-30px UP on the Y)

TweenLite.to(this.blueStripe, 0.5, {y:0, delay:1}) ->  (this ends up about 20-30px UP on the Y)

 

MY HTML FILE:

https://jsfiddle.net/ModernFX/1bnppgvh/2/

 

If anyone would be so kind and take a look at my files...

My files are attached.

 

 

Thank you in advance.

FlashIDE-GSAP.zip

Link to comment
Share on other sites

  • Solution

Where is your registration point?

 

http://greensock.com/animatecc-quickstart

 

 

Move Transformation Point

Previously with ActionScript our GSAP tweens would transform around the Registration Point, however this is no longer the case when tweening inside of an Adobe Animate HTML5 Canvas document. Now when tweening by code with GSAP the transformation occurs around the Transformation Point, not the Registration Point. You can move the Transformation Point using the Free Transform Tool to any position you want.

  • Like 1
Link to comment
Share on other sites

THANK YOU!!!!!!!

 

That was it!

  • Like 1
Link to comment
Share on other sites

I remembered two Adobe Max presenters mentioning they had to remember that registration points were not the same in Canvas output, as it was in the SWF days.

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