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)

Similar Messages

  • Change Apple ID country,then change back, all the data of apps store is gone

    Use iPhone 5s change Apple ID country,then change back, all the data of apps store is gone,the apps I uninstall but buy before if I want to buy before,I need to buy again!Is there any way that I can fix it? Thank you!

    Apple ID is only valid for purchases in the Swiss iTunes Store.
    The issue is that your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • TS3999 One of my calendars suddenly changed color. I cannot change it back. It will only remain the color I want for about 2 sec. How can I fix this?

    One of my calendars suddenly changed color. I cannot change it back. It will only remain the color I want for about 2 sec. How can I fix this?

    hi : this is a bug and no solution has been found yet.
    not only calendars also change color : reminders also do.
    wait and see :/

  • Q10 - I tap the screen to select, the icon changes color (indicating selection) but nothing happens...

    I notice an issue that predominantly happens when I use my thumbs to tap but does happen with fingers from time to time. 
    When I select an icon (say, for instance the lower-right corner icon to jump into camera settings), the icon changes color slightly when my thumb touches the glass, and then when I remove my thumb, nothing happens. 
    Sometimes this happens more than 5 times in a row.  It's one thing if the screen never recognized my finger/thumb in the first place.  It is a bit more madening when I KNOW that there was recognition (icon changing color) and yet nothing happens.. 
    Anyone else having this problem?  Is there some way to recalibrate the screen? 
    Right after I posted this message I tried that camera setting button - 7 tries before anything happened with my right thumb, one try with right index finger, then again it took 5 tries with index finger.  The frustrating thing is that the icon to load the camera in the first place (lower right corner)... that one almost always works with the first tap... 

    Perform a Reset...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • Searching access database then minimizing and reopening (or, more generally, changing the focus window then going back) causes the database field to become active

    So I'm having this problem in Access 2010 & 2013 (I tested it in both) where if I search for something on the bottom of a table (next to where it says the record number), then pull down access and subsequently reopen it, if I were to start typing it
    would start typing in the record that the search had found. This has caused me to have some errors in my database which have been proving troublesome and difficult to fix.
    If you could tell me how I could resolve this problem, I would greatly appreciate it!
    EDIT: I tested some other cases and am having the same issue. If I, instead of minimizing, change the focus away from Access to another program and then move my focus back to Access, the problem appears there as well. In fact, even if I change to another
    window in the same instance of Access (say another table) then change back the focus, the problem still appears

    Hi George,
    Thanks for the response. I'm going to include some images and share a sample database with you. This is all being done in 2010 on Windows 7 currently, but is reproducible on 2013. I don't have access to Windows 8 to try it myself.
    Step 1: Open up table by double clicking on it
    Step 2: Search for something in the table
    https://onedrive.live.com/redir?resid=E84A21BD127C022!2874&authkey=!APzefrtzmpvylGw&v=3&ithint=photo%2c.png
    Note that where I'm searching is different than where you're searching. I think that's why you couldn't reproduce it. Search for something (in what I'm sharing, something like alpha or 11 or ga or something)
    Step 3: Minimize the Access and pull it back up (or change focus away and back in some way or another)
    Step 4: Type into what should be the search box. Instead, it types into the field that the search found.
    The database with the table I used can be found at https://onedrive.live.com/redir?resid=E84A21BD127C022!2873&authkey=!ABtDlZEyDzT8Jf8&ithint=file%2c.accdb
    It is the only table in the database
    Thanks again,
    Shlomo Miller
    I'm having verification problems so I cannot insert a picture. I will update this post when I can.

  • I tried to rent/buy a movie on my ipod touch 3g on itunes, but the rent/buy button just turns light green then goes back the the normal color without renting/buying the movie. Help me?! why is this happening and what can i do to fix it?

    okay so i tried to rent a movie but the blue rent button just turned light green for a few seconds and then went back to blue without renting it. it allows music videos to be bought but not movies. the same happens when i click buy .please help! thanks

    Have you tried connecting the iPod to your computer and restoring the iPod?

  • A Bar stays popped up that says Encountered error while syncing : unknown error. Sync will automaticly try this action when I push sunc now Button it goes away but then pops back up again and is not syncing what can I do ?

    when I log into Firefox this message pops up at the bottom of all page I click on the Button that says " sync now" it disappears for a few seconds then pops back up and tells me to sync now Why is it not syncing?

    I am syncing my iphone to my iTunes account and then I do a backup and also making sure all updates are current.  Then by going to the my phone and then going to the right and selecting the restore my iphone.
    Here is a picture of what I get

  • Skin or change color of selected radio button or selected checkbox

    I'm creating a custom CSS and I want to change the color of the checkmark (or the icon used) for selected radio buttons/checkboxes. Right now it's green (because it's using the simple stylesheet) but I don't know what element I can use to change the color or skin it. I've tried the af:selectBooleanCheckbox and af:selectBooleanRadio (even though they say they are only for disabled and read-only) but they don't appear to do anything... what do I use?

    Have a look at
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    Searh e.g for
    af:selectBooleanCheckbox Component
    to learn how to work with custom images
    Frank

  • 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.

  • I am trying to download the update to Photo Effects (Lite) v 3.0.0, for several weeks now without success. I press the update button and it goes away, then comes back again without any change. Can someone help please?

    The update to Photo Effects (Lite) v 3.0.0 won't work. I've tried for several weeks without any result. I press the download button and it disappears, then reappears again. Can any one help, please?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
              /var/log ▹ appstore.log
    from the hierarchical list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    Each message in the log begins with the date and time when it was entered. Select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    ☞ The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Changing color label of edits coming back from photoshop

    I am currently using lightroom 3.2 RC.  The issue is when sending a raw file out to photoshop then at the conclusion of editing as the file arrives back to lightroom, it now keeps it original color label (yeah), but if I now attempt to change it's color label from one color to another that I use to denote a completed PSD file, the file losses it color label completely and ends up without a color label at all (similar to what use to happen in 3.0), and I have to go find it and relabel it again.
    hopefully I explained that well enough to catch the fault that exists
    mike

    I only have PSE8 and not Photoshop, but I cannot reproduce this behaviour by externally editing a Raw file in PSE8 from LR. When using PSE, you have to have LR render the PSD on the way to PSE already, which is a difference to Photoshop.
    What technique are you using to assign the new color label when coming back from PS (keyboard shortcur, Metadata panel, ...)?
    I'm using LR3.2RC on WinXP SP3.
    Beat Gossweiler
    Switzerland

  • Change Color of SELECTION-SCREEN COMMENT

    Hello!
    I want to change the color of the text of my comments for parameters in my selection-screen. Is that possible?
    What kind of design option do I have within the selection-screen? (Background, Colors, etc...)
    Regards Michael

    check out this sample code.
    REPORT YRJKSJKJFKD
           NO STANDARD PAGE HEADING.
    SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(30) comm2.
    SELECTION-SCREEN ULINE /1(50).
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    AT SELECTION-SCREEN OUTPUT.
      comm1 ='Selection Screen'.
      comm2 ='Select one'.
      LOOP AT SCREEN.
        IF screen-group1 = 'MG1'.
           screen-intensified = '0'.
           screen-color = '0' .
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    for screen-color the possible values are
    Syntax of color value in col color
    { COL_BACKGROUND } 0 GUI-specific
    { 1 | COL_HEADING } 1 Gray-blue
    { 2 | COL_NORMAL } 2 Light gray
    { 3 | COL_TOTAL } 3 Yellow
    { 4 | COL_KEY } 4 Blue-green
    { 5 | COL_POSITIVE } 5 Green
    { 6 | COL_NEGATIVE } 6 Red
    { 7 | COL_GROUP } 7 Violet
    Regards
    Raja

  • Changing Colors of selected tab in JTabbedPane.

    Do someone has some code that can show how to
    change the color of the selected tab with JTabbedPane.
    I can change the other tabs colors with setBackground and setForeground, setBackgroundAt........ but it is the selected
    tab that will not change from the default grey color.
    thanks

    try this code, it works.
    public class TabBackgroundChange extends JFrame {
    private JTabbedPane tabPane = null;
    public static final Color selTabColor = Color.red;
    Color nonSelectedTabColor = null;
    public TabBackgroundChange() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception ex) {
    ex.printStackTrace();
    tabPane = new JTabbedPane();
    tabPane.add("One", new JPanel());
    tabPane.add("Two", new JPanel());
    tabPane.add("Three", new JPanel());
    this.getContentPane().add(tabPane);
    this.setSize(200, 200);
    this.setVisible(true);
    tabPane.addChangeListener(new TabChangeListener());
    tabPane.setSelectedIndex(1);
    tabPane.setSelectedIndex(0);
    public static void main(String[] args) {
    TabBackgroundChange tabBackgroundChange1 = new TabBackgroundChange();
    private class TabChangeListener implements ChangeListener {
    public void stateChanged(ChangeEvent ce) {
    int iSelTab = tabPane.getSelectedIndex();
    Color unSelectedBackground = tabPane.getBackgroundAt(iSelTab);
    for(int i=0; i<tabPane.getTabCount(); i++) {
    tabPane.setBackgroundAt(i, unSelectedBackground);
    tabPane.setBackgroundAt(iSelTab, Color.red);
    }

  • Change the group selection in contacts back please!!!

    Why would you change something so intuitive into the cumbersome system.
    It was so easy before, if I want to see family contacts or work contacts I hit that option and they all appear. This select and deselect the ones I dont want is a pain.
    If something works well, don't just change it for the sake of an upgrade, leave it alone. Apple have always been good at nice interfaces, this is so stupid for a primary feature on a phone.
    Is there an option somewhere to have it work the old way?

    Hi
    Thanks for all,
            Problem i wrote to sap, Once transaction happend, it is not possible to change the group asset. I convienced my client no issue.
    Regards
    Maruthi.

Maybe you are looking for

  • IPhone 4 Won't Charge. Tried Everything

    Hey Everyone, Well, I'm about to rip my hairs out of my freaking head. Sunday night at 8 o'clock. About to climb into bed and watch a little TV. Plug my iPhone in. Boom. Nothing. Try again for another 10 minutes until eventually it powers down due to

  • Transfer pictures from macbook pro to iPad mini

    How can I transfer pictures from Macbook Pro to Ipad mini

  • Problem with Zen after charging on power soc

    hey everybody, i charged my Zen with a usb adapter on a power socket, it worked well, but after that it is not recognized by my computer anymore. it charges well, but i can't access it. maybe now it *thinks* that it is connected to a socket and not t

  • Importing and saving

    When importing DV from my camcorder how do I get it to import straight to my external Hard Drive. Becuase I would like to do video editing and movie making without using ANY space on my internal hard drive. EVERYTHING on the external Hard Drive. And

  • Quick link for anonymous user

    People, Can somebody tell me how to use a quick link for anonymous user I'm able to access this http://<server>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.caritor.Student!2fcom.caritor.iviews!2fKMNavigationview but http://<serve