RE: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Johan Karlsson
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


RE: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Johan Karlsson
You probably don't use an embeded font then. I think that's the only way to
be able to rescale dynamic textfields.

/Johan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris
Gaelic
Sent: den 17 december 2005 11:33
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scaling text using ActionScript


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


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


RE: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Chris Gaelic
I can get it to work if I use a truetype font like Arial set up as static
text. The text then stretches inside the movie clip. However, if I change
the text type to Dynamic - because I want to change it using ActionScript -
then it no longer stretches with the movie clip.

Thanks, 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:47 p.m.
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scaling text using ActionScript

You probably don't use an embeded font then. I think that's the only way to
be able to rescale dynamic textfields.

/Johan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris Gaelic
Sent: den 17 december 2005 11:33
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scaling text using ActionScript


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


___
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


Re: [Flashcoders] Scaling text using ActionScript

2005-12-17 Thread Martin Wood

You have to embed the font to manipulate it in that way.

martin

Chris Gaelic wrote:

I can get it to work if I use a truetype font like Arial set up as static
text. The text then stretches inside the movie clip. However, if I change
the text type to Dynamic - because I want to change it using ActionScript -
then it no longer stretches with the movie clip.

Thanks, Chris  


--
Martin Wood

http://relivethefuture.com/choronzon
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders