| View previous topic :: View next topic |
| Author |
Message |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
Posted: Wed May 28, 2008 6:51 pm Post subject: [FLASH MX]Change text without it font being black? |
|
|
Version of my flash: FLASH MX 2004 7.0.1
Right now my code for the text area (component) is:
| Code: |
textarea.setStyle( "borderStyle", "none" );
textarea.setStyle("color", "0x000000");
textarea.setStyle("backgroundColor", "0xFF0000");
|
When I want to make the text change ina the textarea it alwys shows up but you cant see it since the background colour is set to black
When the user types in the textarea it shows up as the colour I wanted it to show up as...
I want to set it so that when I click a button the text shows up but this time its red instead of black. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed May 28, 2008 8:11 pm Post subject: |
|
|
| Code: | | textarea.setStyle("color", "0x000000"); |
I don't get the majority of your English, but uh since you said
| Quote: | | I want to set it so that when I click a button the text shows up but this time its red instead of black. |
I guess you can always change the 0x000000 to 0xFF0000 right... _________________
Get kidnapped often. |
|
| Back to top |
|
 |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
Posted: Fri May 30, 2008 2:41 pm Post subject: |
|
|
my bad, i modified it just in-case no1 answered... it was actually supposed to be:
| Code: |
maintext.setStyle( "borderStyle", "none" );
maintext.setStyle("color", "0xFF0000");
maintext.setStyle("backgroundColor", "0x000000"); |
Now. I want to use something like :
| Code: |
maintext.text = "text here";
OR
maintext.setStyle("text", "texthere");
|
When I do either one of those the text becomes black and it blends in with the background.
I want the text to be red. So right now
| Code: |
maintext.setStyle("color", "0xFF0000"); |
does not work... Hope you understand now. |
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Fri May 30, 2008 3:14 pm Post subject: |
|
|
| Code: | | maintext.setStyle("color", "0xFF3333"); |
|
|
| Back to top |
|
 |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
Posted: Fri May 30, 2008 4:21 pm Post subject: |
|
|
| that does not work. it just shows up as black text once again. |
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Fri May 30, 2008 5:08 pm Post subject: |
|
|
| I just remembered you can't change input fields in MX, SOL. |
|
| Back to top |
|
 |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
Posted: Mon Jun 02, 2008 2:25 pm Post subject: |
|
|
| dang.... so is there a way for me to do it or do i have to just leave it not black? |
|
| Back to top |
|
 |
|