| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
|
|
#4 (permalink) |
|
mingin dawg baitch
|
either with or without the quotes...Ive tried all sorts of combinations.... Found the problem...I can apply the text via the Var: texttitle but the instance needs to be named as well to get it working in code..so I named it texttitle also - but that didn't work cause code didn't know what it was talking to...so I called it summit different - and it worked. _root.texttitle = _global.selectedTitle; _root.texttitleins.textColor = 0x000000; Last edited by paulanthony : 25-08-2005 at 04:58. Reason: Found problem |
|
|
|
#5 (permalink) |
|
Iris Folder
Join Date: Apr 2003
Location: smokey
Posts: 2,675
|
You didn't name your instance... alway's name your instances whether your gonna use them or not, makes things easier in the long run. Naming it the same as the var shouldn't have caused issues. It's good practice to name your instances with extensions so that you always know what kind of object your dealing with title_txt , title_mc, title_gr etc. For future reference you can also add text to a text field using the .text method. Good for appending text to a field _root.title_txt.text = "hello"; _root.title_txt.text += " how are you doing?"; |
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 4
|
yo, //////simplest way to change color///// var TF:TextFormat = new TextFormat(); TF.color = 0x990000; //red myTextField.setNewTextFormat(TF); // your text is red now //is fish blood red? //it's not. tuna blood is red. //i want marijuana. |
|
![]() |