Change the color of the text to the previous button when you click on a button

Hi all

If I said 7 buttons, each with text that changes color on turnover by using 'Up' 'Over' and 'Down' of the keyframes in the timeline buttons.  Is there a simple way to get the text of the button changes color when you click on it, stay that way, and then back to the original color once one of the other 6 buttons are engaged?

The only thing I can get to prepare code pages for each button that changes the color of every other button regardless of whether it was active.

See the code example would help a lot!

Thank you!

use:

var previouslyClickedBtn:MovieClip
var buttonA:Array = [content_mc.work_btn, next button and the rest of your buttons];
var targetA:Array = [work_mc, etc.];

for (var i: uint = 0; i<>
.Ivar Button [i] = i;
buttonA [i] .addEventListener (MouseEvent.CLICK, clickF);
buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
}

function workOver(e:MouseEvent):void {}
e.currentTarget.gotoAndStop ("over");
}

function workClick(e:MouseEvent):void {}

{if(previouslyClickedBtn!=null)}

previouslyClickedBtn.gotoAndStop ("up");

}

e.currentTarget.gotoAndStop ("down");

previouslyClickedBtn = e.currentTarget;

targetA [e.currentTarget.ivar] .gotoAndPlay ("enter");
}

function workOut(e:MouseEvent):void {}
content_mc.work_btn.gotoAndStop ("up");
}

Tags: Adobe Animate

