The simplest solution I can think of is to put the textfield into a
movieclip and then change the movieclip's _width property to math the width
of the label.

/Johan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris
Gaelic
Sent: den 17 december 2005 06:10
To: [email protected]
Subject: [Flashcoders] Scaling text using ActionScript


Hi,

I'm working on a Flash-based label ordering application which requires
entering dynamic text, typically just one word, and displaying it scaled to
fill the available space on the label. This require changing the aspect
ratio of the text - expanding or compressing its width relative to its
height.

Of course it is easy to do within Flash - but I can't find any way to do it
dynamically using ActionScript. Does anyone know if it can be done?

Chris Gaelic
Netlist
[EMAIL PROTECTED]
Ph: 09 577-2277
Mob: 021 221-2277

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to