Thanks Johan, but that only works if I break the text into its outline
geometry and then instance it as a movie clip. Text within a movie clip
stays the same size when the mc is scaled.

Chris 


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

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan
Karlsson
Sent: Saturday, 17 December 2005 11:07 p.m.
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scaling text using ActionScript

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: flashcoders@chattyfig.figleaf.com
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__________ NOD32 1.1326 (20051216) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to