
Welcome Guest
|
|
|
#1
|
|||
|
|||
|
How do you change the colour of text contained within a textbox
I've been experimenting with this and had no luck. I've been trying to change the colour of text contained within a textbox. I have Tried
_root["text" + y].text.setRGB(.. But had no luck. Here the textfield is contained within a text MC. Any ideas? Thanks. James. |
|
#2
|
||||
|
||||
|
Better way to do that is by using "HTML code" at that textBox. And then apply a text-color class
![]() Cheers, M.
__________________
Less is more. |
|
#3
|
|||
|
|||
|
How do you do that? I haven't been doing this long. How do you embed html into flash?
Thanks James. |
|
#4
|
||||
|
||||
|
Erm... If you're using Flash 5, you have a CheckBox called
[x] HTML At the "Text Operations" label. It appears when you select "Dynamic Text" or "Input Text". By checking that you can handle contents of the box by passing variables. It'll seem like that: Code:
bleh = "<font color=\"" add _parent.colorsArray[iColor] add "\">" add bleh add <"/font"> Hope this helps ;) M. Edit: I don't know why it's parsing my code ("<font color="" doesn't not appear here!). Well, I'll tell you via internal message. |
|
#5
|
||||
|
||||
|
You can have a look to the code by using "Quote".
Just like if you wanted to answer ![]() Thanks ![]() M.
__________________
Less is more. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send MovieClip colour value to dynamic text box | magicrat80 | Actionscript 2.0 |
0 | 06-16-2010 11:37 PM |
| Change variable name of Dynamic Text | KathyDeV | Flash 8 |
0 | 03-07-2008 01:10 PM |
| Dynamic Text - change text box variable on click | kenisswell | Flash MX ActionScript |
10 | 11-01-2005 09:20 PM |
| XML Issue - Text Node Loading as "NULL" | aura9 | Flash MX ActionScript |
10 | 04-29-2005 06:44 PM |
| Creting input textfield | denizci2000 | Flash MX |
5 | 12-15-2004 08:58 PM |






