Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-17-2004, 02:51 PM   #1
Nick Toye
Registered User
 
Join Date: Jun 2003
Posts: 434
Default Button Component Colour

Hi all,

I want to know if it is possible to change the overstate of this component button. I can't seem to be able to edit it. I have attached a copy of the file.

It currently changes to green I want it to go another colour.

Many thanks in advance
Attached Files
File Type: zip button.zip (44.3 KB, 197 views)
Nick Toye is offline   Reply With Quote
Old 02-20-2004, 08:36 AM   #2
Nick Toye
Registered User
 
Join Date: Jun 2003
Posts: 434
Default

Just like to say thanks again for the many people who viewed this thread (over 40), but could not even offer a clue of help. Surely components are customisable, even to colour, I can't believe no one knows how to achieve this.
Nick Toye is offline   Reply With Quote
Old 02-20-2004, 07:31 PM   #3
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

buttonName.setStyle("themeColor","haloBlue");

You can also use hexidecimal color values in place of the haloBlue. Such as:

buttonName.setStyle("themeColor","0x6666ff");

You could also set the theme color on a global scale:

_global.style.setStyle("themeColor","0x6666ff");



Keep in mind that other people are learning this stuff too. This is a community of people just like yourself. For you to EXPECT an answer is preposterous. There are two things you're failing to realize. 1: People don't have to answer your question. If they do it's because they're being kind. 2: Even if they are nice enough to answer it doesn't mean they KNOW the answer. For as adamant as you are about getting an answer you could've gotten the answer yourself by looking at the documentation. It's right there under the component section.
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 02-21-2004, 04:35 AM   #4
Nick Toye
Registered User
 
Join Date: Jun 2003
Posts: 434
Default

Alrighty, its just like real life, thanks for the reply, sincerely, I am grateful.
Nick Toye is offline   Reply With Quote
Old 02-23-2004, 02:30 AM   #5
timothye
Registered User
 
timothye's Avatar
 
Join Date: Jan 2004
Location: Sweden/Sverige/USA
Posts: 106
Default

here it is as the guy said above ,in the help files ..
Quote:
Setting styles on a component instance
You can write ActionScript code to set and get style properties on any component instance. The UIObject.setStyle() and UIObject.getStyle() methods can be called directly from any component. For example, the following code sets the text color on a Button instance called myButton that uses the Halo theme:

myButton.setStyle("themeColor", "haloBlue");

Even though you can access the styles directly as properties (for example, myButton.color = 0xFF00FF), it's best to use the setStyle() and getStyle() methods so that the styles work correctly. For more information, see Setting style property values.

Note: You should not call the UIObject.setStyle() method multiple times to set more than one property. If you want to change multiple properties, or change properties for multiple component instances, you should create a custom style format. For more information, see Setting styles for specific components
cheers
timothye is offline   Reply With Quote
Old 02-23-2004, 04:10 AM   #6
Nick Toye
Registered User
 
Join Date: Jun 2003
Posts: 434
Default

yeah i did it, quite simple really, but then they mostly are.
Nick Toye is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.