LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 08-05-2001, 11:43 AM
blaci blaci is offline
Registered User
 
Join Date: Feb 2002
Posts: 36
Rep Power: 0
blaci is on a distinguished road
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.
Reply With Quote
  #2  
Old 08-06-2001, 07:38 AM
atari's Avatar
atari atari is offline

prototyping Moderator
 
Join Date: Jun 2001
Location: Madrid, Spain
Posts: 276
Rep Power: 12
atari is on a distinguished road
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.
Reply With Quote
  #3  
Old 08-06-2001, 09:15 AM
blaci blaci is offline
Registered User
 
Join Date: Feb 2002
Posts: 36
Rep Power: 0
blaci is on a distinguished road
How do you do that? I haven't been doing this long. How do you embed html into flash?
Thanks
James.
Reply With Quote
  #4  
Old 08-06-2001, 09:21 AM
atari's Avatar
atari atari is offline

prototyping Moderator
 
Join Date: Jun 2001
Location: Madrid, Spain
Posts: 276
Rep Power: 12
atari is on a distinguished road
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">
Here, what you're doing, is setting the variable "bleh" with the colour placed on colorsArray, checking the iteration "iColor".

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.
Reply With Quote
  #5  
Old 08-06-2001, 09:29 AM
atari's Avatar
atari atari is offline

prototyping Moderator
 
Join Date: Jun 2001
Location: Madrid, Spain
Posts: 276
Rep Power: 12
atari is on a distinguished road
You can have a look to the code by using "Quote".

Just like if you wanted to answer

Thanks

M.
__________________
Less is more.
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

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




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