Jump to content
GreenSock

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

TransformAroundPointPlugin not working for me

Recommended Posts

Recently upgraded to club membership to get TransformAroundPointPlugin. I've implemented this AS2 code:

 

import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.TransformAroundPointPlugin;
TweenPlugin.activate([TransformAroundPointPlugin]);
import flash.geom.Point;

TweenMax.to(mc_spin, 1, {transformAroundPoint:{point:new Point(10,17), _rotation:10}, _alpha:100 });

 

mc_spin doesn't rotate it just fades in... I don't get any error messages. No idea what I'm doing wrong :?:

Link to comment
Share on other sites

You forgot to import the TweenPlugin class :)

 

import com.greensock.plugins.TweenPlugin;

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