Similar Questions

  • Changing the default action when you click on an icon.

    When double clicking on a folder icon that opens a search window.  If you right click it, it opens a menu as only normal 'search' at the top, is "BOLD".  How can I change the default action to 'open '?

    Finally got an answer to this one.  A friend, I called did.  In windows Explorer, click Tools, and then select the folder options.

    Under the tab "File Types", select "File Folder", then click "Advanced".

    This will allow you to change the settings of the menu file type.

  • OCD books display the last topic in the previous book when you click

    I found a weird behavior when looking at the release published on HR Server 8 from a client RH8 and using a merged help file configuration (implementing merged maybe project although not relevant). By clicking on any book TOC displayed in the topic pane the last topic in the book of immediatey above him. In the example below, the table of contents is on the 'Basics' book and the displayed topic is "Tab management" which lies immediately above the book. Any book is clicked, the same behavior follows.

    rhserser_toc.png

    This problem is limited to when help is displayed via the HR eithere server by clicking on the button 'View Project' with the Web administrator or displayed through the application. Bizzarely, it does not occur if you manually open the start page in a web browser from the HR server. Or the problem itself using the WebHelp output manifest.

    Someone has seen this. I tried to report it as a bug but thought that I have would float it out there first.

    Hi - I believe that the problem has already been postponed.

    See http://forums.adobe.com/click.jspa?searchID=1351909&objectType=2&objectID=2026022

  • How to change the meeting so when you walk away you don't have to keep loging.

    original title: loging in

    How to change the meeting so when you walk away you don't have to keep loging.

    You can go to the power option in the Panel and Hibernate and sleep forever and also remove option prompt password of the Server screen.

  • Why the data disappears when you click on a text box on a page of a completed form on?

    Adobe Acrobat 9 Pro on Windows 7.

    Installation: I created a doc of bid that allows the end user to complete the first page (request for quote) and auto information fills in the next 3 pages, carrying contractors names and info to separate bid documents.

    Each of the contractor bid documents must out individually, so I check out them for distribution.

    The problem is that the details of the offer requires sometimes scroll down in the text box, which has been activated and works well on the original document, the information disappears when you click the check box in the checked out document.

    The original Document ('Scope') field properties:

    Field Properties.PNG

    Original Document - scrollbar behavior works to read all content info:

    Field Behavior.PNG

    Extract Document - before clicking the "range".

    Extracted Document.PNG

    Extract Document - after clicking on the "range".

    Extracted Document clicked.PNG

    Extract Document - properties of the field.

    Extracted Document field properties.PNG

    What is blow the information contained in the extracted document when you click on the text box? This does not happen in any other areas of text without scrolling.

    Help!

    Business Card.PNG

    I have never heard forward and cannot reproduce them. What the police that you use for the multiline field? It would be interesting to see a sample file if you can put a somewhere.

    Something that might work is first export data from form (in FDF/XFDF), then extract the pages, reset and re-import the data in the page.

  • "windows can not find the new updates" when you click check updates

    Hello, I'm sorry for the confusion caused with my previous post. The error I got is 'windows can not find the new updates' when you click check updates. It displays a notification to install the new updates on the desktop and displays the 80072EFD error code. Please help me to get this resolved. Its 32-bit windows 7.

    OT:

    Windows

    First, update your anti-virus software and run a scan completes. Then:

    If you have not already seen it this article, it may be interesting to read through to check it out - http://windows.microsoft.com/en-us/windows/windows-update-error-80072efd#1TC=windows-7

    If it still fails to run the resolution of the problems of Internet connection (from Control Panel) and see if that finds & correcting something. More details here - http://www.dummies.com/how-to/content/how-to-troubleshoot-windows-7-internet-connection-.html

  • (Occasionally), I don't see the app icons when you click on the creative cloud icon in the top bar?

    (Occasionally), I don't see the app icons when you click on the creative cloud icon in the top bar?

    White screen

    https://forums.Adobe.com/thread/1249756

  • Text for the username variable input area moves to the next screen when you click

    I assigned a username variable to a text entry area. If I mouse click inside the text box to enter a name, I am taken to the next screen. In other words, the entry text box seems to act like a button. Is there something I need to change in the Properties window to prevent this?

    Hi Eddie,.

    You have 2 possible actions: a by clicking on the button (success), a when you click outside the button (the rest of the slide) which is a failure. And you can attach an action at a time. The default action for both is 'Continue', which means that the head of reading which has been suspended by the button, will continue. You don't want that to happen if the user clicks on the button, but outside the key (like by clicking in the field ETB). This is the reason why recommended Manish allows you to change the action for failure to 'No action', which means that nothing will happen if the user clicks outside the button. He can then click in the text field and type its entry.

    Lilybiri

  • I received a pdf file and the words in the text of the form filled in and saved tabs/forms appears only in the only filed when you click on this field.

    Hi, the text in tabs/forms of the form filled in and saved text doesn't appear when you click on this tab and field offices. When I go to another tab / filed, it disappears. I need to see everything at once.

    Auto-fill text fields is inactivated.  I have acrobat Pro XI / Win764bit. I can't find anything useful in the German speaking forums (there you will find only: save it on your desktop, open the with another program - not adobe, save it as a .jpg, use the preview and save/print pdf, open with photo shop and so forth but nothing works.)

    It would be good to get a link to an old solution or a useful answer.

    Kind regards

    Is there a chance that the application overview on Mac has been used to complete and save the form? What you describe is a typical sign that it was like overview corrupts PDF forms in a number of ways. You can fix this in Acrobat if you have access to a blank form uncorrupted by exporting the form with FDF data and important in the blank form.

  • Photo not added to the quick Collection when you click marker

    Recently I have not been able to add photos to a quick collection, when you click on the marker. The marker provides information, but the photo does not appear in the quick collection. This problem occurred at the same time, I couldn't remove the photos in the quick collection that had been added. I had to remove these photos using the menu system. I've upgraded to the new version of Lightroom 5 yesterday thinking that would solve the problem. I still have the problem so I wonder if this is a setting that I missed. Quick collection markers button is enabled in the display options and the button and change when you click them... The thumbnail of the photo is not added to the quick collection.

    It seems that you no longer have the quick Collection, referred to as a collection of target. Is there a small symbol '+' next to the name of the collection? If this isn't the case, you have another collection in your designated collection list.

    To fix, right-click the name of the quick Collection and click the option "set as target Collection.

  • The antiVirus icon when you click Won't hold on the screen?

    I did a clean boot and has happened, why?
    I use Microsoft XP Professional 3 Pack
    with Trendmicro antivirus
    Firefox/mozilla and free opneoffice

    Gentle.Giant,
    Thanks for posting on the Microsoft answers Forum.  I could use a little clarification on your question.  Can you explain the situation in a bit more detail?  What I read, is that when you click the icon for your antivirus it basically does nothing (POP maybe a splash screen but then does not start).  Well, you say you are doing a clean boot.  This could very well be why your antivirus software does not work properly.  Clean boot disable start programs.  If your antivirus has need of one of the elements that has been turned off, which could cause the problem.  I suggest to turn off boot or go through msconfig and find everything that is related to your antivirus and turn them back on. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to change the search engine when you use the functionality of Firefox Home button Search?

    In Firefox itself, I have configured duckduckgo as my default search provider.

    But when I use the host Firefox search button it is always defined on google and I don't see any possibility to change that?

    I love the Firefox Home button Search (or whatever we call it) otherwise, but it's annoying that it does not use the default Firefox.

    I use the Google Launcher now.

    Hi mrt181, it is planned to use the same search engine as in firefox - however, there is a bug at the moment, so it does not apply in all situations.
    usually, it will be enough to change the default engine in firefox back once to work around the problem in the search widget and get the same as set in the browser search provider.

  • How can I change the field send when I click on an email on a Web of Thunderbird site address to Gmail? I want that Gmail Manager.

    I want to change the default value of my Thunderbird address Manager to have Gmail to be one who sends emails by default.
    I don't want anyone to know my private E-mail address using the Thunderbird client.

    This has nothing to do with Thunderbird.
    http://www.lmgtfy.com/?q=Gmail+default+mail

  • Qosmio F60 - change the screen settings when you use the DVD player

    When I try to play a DVD using the DVD BD player a message that tell me to change the setting of the screen I followed their instruction to no availo. I am running Windows 7. The DVD plays on windows ok support.

    Any help would be appreciated

    Hi ametec.

    This DVD BD drive has been preinstalled on your computer?
    Which message get you exactly? Maybe you can download a copy of screen or something else

    In my opinion this problem is only related to this because the Media Player DVD player everything works
    For example, I use VLC media player for all my audio and video files. It s a small freeware player that can play most audio and video files. In addition it s not necessary to use a special DVD playback software.

  • How can I change the thumbnail size when you view the contents of a folder in Thumbnails view?

    None

    Rustic17,

    You can work with the unrolling of view in windows Explorer. However, if you mean specifically change the size ONLY in the thumbnail view, and then I found an article in which people have found a solution.

    Change the size of the thumbnail and quality under XP

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.

    I hope this helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My hp dv6-6195 ca changes the display brightness when you look dark or black backgrounds

    My laptop has started to get a question where I come back to a page with a black or dark background and it seems as if my brightness has dropped. If I transition to a page of white or clear, it slowly goes back to the original brightness. Is there any software issues I can change in the related settings or would it be a hardware problem? My laptop is out of warranty, so I don't know if I can send it to get her replaced screen if it's a difficult problem. Anyone else having problems with the display of brightness varies when going from dark to light?

    The last action I can remember was the upgrade of the AMD Catalyst Center, but I have found no setting he woud change that.

    specs: WIndows 8 | HP Pavilion dv6-6195 ca | I7-2630QM | 120 GB OCZ Vertex 3 SSD | 750 GB 7200 RPM hard drive. 8192MB RAM | Radeon HD 6770M 2 GB | FHD LED (1920 x 1080) anti-glare display

    It is because the intel hd graphics driver you have in your system... steps, I followed to resolve are -

    (1) right click on desktop, and then open the graphics properties

    2) click on the column on the left power tab

    Select battery 3) in respect of the power source

    (4) uncheck the display power saving technology

    (5) reboot your system

    90% of the time it should start without this question for you, 10% of the time, it can further lower your brightness even if you uncheckd the option but a reboot again simply would help

Maybe you are looking for