Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-01-2007, 09:19 PM   #1
kirbs
Registered User
 
Join Date: Feb 2007
Posts: 1
Default Change font size to fit Dynamic Text box rather that autoSize Text Box

Hey guys,

First post, I searched and couldn't find an answer to this question, I don't think this has been discussed but if it has I'm sorry.

All the threads I have seen are using autoSize to resize the text field around the text. What I would like to do is lower the font size of the dynamic text to fit the text into the dynamic text field. Is that possible? I saw a thread where they scale a movie clip to fit in an area but isn't what i want to do because it will cause more problems than it fixes.

Thanks in advance.
kirbs is offline   Reply With Quote
Old 02-01-2007, 09:31 PM   #2
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw
Default

I see 2 possible ways:
1. to put autoSize to true, and after changing text reset _widht and/or _height of the textbox
2. to try applying different textFormats to the text after it was set/changed via TextField.getTextFormat() -->[recalculate font size]-->TextField.setTextFormat.
The second way is much more slowly but, if you are using bitmap fon anialiasing it'll look better.
wvxvw is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement help - Change text color depending on dynamic text urban_fusion ActionScript 2.0 4 08-25-2006 08:54 PM
Changing text size for dynamic text winfreebot ActionScript 2.0 1 02-22-2006 03:22 AM
Change font color inside a dynamic text box stvnham15 ActionScript 2.0 1 06-07-2005 09:45 PM
change a dynamic text field font sonic_2k_uk Simple Stuff (Newbies) 5 01-29-2003 11:27 PM
dynamic text, anchors, and images spoonyg ActionScript 1.0 (and below) 7 11-26-2002 09:08 PM


All times are GMT. The time now is 11:33 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.