[Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Hello, I have a little question that seems obvious but on which I pull my hair off my head: Does anybody know how to deform a TextField instance? I tried the basics: var txt:TextField = new TextField(); txt.text = TEST DE DEFORMATION; txt.scaleX = 20; addChild(txt); And: var

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Fabio Pinatti
On Wed, Jun 18, 2008 at 10:16 AM, [EMAIL PROTECTED] wrote: Hello, I have a little question that seems obvious but on which I pull my hair off my head: Does anybody know how to deform a TextField instance? I tried the basics: var txt:TextField = new TextField(); txt.text = TEST DE

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Quoting Fabio Pinatti [EMAIL PROTECTED]: It's one of the solution I tried and it doesn't work... In my original message I copy/paste an exemple with Sprite but the problem still remains with MovieClip. But thanks anyway, Florent JEAN French Flash Developer http://www.nowhen.net

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
var txt:TextField = new TextField(); txt.text = TEST DE DEFORMATION; var bmpdata:BitmapData = new BitmapData(txt.width, txt.height); bmpdata.draw(txt); var bmp:Bitmap = new Bitmap(bmpdata); bmp.scaleX = 4; addChild(bmp); ...although you cannot

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread nospam
Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts outlines in my TextTield but the result is not very good (bad antialiasing). I guest that I have no other choice :) Thanks again, __ Florent Quoting Kenneth Kawamoto

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 11:27 AM, [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts outlines in my TextTield but the result is not very good (bad antialiasing). I guest that I have no other

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Kenneth Kawamoto
The max size for BitmapData is 2880 x 2880 px, so if you want scale something up to x1000 you may run into a problem unless you chop it up first. Kenneth Kawamoto http://www.materiaprima.co.uk/ [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Couldnt you use Fabios method? or scale the container MC and then convert that whole thing to Bitmap? .m On Wed, Jun 18, 2008 at 11:27 AM, [EMAIL PROTECTED] wrote: Yes but... In my case I can have scaleX 1000, so I loose too much quality with this method. I'm triing to embbed fonts

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Is this online somewhere? Sounds interesting :) .m On Wed, Jun 18, 2008 at 12:29 PM, Jon Bradley [EMAIL PROTECTED] wrote: Don't use scaleX or width/height modifications. Use transformation matrices. I have an application that allows the user to scale, rotate, move (unconstrained and

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley
On Jun 18, 2008, at 1:05 PM, Matt S. wrote: Is this online somewhere? Sounds interesting :) var m:Matrix = new Matrix(); m.scale(100,1); myDisplayObject.transform.matrix = m; cheers, jon ___ Flashcoders mailing list

Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Matt S.
Oh I meant your actual app, but thanks for the code. :) .m On Wed, Jun 18, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] wrote: On Jun 18, 2008, at 1:05 PM, Matt S. wrote: Is this online somewhere? Sounds interesting :) var m:Matrix = new Matrix(); m.scale(100,1);