all groups > flash (macromedia) > august 2003 >
You're in the

flash (macromedia)

group:

Textfield size


Textfield size Tmac
8/17/2003 8:46:12 PM
flash (macromedia):
Is there a way to create a textfield the size you want to begin with rather
than resizing it after its created. For example I create a dynamic textfield
and I want my text to be size 18, flash creates the textbox around size 24
causing me to resize the textbox thus effecting the letters.

Re:Textfield size adireddy
8/18/2003 6:09:05 AM
You can use autosize property of textfield for better results of your case...
textField.autosize = "center";

If you create a text field during runtime... the default text size will be 12

_root.createTextField (instanceName, depth, x, y, width, height)
'instanceName' A string that identifies the instance name of the new text field.
'depth' A positive integer that specifies the depth of the new text field.
'x' An integer that specifies the x coordinate of the new text field.
'y' An integer that specifies the y coordinate of the new text field.
'width' A positive integer that specifies the width of the new text field.
'height' A positive integer that specifies the height of the new text field.

The default properties of a text field are as follows:

type = "dynamic"
border = false
background = false
password = false
multiline = false
html = false
embedFonts = false
variable = null
maxChars = null


A text field created with createTextField receives the following default TextFormat object:

font = "Times New Roman"
size = 12
textColor = 0x000000
bold = false
italic = false
underline = false
url = ""
target = ""
align = "left"
leftMargin = 0
rightMargin = 0
indent = 0
leading = 0
bullet = false





Regards
Adi (Certified Macromedia Flash MX Developer)
adireddy.mora@softprosys.com
Re: Re:Textfield size Tmac
8/18/2003 8:17:20 AM
Thank you. What you have given me will be of value in the future but at the
moment I am forced to publish for Flash player 5, is this information
applicble in my present situation? If not believe me what you have made me
aware of will come in handy in the future. Again thank you.
[quoted text, click to view]

AddThis Social Bookmark Button