Tyler Madison figured it out for me,
www.tylermadison.info - he is my hero.
used the tweenLite shortRotation plugin as an example.
Here's the code.
const SPEED:int = 3;
init();
function tick(e:Event):void{
var t:Number = (Math.atan2((mouseY - a.y), (mouseX - a.x)) * 180 /
Math.PI - a
yeah i'm aware of the short rotation parameter in tweenmax, but trying
to roll my own, looking through that class now. thanks!
On Wed, Oct 7, 2009 at 12:14 PM, Merrill, Jason
wrote:
> Greensock's TweenMax and TweenLite classes have an optional parameter
> that allows you to do rotation between 0
Greensock's TweenMax and TweenLite classes have an optional parameter
that allows you to do rotation between 0 and 360 if that helps. Yeah,
nobody's a real fan of the way Flash handles rotation.
Jason Merrill
Bank of America Global Learning
Learning & Performance Soluions
Monthly meetings
3 matches
Mail list logo