madasczik
asked on
Formatting Dynamic Text
Please tell me what each value means in the ( ) of this line of code, particulaly the falses and the blank ones
var style1_fmt = new TextFormat("textFont", 13, 0x000000, false, false, false, "", "", "center");
var style1_fmt = new TextFormat("textFont", 13, 0x000000, false, false, false, "", "", "center");
This link is to the online version of the API docs:
http://livedocs.macromedia.com/flash/mx2004/main/12_as726.htm
http://livedocs.macromedia.com/flash/mx2004/main/12_as726.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
var style1_fmt =
new TextFormat
("textFont", // font name (that one linked from the library)
13, // font size
0x000000, // font color
false, // boolean for bold
false, // boolean for italic
false, // boolean for underline
"", // string for url, if "" there's no url
"", // string for target window, if "" it doesn't care
"center"); // text align
new TextFormat
("textFont", // font name (that one linked from the library)
13, // font size
0x000000, // font color
false, // boolean for bold
false, // boolean for italic
false, // boolean for underline
"", // string for url, if "" there's no url
"", // string for target window, if "" it doesn't care
"center"); // text align
just follow the line above... the ones that are not being used are:
[leftMargin, [rightMargin, [indent, [leading]]]]
so in order of appearance:
font name = textFont
font size = 13
text color = 0x000000
bold = false
italic = false
underline = false
url = "" //which means no url
target = "" //which means no target
text alignment = center
let me know if you have any more questions...
rp
[leftMargin, [rightMargin, [indent, [leading]]]]
so in order of appearance:
font name = textFont
font size = 13
text color = 0x000000
bold = false
italic = false
underline = false
url = "" //which means no url
target = "" //which means no target
text alignment = center
let me know if you have any more questions...
rp
just beat you to it Stallion :)
rp
rp
>just beat you to it Stallion :)
hehe, you did it.. :)
hehe, you did it.. :)
http://actionscript-toolbox.com/flashmx_createtext.php
aloha,
j