Change color on a button to show that it has been selected.
Here's what I would like to do:
1) Button with the instance name of "mc" and the color
#666666
2) MOUSE_OVER color is #CC0033
3) MOUSE_OUT color is #666666 —IF the button has NOT
been clicked.
4) CLICK color is #333333
5) New MOUSE_OUT color is #333333—If the button HAS
been clicked.
6) MOUSE_OVER stays the same.
Here's the problem...
1) How do I make a new MOUSE_OUT color of #333333 (the same
as the CLICK color)—If the button HAS been clicked?
2) How do I maintain the MOUSE_OVER color?
I'm starting to pull out my hair! I appreciate any
help!!!!!!!!!! Do I need if's or else's.
Text
new
You need if's and else's and a variable to judge in that
if... in the MOUSE_OUT handler . The variable should indicate if
the button has been clicked or not and should be set in the CLICK
handler.
var clicked:Boolean = false;
function mcClick(event:MouseEvent):void{
etc...
clicked = true;
function mcMouseOut(event:MouseEvent):void{
var newColorTransform:ColorTransform =
mc.transform.colorTransform;
if(clicked){
newColorTransform.color = 0x333333;
} else {
newColorTransform.color = 0x666666;
mc.transform.colorTransform = newColorTransform;
gotoAndPlay("img1");
}
Similar Messages
-
How to stop uploading of Yosemite as it has already been done ? There is a bar in Launchpad showing that it has been stopped once. Coming back on Appstore, I cannot delete : written "pending". Sorry for eventual poor explanation as I write from France. Thank you
Thank you for your reply.
I have looked at this, however, if the line is say a dotted line, I can not edit this in the layer panel by going to the stroke style, it just comes up blank.
So how would I go about editing this dotted stroke path once it is placed in Photoshop?
For example if I wanted to change the gap between the dots? -
I am trying to upgrade two MACs to Maverick. I have been successful with My Power Mac but unable to get my Imac to load. I am running Snow Leopard on the Imac. When I go to the App Store it shows that it has been downloaded. Any ideas? Any ideas
You stated; " I have been successful with My Power Mac "
A Power Mac is incapable of being upgraded to Mavericks. It is a PPC Mac which can only run versions of OS X up to 10.5.8 and no higher. Any version of OS X higher that 10.5.8 requires an Intel processor to run.
Does the iMac meet the hardware requirements for Mavericks?
Allan -
My iPad show that it has been crashing
In diagnostics and usage to show that it has been crashing, in a variety of apps and general use, uTube video, etc. My IOS info says its up to date..I see there are others with specific problems...not sure where to begin?
These "crash" reports shouldn't be taken seriously unless they are effecting your use of the iPad.
-
I really need HELP!!! I have a laptop that runs with windows vista, and I have been having issues trying to get it to download the new version of itunes that would be compatible to the new version of ios 7 that I have already updated on my ipad. I have downloaded this three times, it shows that the download is complete, but when I connect my ipad to my laptop it is still telling me that I have to download the new version again and it will not sync with my ipad until I do. Does anyone else have this issue and can anyone help me figure out how to correct it? I would be most grateful!!
sign out from the creative cloud and then sign back in
Sign in, Sign out | Creative Cloud desktop app -
I am using LR5.7.1 64 bit and I have downloaded the new LR6 (cc) my creative cloud folder is showing that LR6 is downloaded but I can't find it on my system, only my old LR5 Version, can anyone help me with solving this?
sign out from the creative cloud and then sign back in
Sign in, Sign out | Creative Cloud desktop app -
I loaded 75 dollars of iTunes gift cards onto my account, it was there the first day and now it is not showing any credit plus it is not showing that any credit was used in my history. Help!
If nothing shows on your account's purchase history and you've tried logging out and back into the account on the computer/device that you are using, then try contacting iTunes Support and see if they can see what happened : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
How to change color of a button for specific time interval in jsp
How to change color of a button for specific time interval in jsp.
Please help.
Thanks in advance.This was driving me crazy, too--and the previous answers did not seem to work. I eventually found that if I click one of the data symbols in the graph in exactly the right spot (see below), it selects only the data symbols and not the line. I can tell this because the little selection dots will be around each data symbol, but no selection dots will be on the line between the data symbols - like the graphic in Yvan's answer. Then and only then will the color symbol in the tool bar show the color of the data symbol, instead of the color of the line. I believe that you then have to first click on the color swatch in the toolbar and then select your color (or choose Show Colors and select from the color tool). Just clicking a color in the crayon box, for example, did not seem to work unless I first clicked on the color swatch in the toolbar, then clicked Show Colors on that dropdown, and +only then+ clicked the crayon or whatever.
_The right spot to click_ seems to be just above the exact center of the data symbol, at least for the diamond shape symbol that I prefer. Sometimes it takes several tries to hit the right spot. If I miss it, the whole line is selected, which is indicated by the little selection dots on the line, between the data symbols. When I click the right spot, those selection dots go away, leaving only the data symbols selected. Then I can change the color, as described above.
I hope this works for you too. -
I just "upgraded" my iPhone with the new software. As a low vision person, your phone was always previously helpful. I now discover that I cannot use the phone easily. The font has been changed to a very narrow typeface and the greyscale has been altered to reduce contrast. The background is now grey as well rather than white. The accessibility options permit only three choices. First, increase type size. With the the low greyscale, thin typeface, increasing type size makes it HARDER to read. There is no option for contrast enhancement. Third, the background switch options suffers from the same deficit as the white background. The third choice is to enhance brightness but without the option to change contrast, this is useless. Am I missing something? Can this be fixed? How? When? Are you planning a similar negative "update"/change to other devices?
I am having the same problem. I have gone through every setting, set the bold font, contrast, larger font....everything I could find in any post to try and help - and between the new color scheme that makes it virtually impossible to use the pictures of my grandchildren as background (the picture colors now become the theme colors - which now match the colors of many of the "flat" icons...) I am finding the phone very difficult to use--espeically things like the calendar which has now become very hard to "see" and use. If I can't revert this thing to iOS6, I may have to get a different phone.
-
my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me
Please helppppp
-
iTunes successfully installs in my computer but the moment I open it, a message will appear showing that microsoft has stopped working and the program will close. What do I do?
Let's first try updating your QuickTime Player to the most recent version. Does that help with the iTunes launch errors?
-
Is there a way to ensure that data has been wiped from my iphone 3g. It shows the "connect to itunes" screen when turned on.
That is how it appears brand new out of the box.
-
Hello my brother just switched from android to iPhone yesterday but in my contacts it still shows that he has his old phone how can I switch it to where I can text him through iMessage?
He has to turn on iMessgae on his iPhone.
Settings > Messages > Turn on iMessage -
Why does my iPhone (3GS) show that it has 9 podcasts on it (true) whilst my PC shows only 2 (not true) of them in the contents of my iPhone?
Time to sync up
-
when plugged to a pc my iphone shows that it has music on it, when its not plugged to my pc my music doesn't show up. why is that?
There is a difference between your phone SOFTWARE being up to date and your phone being SYNCED. Plug it into your computer and sync it. This should put everything on your phone.
Maybe you are looking for
-
New Hard Drive and trying to reinstall OS. Have Hp Recovery Discs but DVD drive broke
Hi to all, I just put a new hard drive in my HP Dv7. I also ordered recovery discs. When I tried to put the disc in I then found out my DVD drive is not working My question is can I transfer the recovery disc to a USB flash drive and then boot from
-
Clearing individual entries from Google search box
Hi, I would like to know if it is possible to clear individual entries from the Google search box history using Safari. I know how to clear the entire list, but what I want is to keep some entries but not others. On IE and Firefox this is done by hig
-
I've been trying to get the spreadsheet in numbers to be portrait rather than landscape, but cannot seem to be able to work out how. Maybe it's not possible, does anyone know how?
-
Error message trying to do software update
I am trying to do a software upodate and I am getting an error message 1100. any clues? thanks
-
G60 power led, charge led, and power button led flash continuall​y
I have a G60 laptop that will not charge the battery or start up and when I plug the power into it the power led, charge led, and power button led flash continually If I press the power button I here the DVD drive make a noise and a fan comes on and