Torben Posted December 13, 2012 Posted December 13, 2012 I'm trying to use the TransformAroundPoint on a Starling Sprite but it fails. I'm not sure what exactly TransformAroundPoint does internally, but I guess it uses some properties that are not there on a Starling Sprite ? The error is: TransformAroundPointPlugin/onInitTween()[D:\_Flash\_AS3\src\com\greensock\plugins\TransformAroundPointPlugin.as:71]
GreenSock Posted December 16, 2012 Posted December 16, 2012 That's correct - the TransformAroundPointPlugin relies on certain DisplayObject methods like localToGlobal() and globalToLocal() but it looks like those exist in Starling as well. It should be relatively simple to crack open the plugin file and swap out flash.display.DisplayObject for starling.display.DisplayObject. Does that work for you?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now