I have an array of buttons with text on top of each. These buttons were created in the library and imported to the stage using as3. When I click on each button the text turns green. I want to change the color back to black when I click on another button in the array. How do I do this? Thanks in advance.
Related
btnPlanet.mouseEnabled = false;
btnPlanet.mouseChildren = false;
i have button and it's called btnPlanet, i want to change button color when they are disabled, but the button contain text, that if i change button color using colorTransform, it make my text dismissed, and filled with color that i use from colorTransform, can i change only color of shape in button without change text color? or make it grayscale at least? thank you, i'm sorry if i have bad grammar english
Apply alpha/colorTransform/whatever to everything EXCEPT text field.
Is it your own button or you're using some kind of component?
If it's your own I bet you have something like background for shape and TextField on top of that.
If it's a component I'm pretty sure you should be able to access it as well.
that's not hard.set instance name of your shape in your button for example myShape. Then write:
btnPlanet.myShape.transform.colorTransform=new ColorTransform(your colortransform settings)
When I click the button on my webpage, I'd like that button to change color to red, and after a specific time period, the button has to change to green. This way the visitors can easily see which button is active again so they can click it again and again.
Example: http://www.faucetworld.org/dogerotator.html
When you click the green button on the right side, that button changes the color for a specific time of period and then it become green again.
Assuming you are using javascript, the setTimeout method is what you want
I am interested in creating a :disabled button that has loading gif which follows the text of the button. Example here http://jsfiddle.net/roman_khrystynych/YTBLs/
The idea is that when a user clicks the button it begins showing a loading animation next to the changed text. In this format the button is disabled. I would like to use this format for all the buttons on the site which means that the text will quite often change.
Because of this I would like the button to be structured in a way that would automatically position the loading gif next to the text.
Any suggestions on how to format this button so that in disabled format it shows the animation gif right next to the text?
You could use LABEL tags with a CSS background to go with the buttons. When the button is disabled, change the class name on the label to show the image.
I would do it like this:
<button>Submit<span> * </span></button>
Stick your graphic on/in the <span> tag.
This should have a really obvious answer but I can't figure it out...
I've made a button in Access 2007 that takes the user to a form (and other buttons that do other things). I've made the button's background an image so that I could have a gradient-style button but I'd also like to have text on top of this. There is text on the button but it gets hidden either because it's just a name given to the button for VB or because the gradient image is being place on top of it...
any ideas?
Access 2010, and Access 2007 supports both text and graphics on buttons.
Eg note the top buttons:
or simply this:
I do believe that transparency in 2010 is better supported, and the options for buttons in 2010 does include shadow and gradient options:
Eg:
I'm not sure how you did set picture as button background. Might be do you mean that you have two independent controls, an image and a button. In this case right click on the image and Position / Send to back. Back style of the button should be Transparent, but Transparent property should be set "No".
I am creating icon menu (toolbar with icons) in gtk# and I do not know why my application always selects (highlights) first icon (every parameter is default). Is there a way to have all icons unhighlighted (highlight only when cursor moves over icon or user clicks on icon)?
Every answer will be very much appreciated.
It looks like it has keyboard focus. You probably want to give another widget the default focus.