[Flashcoders] Font Style :: not working

2009-10-07 Thread artur
h wise list, im trying to apply a style to an html text field...with no luck.. please help! first we tried doing it this way.. |[Embed(source=../fonts/||Interstate-Light||.ttf, fontName=||Interstate-Light||, mimeType=application/x-font-truetype)] public static const

Re: [Flashcoders] Font Style :: not working

2009-10-07 Thread eric socolofsky
hey artur. i've found the best/easiest way to apply a stylesheet to a textfield is via TextFormat: var tft:TextFormat = stylesheet.transform(textfield.getStyleObject()); textfield.defaultTextFormat = tft; that will work whether you're using .htmlText or just .text. -eric Message: 3 Date:

Re: [Flashcoders] Font Style :: not working

2009-10-07 Thread artur
that worked ! thanks eric! *artur :.* - *www.artur.com* - *ar...@artur.com* - *ph:646.797.3320* eric socolofsky wrote: hey artur. i've found the best/easiest way to apply a stylesheet to a textfield is via TextFormat: var tft:TextFormat = stylesheet.transform(textfield.getStyleObject());

[Flashcoders] angular rotation with easing

2009-10-07 Thread jared stanley
hey all, I can't believe i haven't come across this before now, but I am having issue with the rotation of a movieclip when it hits 180 jumping to -180 and doing the 'long way around' rotation. The following code works fine: var dx:Number = arrow_mc.x - mouseX;\r\nvar dy:Number = arrow_mc.y -

RE: [Flashcoders] angular rotation with easing

2009-10-07 Thread Merrill, Jason
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

Re: [Flashcoders] angular rotation with easing

2009-10-07 Thread jared stanley
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 jason.merr...@bankofamerica.com wrote: Greensock's TweenMax and TweenLite classes have an optional parameter that

Re: [Flashcoders] angular rotation with easing

2009-10-07 Thread jared stanley
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 -