Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[FLASH MX]Change text without it font being black?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Wed May 28, 2008 6:51 pm    Post subject: [FLASH MX]Change text without it font being black? Reply with quote

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
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed May 28, 2008 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Fri May 30, 2008 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri May 30, 2008 3:14 pm    Post subject: Reply with quote

Code:
maintext.setStyle("color", "0xFF3333");
Back to top
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Fri May 30, 2008 4:21 pm    Post subject: Reply with quote

that does not work. it just shows up as black text once again.
Back to top
View user's profile Send private message Visit poster's website
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri May 30, 2008 5:08 pm    Post subject: Reply with quote

I just remembered you can't change input fields in MX, SOL.
Back to top
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Mon Jun 02, 2008 2:25 pm    Post subject: Reply with quote

dang.... so is there a way for me to do it or do i have to just leave it not black?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites