all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

Autosize Text depending on length of word


Autosize Text depending on length of word VJLee
11/25/2004 6:57:07 PM
flash actionscript: I use Flash to create movies that I import into a third party live video
application to create text on screen using the text variable feature in Flash.

I want to create a simple 1 frame flash movie with a dynamic text field with
the variable name of "text". When I enter some text in my third party
application, the text is sent to the flash movie which in turn is displayed on
screen.

Problem:

The text is always just one size. If I enter "Happy Birthday" the happy and
birthday take up the same amount of screen space. I want the text size to
increase or decrease depending on the wording to fill the movie canvas.

I looked at the autoSize but cannot figure it out. Anyone who can help I would
be really appreciative.

Lee

Re: Autosize Text depending on length of word VJLee
11/25/2004 7:00:02 PM
Sorry, one thing I didnt mention is their is carrage returns after each word
which resends the text to the flash movie:

eg:

HAPPY

BIRTHDAY

TO

LISA

results in the flash movie displaying all 4 words on screen in new frames...
so, happy is followed by birthday and so on...


AddThis Social Bookmark Button