Turning Buttons Off & Changing Color

I have 9 buttons at the top mf my scene that play 9 movie clips, but when you arrive at the clip and click the button again it replays the clip, which I don't want it to do.
For example, in many sites you will notice that when you arrive at a page, the button that took you there becomes unclickable while you are at that page and usually changes color.  Is there anyone who can please give me the code (AS3) to temporarily disable the button and have it remain on the "down" frame until the user navigates away?  Thank you.

What you should be able to do is set the mouseEnabled property to false for the button.  If it is a SimpleButton object, and you are using AS3, you can set the upState to equal the downState....  btnName.upState = btnName.downState;
You might also consider dimming the button instead of juggling the states by setting its alpha property to something < 1.

Similar Messages

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • Button that changes color

    Can some one tell me how I can create that fancy button I see
    in the tutorials that changes color as you hover over it right
    before you click it. I'm sure it is simple but I can't seem to find
    it

    Hi drc_TO
    If you use a regular plain ole Text button, it should change
    appearance when you mouse over and click. You can easily change
    that to an image button. When you do, you have a collection of
    images available to you to choose from. Or if you wish to create
    your own images, you would create them using an image editor. You
    need three. One for the normal state. One for the moused over
    state. And one for the clicked state. You then name them
    appropriately and ensure they exist in the folder along with the
    others. Normally that will be inside a Gallery folder where
    Captivate is installed. (The names vary depending on Captivate
    version)
    Cheers... Rick

  • Quick Launch Mute Button Not Changing Color

    When I press the mute button on the Quick Launch toolbar, it does not change to orange any longer.  It remains blue.  The functionality still works, but it does not change color.

    installed IDT High Definition Audio CODEC Driver.  works fine now

  • Turn buttons off on the playbar ?

    Hi
    I'm using Captivate 4, I dont often use the playbar as I'm not keen on the lack of functionality.
    The customer wants the playbar but wants the forward button to be inactive on some screens.  I know i can turn the playbar on/off but thats not an ideal solution.
    Is there anyway to disable the 'forward' button on the playbar on a certain screen.
    E.g you enter a slide and you have an action to say cp_Playbar_forward =0 and then on another slide turn it back on ?
    Regards

    Hi there
    I'm wondering if you might not be able to "fake it" sort of.
    I'm thinking that if you configured the next slide so that on Exit it jumped to the previous slide, it would effectively kill the forward functionality. Then you could have a button on the slide that the user would click that would skip over the next slide to the slide after that.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Able to have a Submit button that changes color after selection

    Curious if this can be done..

    Things that you can control the color of include the border, label text, and background. You can also change the button label and icon (if present). This can all be done when it is clicked. You can also set the mouse down and rollover appearances. Some of this is controlled via JavaScript and others by setting the corresponding options. If you explain exactly what you'd like, we can provide specific guidance.

  • Button change color on select, then change back

    I have 3 buttons, named but,but2,but3. What I want is if you
    click a button it changes color to show what page your on. But when
    you click a different button now that one is highlighted and the
    original one goes back to the original color. Here's the code.
    but3.onPress = function () {
    _root.createEmptyMovieClip("container", 1);
    loadMovie("banner3.swf", "container");
    container._x = 0;
    container._y = 0 ;
    I figure I have to add some kind of if statement?
    }

    I got it. I added this code for each button.
    but.gotoAndStop(2);
    but1.gotoAndStop(1);
    but2.gotoAndStop(1)

  • Drop down menu button will not change color

    I have built a 6 button  rollover dropdown menu bar in Flash CS4
    On five of the dropdown menus I can get the buttons to change color
    On the fifth dropdown I can see the button, but when rolled over I can't get the color to change.
    I have moved the buttons on the fifth drop down to the first drop down button and they work perfectly.
    Is this a bug in Flash CS4 or......
    thank you
    Sb!

    I appreciate your reply but those arrows were not the ones I was trying to describe. In the same box where you would type your web address on the far right is a small star and then next to it an arrow pointing down. If you click on this arrow, it normally drops down a list of the websites you commonly use. Or, if you are on a website ordering something, there might be a similar arrow that you need to select in order to choose which shipping you might want such as ground, next day air, etc., these are the kinds of arrows that are not working correctly now. Any ideas on these? Thanks for trying to help me.

  • Change Color on mouse click

    Hi Guys.  I have followed Ned's code from another post, whereby if a text button is clicked, the color will change.  The code is like
    var clicked:Boolean = false;
    var clicked2:Boolean = false;
    btn1.addEventListener(MouseEvent.CLICK, btn1click);
    function btn1click(event:MouseEvent):void {
        clicked = true;
        var newColorTransform:ColorTransform = btn1.transform.colorTransform;
        if(clicked){
        newColorTransform.color = 0xc97f22;
        } else {
        newColorTransform.color = 0x000000;
        btn1.transform.colorTransform = newColorTransform;
        gotoAndStop(5);
    btn2.addEventListener(MouseEvent.CLICK, btn2click);
    function btn2click(event:MouseEvent):void {
        clicked2 = true;
        var newColorTransform:ColorTransform = btn2.transform.colorTransform;
        if(clicked2){
        newColorTransform.color = 0xc97f22;
        } else {
        newColorTransform.color = 0x000000;
        btn2.transform.colorTransform = newColorTransform;
        gotoAndStop(6);
    Now if I click on the first button, it changes color and stays like that, which is perfect.  If I click on btn2, this changes color and stays like it.  The problem is that if btn2 is pressed, it should change color and stay like it (as it is doing), but btn1 should return back to its normal color (black).  I am not sure how to achieve this.
    Any advise appreciated
    Cheers

    When you mention something is from another post it is helpful if you provide a link so that the context of the code offered can be understood. What you choose as a solution might not be the optimum choice.
    Use the following instead:
    var newColorTransform:ColorTransform = new ColorTransform();
    var btns:Array = new Array({btn:btn1, frameNum:5},{btn:btn2, frameNum:6});
    for(var i:uint=0; i< btns.length; i++){
        btns[i].btn.addEventListener(MouseEvent.CLICK, btnclick);
    function btnclick(evt:MouseEvent):void {
        var frameToGoTo:uint;
        for(var i:uint=0; i< btns.length; i++){
            if(evt.currentTarget == btns[i].btn){
                newColorTransform.color = 0xc97f22;
                frameToGoTo = btns[i].frameNum;
            } else {
                newColorTransform.color = 0x000000;
            btns[i].btn.transform.colorTransform = newColorTransform;

  • My iPad suddenly started to show crazy colors.  I turned it off and had to use the two button trick to turn it back on.  Now it shows only green stripes for a few seconds and goes back to sleep.

    My iPad suddenly started to show crazy colors.  I turned it off.  It would not reboot until I used the two-button reboot.  Now it shows only green stripes.  only for a few seconds and goes back to sleep.  HELP!

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider if, it comes up. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove all apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Tap and hold any icon in this list until they wiggle
    - Press the red to delete all apps from this list.
    - Press the home button twice when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • Play Button Changes Color To Red, Can I Change It?

    In the Sliding Planes theme, when I preview, the Play button (originally dark blue) turns red. It has to be something set in the theme since other themes have a change in color of the Play button as well (sometimes to yellow and other colors). Is this changeable? I would rather the color not change and stay dark blue. Thanks a lot!

    Ok, I think you answered my question. I just want to make sure you know that it's not the highlighting persay that I'm talking about, it's just the fact that the button changes and stays to red, it's not that it only gets red when you're selecting it but that once the menu starts and the text flies in and the drop zones are in motion the top writting and everything is the color I want but the Play button turns red automatically before I select it or anything. But I think you answered my question in that the theme I selected requires the Play button to turn red automatically to distinguish it from other buttons. I wouldn't mind it turning red when I would press enter or something to play, like for a second to change color to know that I cliked it, but what bothers me is that it's red the whole time which off sets the color scheme that I'm trying to make on the menu. Thanks again

  • My ipod touch's screen is changing colors and will not respond to the buttons

    my sisters ipod touch is a 4th gen and the screen recently started changing colors, it does not respond to the buttons and will not turn off. should i wait for the battery to die then charge it. she said it started happening when she was charging it. could it be the charging cable? i do not know what OS it has.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Boolean button changes color briefly when pressed

    Hi, I am using Boolean button as a toggle, so I only want text changes when it is pressed with no changes to button appearance.
    I am able to change the color for On in properties to match the Off color (I am using the Silver palette so normally On is yellow), however when the boolean button is changes to On, there's a brief changes of color still. Is there any way I can get rid of it? 
    In fact some of my buttons blink black while others blink yellow. I have no idea where that is set.
    Thak you very much.
    Solved!
    Go to Solution.

    There are 4 colors for booleans ON and OFF plus going from ON to OFF and going from OFF to ON
    You only see the transition color when you have the Mech latching set to "latch when released"
    Set it to "Latch when pressed" and you will not see the transition colors
    You can set all 4 colors by using the Colors [4] Property
    Colors [4] Property
    Short Name: Colors[4]
    Requires: Base Development System
    Class: Boolean Properties
    To Use: Create a property.
    Array of up to 4 (Foreground Color, Background Color) pairs, where Foreground Color is the foreground color of the Boolean control and Background Color is the background color of the Boolean control. Color pairs include False, True, True to False, and False to True.
    You can set the color of the front panel object by wiring a hexadecimal number with the form RRGGBB or by wiring the color box constant to the property.
    This property is similar to the Colors option on the Appearance page of the Boolean Properties dialog box.
    If the Boolean control has four (Foreground Color, Background Color) pairs for the four states, this property always returns an array of four (Foreground Color, Background Color) pairs when reading. When writing, you can pass in an array of length 1, 2 or 4. If you pass in only one element, this property uses that element value for all four states. If you pass in two elements, this property uses the first element value for the False and True to False states. Similarly, this property uses the second element for the True and False to True states.
    If the Boolean control has only one (Foreground Color, Background Color) pair for all four states, this property returns an array of one (Foreground Color, Background Color) pair when reading, and uses the first array element when writing. You cannot change a Boolean control with one (Foreground Color, Background Color) pair to a Boolean control with multiple (Foreground Color, Background Color) pairs.
    This property only uses the True to False and False to True states when you set the Boolean control to latch or switch when released. You can get and set these (Foreground Color, Background Color) pairs even if you do not have the control set to latch or switch when released; they just are not used.
    Because this property does not change the data of the Boolean control, you can set it at any time.
    You can use the this property for Boolean controls on the Classic, Express, Modern, and Silver palettes. You cannot use this property for Boolean controls on the System palette.
    Omar

  • Macbook Pro is slow, freezes constantly and I'm forced to hold down the power button to turn it off.

    Hey all,
    This is my first post/discussion so hopefully I'm posting in the right section and all. Anyway, as of recently (few days) my Macbook Pro 15" (model previous to the one just released) has been been slow + lagging, also when this happens my computer freezes, but its kind of different: I can still move the cursor around and stuff, but for instance, if its google chrome that freezes I won't be able to close it, (tried force quit), after this, my whole computer kinda freezes and I can't close any of my programs, I can't click on the menu's at the top to shut down or doing anything really, eg. change internet connections. Closing my macbook, like shutting the lid doesn't solve anything, only turning it off by holding the power button for a few seconds, which I'm almost certain isn't a good thing. I've had to do this like 3 times today and its getting pretty frustrating.
    Something tells me that it might be because of memory usage, but I'm not entirely sure, I only say this because when looking at the available/free memory using iStat sometimes, its really low, like 12mb, 30mb, etc.
    Anyway, I know that's quite a lot of infomration but hopefully its useful, if there's any additional information you require that may be of help to you, please tell me and I'll do my best to provide it.
    Thanks,
    Roshen.

    Roshen,
    There are a couple of things you can try, but it sounds to me as if it's a problem with your hard drive.
    First, open Activity Monitor in your Utilities folder and see how much of your CPU % is being used by any one application (you can sort by %). If any one application/process is taking up more than 15% or so of your CPU, try killing (quitting) the process.
    Second, since yours is a 2011 model, it will have come with Lion installed. Shut down your machine and boot up while holding down the Command and R keys. Open Disk Utility and verify your disk. If it comes up with errors, click repair.
    If neither of these work, take your MBP into your local Apple Store. You should still be under warranty, even if you didn't purchase AppleCare. All beforehand and make an appointment.
    Good luck,
    Clinton

  • My screen colors are messed. Pink lines. I have tried turning it off and resetting. Any ideas?

    My iPad screen has pink lines. The colors are messed up. I have tried resetting and turning it off. Any ideas?

    Did you drop the iPad?
    Did you do this Reset?
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

Maybe you are looking for