Help with nav buttons please

Hey there, i've recently been following a tutorial and I have come across a problem with the AS for the nav buttons,  http://www.flash-game-design.com/flash-tutorials/basic-flash-website-tutorial-6.html, the tutorial says to write:
btnabout.onRelease = function(){
    content.gotoAndStop("about")
btnport.onRelease = function(){
    content.gotoAndPlay("port")
btncont.onRelease = function(){
    content.gotoAndStop("contact")
I have done this and it came with an error saying needs to be in handler, so i re-entered this:
btnabout.on(release) = function(){
    content.gotoAndStop("about")
btnport.on(release) = function(){
    content.gotoAndPlay("port")
btncont.on(release) = function(){
    content.gotoAndStop("contact")
This code then came back with a Expected a field name after '.' operator.  btnabout.on(release) = function(){ can anyone please help me i'm starting to pull hairs out?!
Thanks
P.S it must be AS 2.0 as that is what my portfolio page uses.

The problem with the first attempt was not the code, but where you placed it.  That code needs to be placed on the timelinein the same frame as where the buttons are  (preferably in a separate 'actions' layer).  This approach is the better approach than trying to place the code on the objects because it keeps all code in a single easy to find location... the timeline.
For the second attempt, assuming you were still trying to attach the code to the buttons, you should change the code to....
on(release) {
    content.gotoAndStop("about")
on(release){
    content.gotoAndPlay("port")
on(release){
    content.gotoAndStop("contact")
but.... each of those needs to be attached to the button associated with it and not grouped together.  This is an older style of coding that is best avoided due to ending up with code hiding on objects.

Similar Messages

  • Help with flash buttons please

    hi i wondered if anyone could take a look at this for me
    please?
    http://beechhouse.yorkwebsites.co.uk
    why is it in explorer you have to click the button to
    activate it and then click it again to go to the page? and how can
    i fix this please?

    It's IE-only behaviour as a result of changes Microsoft made
    earlier this
    year to their browser, regarding how Active Content (Flash,
    Quicktime etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2, the fix is already built
    into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    Using Flash buttons for navigation can negatively affect your
    site's
    usability - you know that, right?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "BumStuckOut" <[email protected]> wrote in
    message
    news:ejshnv$dpm$[email protected]..
    > hi i wondered if anyone could take a look at this for me
    please?
    >
    >
    http://beechhouse.yorkwebsites.co.uk
    >
    > why is it in explorer you have to click the button to
    activate it and then
    > click it again to go to the page? and how can i fix this
    please?
    >

  • Help with linking buttons to Scenes

    Hey,
    Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
    "stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(1, "Recipe");
    Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
    "stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
    gotoAndPlay(1, "MainMenu");
    So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
    Please help

    First, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
    stop();
    btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
         gotoAndStop(1, "Recipe");
    If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN.  MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
    As for the code to get you back home, where is it located on the timeline?  Are you getting any error messages when you try to use it?
    One thing you should learn to use is the trace() function.  It is useful for troubleshooting.  You can use it now to see if your second button is talking to the function at all...
    stop();
    btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
    function mouse5DownHandler(event:MouseEvent):void {
         trace("the button works okay");
         gotoAndPlay(1, "MainMenu");
    If you don't get that message in the output panel, you'll know the button is not properly coded to work.
    Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic.  Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both.

  • UWL - Help with Decision Buttons

    Hello SDNers,
    I'm customizing the UWL iView to show approval itens only, and their respective decision buttons.
    Everything looks ok, but when someone try to submit the decisions it shows the message:
    "reject wasn't correct"
    Where "reject" is the name I gave to the action.
    It also happens with the approval action.
    Below is the XML I've created.
    Does someone have a clue in what that message means, or what I've done wrong?
    Thanks in advance!!

    Hi There,
    Make sure that your decisionKeys are correct.  I have seen issues with this many times.  Log on to the backend system and call  SAP_WAPI_DECISION_READ or SWK_DECISION READ for a specific workitem  (You can get the details of the workitem id from the support information on the UWL - enable this and you can check this specific workitem)  The decision key is an internal value (typically a numeric value) corresponding to the selected decision used by the provider.
    You will need to ensure that you have x amount of decisions configured in the xml file, where x = the amount of decisions configured in the backend system.
    For additional help with this topic please see the userDecision Action Handler documentation:
    http://help.sap.com/saphelp_nw70/helpdata/en/7a/df014b037141ca9afc6433ed42b519/content.htm
    Beth Maben
    EP - Senior Support Consultant II
    AGS Primary Support
    Global Support Centre Ireland
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Need help with a button

    Hello,
    I need help with a button. I created a button and set it up
    so that when you click and hold it, the button becomes lighter in
    color (I used Alpha). I want the button to stay this light color
    after i release the click. Right now it goes back to the normal
    color when I release the click. Can somone help we this?
    Thanks!

    rpofclt wrote:
    > Hello,
    >
    > I need help with a button. I created a button and set it
    up so that when you
    > click and hold it, the button becomes lighter in color
    (I used Alpha). I want
    > the button to stay this light color after i release the
    click. Right now it
    > goes back to the normal color when I release the click.
    Can somone help we
    > this?
    you can't use the button itself if you want to maintain the
    DOWN state after
    release as button automatically resets itself once the mouse
    lives the HIT zone.
    Use movie clip instead and on press simply send it to a frame
    where there
    is DOWN state like image.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • New instances of an object with a button - please help

    Hi
    Hope anyone can help with a simple sample/solution.
    Think i seach the entire world !!!
    Want to make fx. 40 instances of an object ( chosen by user ) - in the "old Flash" there was eval();
    - as i remember I could create multiple instances of an object like this:
    int numberOfBikes = 40;
    for (i = 0;i < numberOfBikes;i++){
    newInstanceName = eval("bike"+i) ; // this is my only problem in the world - for now :o(
    Bike newInstanceName = new Bike() ; // newInstanceName translated to example "bike12"
    newInstanceName.moveTheBike(some arguments) ;
    // YEAH - then I had 40 different bikes
    Please - if anyone have a simple solution for that single line of code - 500 lines of complex array coding does not help a newborn !!!

    You are at once on my Buddy list :o)
    Now i have 40 bikes running all over town - looks pretty cool
    This worked in my run method:
              int i;
              int numberOfBikes = 40;
              test bikes[] = new test[numberOfBikes];
              for (i = 0;i < numberOfBikes;i++)
                bikes[i] = new test();
              }This code in my while loop to call the Class method:
              for (i = 0;i < numberOfBikes;i++)
                         bikes.goAhead(gcon, H, V);
    Cool - was a MEGA help !!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Help with photo albums Please

    Hi, i really need some help with my pictures, I've only got a very basic understanding of how my phone works and have somehow put a load of albums on my phone when i plugged it into the computer-I want to delete some of them off the phone but cannot work out how to do it, when i plug my phone in i can find the photo tab but cannot actually see the pictures and can't see any delete button!!! Please can someone help me, basic explanations would be gratefully recieved xxxx

    The photo sync is one way: computer to phone. To remove photos, synced to your phone, remove the check marks next to the albums/folders under the photos tab in itunes & hit the apply/sync button. They will be removed from your phone. You cannot delete photos that were synced to your phone, directly on your phone. The easiest way to manage photos synced to your phone is to create albums or folders on your computer. Move whatever photos you want on your phone into these albums/folders & then select them under the photos tab in itunes to sync to your phone. You can then remove or add photos to these various albums/folders on your computer & the itunes sync process will update your phone every time you sync.

  • Weird iWeb problem with nav buttons....

    Hi all. New to this and a complete idiot. The club which I am the Prez of needed a web site, and as no one else volunteered, I ended up doing it. Everything seemed to go fine for a while until I started modifying the original site....then I started getting weird things happening. Many of them I have figured out but the last one is beyond me. The problem is with the text in the nav buttons at the top of the pages. On the first page all the navigational buttons are fine, but on all the other pages the button that takes you back to the home page has text I never put in, and it does not appear in it's entirety. Can anyone provide any help as to how I can fix this. The URL is:
    www.nocasa-ft.com

    Indeed, the problem is with the cache. I cleared the cache and all now comes up as it is supposed to. Thanks so much for your suggestion. I was rather disappointed because it seemed the problem was with Safari, and I kind of like that browser. I didn't want to have to use something else.
    Thanks again.

  • Help with If statement please

    Hi,
    First Special thanks to Kglad for the help with the AS1 to AS3 conversion.
    I've been able to link up my buttons to play a different frames of the movie. this was my novice way of finally getting the programming to work.
    In frame 95 I have
    var myLoader:Loader = new Loader();
    addChild(myLoader); var url:URLRequest = new URLRequest("page1.swf");
    myLoader.load(url);
    in frame 165:
    var myLoader1:Loader = new Loader();
    addChild(myLoader1); var url1:URLRequest = new URLRequest("page1.swf");
    myLoader1.load(url1);
    My buttons link to 116 which plays a frame and loads ^
    in frame 226: removeChild(myLoader).
    But if the user has looped back into home from another part in the movie clip then it would need to remove myLoader1 instead of myLoader.
    I'm guessing there is some really dynamic way to solve the programatic nightmare i'm developing, but I'm really novice.
    So what i need is an if statement for frame 226
    That would do something:
    if(myLoader <> null
         removeChild(myLoader)
    else(
    removechild(myLoader1)
    Anyone have a method for this?

    yes, you can use the same urlrequest but just change its url property:
    // initialize, for example in frame 1.  this is done once and never again:
    var loader:Loader=new Loader();
    var urlR:URLRequest=new URLRequest();
    //  then in frame 2, for example:
    urlR.url="page1.swf";
    loader.load(urlR);
    //  in frame 20, for example:
    urlR.url="page2.swf";
    loader.load(urlR);
    // in frame 30, for example:
    urlR.url="page3.swf";
    loader.load(urlR);
    //etc.  if you're loading any swfs that play streams (sound or video), you'll want to add some code to this.

  • I need help with this script please ASAP

    So I need this to work properly, but when ran and the correct answer is chosen the app quits but when the wrong answer is chosen the app goes on to the next question. I need help with this ASAP, it is due tommorow. Thank you so much for the help if you can.
    The script (Sorry if it's a bit long):
    #------------Startup-------------
    display dialog "Social Studies Exchange Trviva Game by Justin Parzik" buttons {"Take the Quiz", "Cyaaaa"} default button 1
    set Lolz to (button returned of the result)
    if Lolz is "Cyaaaa" then
    killapp()
    else if Lolz is "Take the Quiz" then
              do shell script "say -v samantha Ok starting in 3…2…1…GO!"
    #------------Question 1-----------
              display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
              set A1 to (button returned of the result)
              if A1 is "Apprentices" then
                        do shell script "say -v samantha Correct Answer"
              else
                        do shell script "say -v samantha Wrong Answer"
      #----------Question 2--------
                        display dialog "Most children were taught
    to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
                        set A2 to (button returned of the result)
                        if A2 is "Bible" then
                                  do shell script "say -v samantha Correct Answer"
                        else
                                  do shell script "say -v samantha Wrong Answer"
      #------------Question 3---------
                                  display dialog "In the 1730s and 1740s, a religious movement called the_______swept through the colonies." buttons {"Glorius Revolution", "Great Awakening", "The Enlightenment"}
                                  set A3 to (button returned of the result)
                                  if A3 is "Great Awakening" then
                                            do shell script "say -v samantha Correct Answer"
                                  else
                                            do shell script "say -v samantha Wrong Answer"
      #-----------Question 4--------
                                            display dialog "_______ was
    a famous American Enlightenment figure." buttons {"Ben Franklin", "George Washington", "Jesus"}
                                            set A4 to (button returned of the result)
                                            if A4 is "Ben Franklin" then
                                                      do shell script "say -v samantha Correct Answer"
                                            else
                                                      do shell script "say -v samantha Wrong Answer"
      #----------Question 5-------
                                                      display dialog "______ ownership gave colonists political rights as well as prosperity." buttons {"Land", "Dog", "Slave"}
                                                      set A5 to (button returned of the result)
                                                      if A5 is "Land" then
                                                                do shell script "say -v samantha Correct Answer"
                                                      else
                                                                do shell script "say -v samantha Wrong Answer"
      #---------Question 6--------
                                                                display dialog "The first step toward guaranteeing these rights came in 1215. That
    year, a group of English noblemen forced King John to accept the…" buttons {"Declaration of Independence", "Magna Carta", "Constitution"}
                                                                set A6 to (button returned of the result)
                                                                if A6 is "Magna Carta" then
                                                                          do shell script "say -v samantha Correct Answer"
                                                                else
                                                                          do shell script "say -v samantha Wrong Answer"
      #----------Question 7--------
                                                                          display dialog "England's cheif lawmaking body was" buttons {"the Senate", "Parliament", "King George"}
                                                                          set A7 to (button returned of the result)
                                                                          if A7 is "Parliament" then
                                                                                    do shell script "say -v samantha Correct Answer"
                                                                          else
                                                                                    do shell script "say -v samantha Wrong Answer"
      #--------Question 8-----
                                                                                    display dialog "Pariliament decided to overthrow _______ for not respecting their rights" buttons {"King James II", "King George", "King Elizabeth"}
                                                                                    set A8 to (button returned of the result)
                                                                                    if A8 is "King James II" then
                                                                                              do shell script "say -v samantha Correct Answer"
                                                                                    else
                                                                                              do shell script "say -v samantha Wrong Answer"
      #--------Question 9------
                                                                                              display dialog "Parliament named ___ and ___ as England's new monarchs in something called ____." buttons {"William/Mary/Glorius Revolution", "Adam/Eve/Great Awakening", "Johhny/Mr.Laphalm/Burning of the hand ceremony"}
                                                                                              set A9 to (button returned of the result)
                                                                                              if A9 is "William/Mary/Glorius Revolution" then
                                                                                                        do shell script "say -v samantha Correct Answer"
                                                                                              else
                                                                                                        do shell script "say -v samantha Wrong Answer"
      #---------Question 10-----
                                                                                                        display dialog "After accepting the throne William and Mary agreed in 1689 to uphold the English Bill of _____." buttons {"Money", "Colonies", "Rights"}
                                                                                                        set A10 to (button returned of the result)
                                                                                                        if A10 is "Rights" then
                                                                                                                  do shell script "say -v samantha Correct Answer"
                                                                                                        else
                                                                                                                  do shell script "say -v samantha Wrong Answer"
      #---------Question 11------
                                                                                                                  display dialog "By the late 1600s French explorers had claimed the ___ River Valey" buttons {"Mississippi", "Ohio", "Hudson"}
                                                                                                                  set A11 to (button returned of the result)
                                                                                                                  if A11 is "Ohio" then
                                                                                                                            do shell script "say -v samantha Correct Answer"
                                                                                                                  else
                                                                                                                            do shell script "say -v samantha Wrong Answer"
      #------Question 12---------
                                                                                                                            display dialog "______ was sent to ask the French to leave 'English Land'." buttons {"Johhny Tremain", "George Washington", "Paul Revere"}
                                                                                                                            set A12 to (button returned of the result)
                                                                                                                            if A12 is "George Washington" then
                                                                                                                                      do shell script "say -v samantha Correct Answer"
                                                                                                                            else
                                                                                                                                      do shell script "say -v samantha Wrong Answer"
      #---------Question 13-------
                                                                                                                                      display dialog "_____ proposed the Albany Plan of Union" buttons {"George Washingon", "Ben Franklin", "John Hancock"}
                                                                                                                                      set A13 to (button returned of the result)
                                                                                                                                      if A13 is "Ben Franklin" then
                                                                                                                                                do shell script "say -v samantha Correct Answer"
                                                                                                                                      else
                                                                                                                                                do shell script "say -v samantha Wrong Answer"
      #--------Question 14------
                                                                                                                                                display dialog "The __________ declared that England owned all of North America east of the Mississippi" buttons {"Proclomation of England", "Treaty of Paris", "Pontiac Treaty"}
                                                                                                                                                set A14 to (button returned of the result)
                                                                                                                                                if A14 is "" then
                                                                                                                                                          do shell script "say -v samantha Correct Answer"
                                                                                                                                                else
                                                                                                                                                          do shell script "say -v samantha Wrong Answer"
      #-------Question 15-------
                                                                                                                                                          display dialog "Braddock was sent to New England so he could ______" buttons {"Command an attack against French", "Scalp the French", "Kill the colonists"}
                                                                                                                                                          set A15 to (button returned of the result)
                                                                                                                                                          if A15 is "Command an attack against French" then
                                                                                                                                                                    do shell script "say -v samantha Correct Answer"
                                                                                                                                                          else
                                                                                                                                                                    do shell script "say -v samantha Wrong Answer"
      #------TheLolQuestion-----
                                                                                                                                                                    display dialog "____ is the name of the teacher who runs this class." buttons {"Mr.White", "Mr.John", "Paul Revere"} default button 1
                                                                                                                                                                    set LOOL to (button returned of the result)
                                                                                                                                                                    if LOOL is "Mr.White" then
                                                                                                                                                                              do shell script "say -v samantha Congratulations…you…have…common…sense"
                                                                                                                                                                    else
                                                                                                                                                                              do shell script "say -v alex Do…you…have…eyes?"
                                                                                                                                                                              #------END------
                                                                                                                                                                              display dialog "I hope you enjoyed the quiz!" buttons {"I did!", "It was horrible"}
                                                                                                                                                                              set endmenu to (button returned of the result)
                                                                                                                                                                              if endmenu is "I did!" then
                                                                                                                                                                                        do shell script "say -v samantha Your awesome"
                                                                                                                                                                              else
                                                                                                                                                                                        do shell script "say -v alex Go outside and run a lap"
                                                                                                                                                                              end if
                                                                                                                                                                    end if
                                                                                                                                                          end if
                                                                                                                                                end if
                                                                                                                                      end if
                                                                                                                            end if
                                                                                                                  end if
                                                                                                        end if
                                                                                              end if
                                                                                    end if
                                                                          end if
                                                                end if
                                                      end if
                                            end if
                                  end if
                        end if
              end if
    end if

    Use code such as:
    display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
    set A1 to (button returned of the result)
    if A1 is "Apprentices" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    #----------Question 2--------
    display dialog "Most children were taught to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
    set A2 to (button returned of the result)
    if A2 is "Bible" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    (90444)

  • Help with Validation Problem Please

    I don't understand this validation and don't know how to fix it. I have checked my other websites and they seem fine. I don't think I have done anything different The link for the website ishttp://www.greenpatchwebsites.com/pow/index.html
    and the validator is http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Findex.html&charset=%2 8detect+automatically%29&doctype=Inline&group=0
    Please can you help.
    Thank you very much in advance.

    Thanks for that. I have tried it on a new page: http://www.greenpatchwebsites.com/pow/newtest.html and here is the validator :
    http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Fnewtest.html&charset= %28detect+automatically%29&doctype=Inline&group=0&No200=1- unfortunately loads of errors
    I also tried the recommended template:
    Use the following markup as a template to create a new XHTML 1.0 document using a proper DOCTYPE. See the list below if you wish to use another document type.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
         <title>An XHTML 1.0 Strict standard template</title>
         <meta http-equiv="content-type"
              content="text/html;charset=utf-8" />
         <meta http-equiv="Content-Style-Type" content="text/css" />
    </head>
    <body>
         <p>… Your HTML content here …</p>
    </body>
    </html>
    but was getting errors with that. As you can tell, I need serious help with this. Which doc type should I be using
    and why doesn't Dreamweaver just do it for you when you select one?
    Thanks very much again in advance.

  • Help with Option 3 please

    A week ago I was on Option 1 but due to heavy use my speed was reduced to 15.7k/sec !.I was advised to upgrade to Option 3 which I promptly did and that was done on the 29th(last week).
    My speed though is still 15k/sec and I cannot watch any streaming video or BBC News Channels etc
    Would some kind gentleman please look into it for me and advise.......thankyou
    Solved!
    Go to Solution.

    Hi Pete,
    I am sorry for the delay in getting back to you.  I picked your email up this morning and have dropped you a reply.  I am pleased that you managed to sort this out, if you need any further help just let me know.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Slow MBP... Help with EtreCheck Results please?

    Problem description:
    My MBP is running incredibly slow! For instance, just typing sometimes bogs the system down, and it definitely cannot handle multitasking like it used to, or open programs quickly.
    In June of 2014 my Hard Drive crashed. It was under Apple Care and they replaced it. I lost Apple Care in July, and since June it has progressively gotten slower. When Yosemite came out, I reformatted my computer as new and restored from an external hard drive back up. I have watched the activity monitor and the RAM doesn’t seem to be under any pressure (solid green all the way across), and the CPU doesn’t seem to go that high either (50%). I have tried all the initial steps of uninstalling what I thought could be slowing it down (i.e., Norton and some other things) in addition to taking away all start up programs except dropbox.
    I'm willing to do just about anything to get this computer through another 18 months... and if someone could find a way to get 36 months out of it I'll give you a million points.
    Thanks in advance for the community's help. You guys rock.
    P.S. Had a little issue with Carbonite a while back. I think it is taken care of though.
    EtreCheck version: 2.1.7 (114)
    Report generated January 31, 2015 at 3:53:34 PM CST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 408
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 384 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 17:0:6
    Disk Information: ℹ️
        APPLE HDD HTS545050A7E362 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 498.88 GB (262.62 GB free)
                Core Storage: disk0s2 499.25 GB Online
        OPTIARC DVD RW AD-5970H 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Western Digital My Passport 070A 319.37 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Yosemite Backup (disk2s2) /Volumes/Yosemite Backup : 319.03 GB (96.57 GB free)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    com.nike.sportwatch (1.0.0) [Support]
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.loginwindow.LFVTracer.plist [Details]
        [failed]    com.apple.NetBootClientHelper.plist [Details]
    Launch Agents: ℹ️
        [running]    com.brother.LOGINserver.plist [Support]
        [running]    com.carbonite.launchd.status.plist [Support]
        [invalid?]    com.examsoft.softest.plist [Support]
        [running]    com.nike.nikeplusconnect.plist [Support]
        [loaded]    com.oracle.java.Java-Updater.plist [Support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Support]
        [loaded]    com.carbonite.installhelper.plist [Support]
        [running]    com.carbonite.launchd.daemon.plist [Support]
        [running]    com.carbonite.launchd.monitor.plist [Support]
        [loaded]    com.carbonite.launchd.watcher.plist [Support]
        [running]    com.examsoft.softest.service.plist [Support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Support]
        [running]    com.wdc.SmartwareDriveService.plist [Support]
        [running]    com.wdc.WDSmartWareService.plist [Support]
    User Launch Agents: ℹ️
        [invalid?]    com.adobe.ARM.[...].plist [Support]
        [running]    com.amazon.music.plist [Support]
        [not loaded]    com.avast.install.plist [Support]
        [not loaded]    com.google.keystone.agent.plist [Support]
        [not loaded]    com.spotify.webhelper.plist [Support]
    User Login Items: ℹ️
        Carbonite    Application  (/Applications/Carbonite.app)
        Dropbox    Application  (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 16.0.0.296 - SDK 10.6 [Support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.296 - SDK 10.6 [Support]
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 [Support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
    Safari Extensions: ℹ️
        WasteNoTime [Installed]
        wrc [Installed]
        Ebates Cash Back [Installed]
        Better Facebook [Installed]
        Norton Internet Security [Cached]
        AdBlock [Installed]
        Awesome Screenshot [Installed]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Support]
        Java  [Support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 498.88 GB Disk used: 236.26 GB
        Destinations:
            Yosemite Backup [Local]
            Total size: 319.03 GB
            Total number of backups: 16
            Oldest backup: 2015-01-17 12:02:39 +0000
            Last backup: 2015-01-18 03:39:38 +0000
            Size of backup disk: Too small
                Backup size 319.03 GB < (Disk used 236.26 GB X 3)
    Top Processes by CPU: ℹ️
            13%    WindowServer
             8%    com.apple.WebKit.Networking
             7%    CarboniteDaemon
             4%    Safari
             1%    hidd
    Top Processes by Memory: ℹ️
        155 MB    Safari
        64 MB    ocspd
        52 MB    Finder
        43 MB    mds
        43 MB    Mail
    Virtual Memory Information: ℹ️
        30 MB    Free RAM
        1.16 GB    Active RAM
        1.14 GB    Inactive RAM
        1.07 GB    Wired RAM
        15.81 GB    Page-ins
        1.33 GB    Page-outs
    Diagnostics Information: ℹ️
        Jan 31, 2015, 03:58:22 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155822_[redacted ].crash
        Jan 31, 2015, 03:58:10 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155810_[redacted ].crash
        Jan 31, 2015, 03:58:00 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155800_[redacted ].crash
        Jan 31, 2015, 03:57:50 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155750_[redacted ].crash
        Jan 31, 2015, 03:57:40 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155740_[redacted ].crash
        Jan 31, 2015, 03:57:29 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155729_[redacted ].crash
        Jan 31, 2015, 03:57:21 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155721_[redacted ].crash
        Jan 31, 2015, 03:57:08 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155708_[redacted ].crash
        Jan 31, 2015, 03:56:58 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155658_[redacted ].crash
        Jan 31, 2015, 03:56:48 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155648_[redacted ].crash
        Jan 31, 2015, 03:56:38 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155638_[redacted ].crash
        Jan 31, 2015, 03:56:27 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155627_[redacted ].crash
        Jan 31, 2015, 03:56:18 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155618_[redacted ].crash
        Jan 31, 2015, 03:56:06 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155606_[redacted ].crash
        Jan 31, 2015, 03:55:56 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155556_[redacted ].crash
        Jan 31, 2015, 03:55:46 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155546_[redacted ].crash
        Jan 31, 2015, 03:55:36 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155536_[redacted ].crash
        Jan 31, 2015, 03:55:25 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155525_[redacted ].crash
        Jan 31, 2015, 03:55:18 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155518_[redacted ].crash
        Jan 31, 2015, 03:55:05 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-155505_[redacted ].crash
        Jan 31, 2015, 03:50:25 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-31-155025_[redacted].cp u_resource.diag [Details]
        Jan 31, 2015, 03:26:27 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-31-152627_[redacted].cr ash
        Jan 31, 2015, 12:21:25 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122125_[redacted ].crash
        Jan 31, 2015, 12:21:15 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122115_[redacted ].crash
        Jan 31, 2015, 12:21:04 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122104_[redacted ].crash
        Jan 31, 2015, 12:20:54 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122054_[redacted ].crash
        Jan 31, 2015, 12:20:44 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122044_[redacted ].crash
        Jan 31, 2015, 12:20:35 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122035_[redacted ].crash
        Jan 31, 2015, 12:20:23 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122023_[redacted ].crash
        Jan 31, 2015, 12:20:13 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122013_[redacted ].crash
        Jan 31, 2015, 12:20:03 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-122003_[redacted ].crash
        Jan 31, 2015, 12:19:53 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121953_[redacted ].crash
        Jan 31, 2015, 12:19:43 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121943_[redacted ].crash
        Jan 31, 2015, 12:19:33 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121933_[redacted ].crash
        Jan 31, 2015, 12:19:22 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121922_[redacted ].crash
        Jan 31, 2015, 12:19:12 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121912_[redacted ].crash
        Jan 31, 2015, 12:19:01 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121901_[redacted ].crash
        Jan 31, 2015, 12:18:41 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121841_[redacted ].crash
        Jan 31, 2015, 12:18:32 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121832_[redacted ].crash
        Jan 31, 2015, 12:18:20 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121820_[redacted ].crash
        Jan 31, 2015, 12:18:10 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121810_[redacted ].crash
        Jan 31, 2015, 10:51:16 AM    /Library/Logs/DiagnosticReports/LegacyFileVaultMessageTracer_2015-01-31-105116_ [redacted].crash
        Jan 31, 2015, 10:13:15 AM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-31-101315_[redacted].cp u_resource.diag [Details]
        Jan 30, 2015, 10:54:15 PM    Self test - passed
        Jan 30, 2015, 10:40:00 PM    /Library/Logs/DiagnosticReports/EvernoteHelper_2015-01-30-224000_[redacted].cra sh
        Jan 30, 2015, 10:33:40 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-30-223340_[redacted].cp u_resource.diag [Details]
        Jan 30, 2015, 10:24:35 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-30-222435_[redacted].cr ash
        Jan 30, 2015, 10:23:40 PM    /Library/Logs/DiagnosticReports/Evernote_2015-01-30-222340_[redacted].hang
        Jan 30, 2015, 10:23:39 PM    /Library/Logs/DiagnosticReports/Microsoft Office Setup Assistant_2015-01-30-222339_[redacted].hang
        Jan 30, 2015, 10:23:39 PM    /Library/Logs/DiagnosticReports/Microsoft Excel_2015-01-30-222339_[redacted].hang
        Jan 30, 2015, 03:40:00 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-30-154000_[redacted].cp u_resource.diag [Details]
        Jan 30, 2015, 03:03:51 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-30-150351_[redacted].cr ash
        Jan 30, 2015, 12:34:22 PM    /Library/Logs/DiagnosticReports/Carbonite_2015-01-30-123422_[redacted].hang
        Jan 30, 2015, 02:36:11 AM    /Library/Logs/DiagnosticReports/SymDaemon_2015-01-30-023611_[redacted].crash
        Jan 30, 2015, 12:42:20 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004220_[redacted ].crash
        Jan 30, 2015, 12:42:10 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004210_[redacted ].crash
        Jan 30, 2015, 12:42:00 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004200_[redacted ].crash
        Jan 30, 2015, 12:41:50 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004150_[redacted ].crash
        Jan 30, 2015, 12:41:40 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004140_[redacted ].crash
        Jan 30, 2015, 12:41:29 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004129_[redacted ].crash
        Jan 30, 2015, 12:41:19 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004119_[redacted ].crash
        Jan 30, 2015, 12:41:09 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004109_[redacted ].crash
        Jan 30, 2015, 12:40:59 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004059_[redacted ].crash
        Jan 30, 2015, 12:40:49 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004049_[redacted ].crash
        Jan 30, 2015, 12:40:38 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004038_[redacted ].crash
        Jan 30, 2015, 12:40:28 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004028_[redacted ].crash
        Jan 30, 2015, 12:40:18 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004018_[redacted ].crash
        Jan 30, 2015, 12:40:08 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-004008_[redacted ].crash
        Jan 30, 2015, 12:39:58 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-003958_[redacted ].crash
        Jan 30, 2015, 12:39:47 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-003947_[redacted ].crash
        Jan 30, 2015, 12:39:37 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-003937_[redacted ].crash
        Jan 30, 2015, 12:39:27 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-003927_[redacted ].crash
        Jan 30, 2015, 12:39:17 AM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-30-003917_[redacted ].crash
        Jan 29, 2015, 09:58:21 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215821_[redacted ].crash
        Jan 29, 2015, 09:58:11 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215811_[redacted ].crash
        Jan 29, 2015, 09:58:01 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215801_[redacted ].crash
        Jan 29, 2015, 09:57:52 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215752_[redacted ].crash
        Jan 29, 2015, 09:57:40 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215740_[redacted ].crash
        Jan 29, 2015, 09:57:30 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215730_[redacted ].crash
        Jan 29, 2015, 09:57:20 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215720_[redacted ].crash
        Jan 29, 2015, 09:57:09 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215709_[redacted ].crash
        Jan 29, 2015, 09:56:59 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215659_[redacted ].crash
        Jan 29, 2015, 09:56:49 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215649_[redacted ].crash
        Jan 29, 2015, 09:56:39 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215639_[redacted ].crash
        Jan 29, 2015, 09:56:29 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215629_[redacted ].crash
        Jan 29, 2015, 09:56:18 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215618_[redacted ].crash
        Jan 29, 2015, 09:56:08 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215608_[redacted ].crash
        Jan 29, 2015, 09:55:58 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215558_[redacted ].crash
        Jan 29, 2015, 09:55:48 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215548_[redacted ].crash
        Jan 29, 2015, 09:55:37 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215537_[redacted ].crash
        Jan 29, 2015, 09:55:27 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215527_[redacted ].crash
        Jan 29, 2015, 09:55:17 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-29-215517_[redacted ].crash
        Jan 29, 2015, 08:01:01 PM    /Library/Logs/DiagnosticReports/SymDaemon_2015-01-29-200101_[redacted].cpu_reso urce.diag [Details]
        Jan 29, 2015, 07:37:46 PM    /Library/Logs/DiagnosticReports/CarboniteDaemon_2015-01-29-193746_[redacted].cp u_resource.diag [Details]
        Jan 28, 2015, 04:51:10 PM    /Library/Logs/DiagnosticReports/SymDaemon_2015-01-28-165110_[redacted].cpu_reso urce.diag [Details]
        Jan 13, 2015, 09:03:09 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-13-210309_[redacted].panic [Details]
        Jan 31, 2015, 12:18:51 PM    /Library/Logs/DiagnosticReports/NetBootClientHelper_2015-01-31-121851_[redacted ].crash

    I use the freeware, EasyFind 4.9.3, to search for and delete unwanted files.
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, EasyFind, instead.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
        1. AppZapper
        2. AppDelete
        3. Automaton
        4. Hazel
        5. AppCleaner
        6. CleanApp
        7. iTrash
        8. Amnesia
        9. Uninstaller
      10. Spring Cleaning
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • I need help with a button animation!

    Hi,
    I hope someone can help with a simple-looking problem which
    nonetheless has me stumped!
    I have a feeling that I've missed something obvious.
    I've created a movie clip to act as a button (I've called it
    "abs_button") and placed it on the stage.
    My main movie has one frame.
    Within the "abs_button" movie clip there are 5 layers.
    Labels, actions, default button state, rollover state and rollout
    state.
    Technically, default button state, rollover state and rollout
    state could be on the same layer as they don't overlap, but I've
    given each animation its own layer for clarity.
    FRAME 01.
    Default button state is one frame with a graphic of the
    button. Just a label at the start ("abs_up") and a "stop();" action
    at the end.
    FRAME 02 to 31.
    Rollover state is a 30 frame animation. Label at start
    ("abs_over"), "stop()"; action at the end.
    FRAME 32 to 62.
    Rollout state is a 30 frame animation. Label at start
    ("abs_out"), "stop()"; action at the end.
    All animations were achieved with tweens.
    My initial "abs_button" code:
    on (release) {
    getURL("targetPage.htm", "_self");
    on (rollOver) {
    gotoAndPlay("abs_button", "abs_over");
    on (rollOut) {
    gotoAndPlay("abs_button", "abs_out");
    As it stands, the animation jumps to frame 1 of "abs_out" on
    rollout.
    I need the "abs_over" animation to always play through to the
    end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
    large on rollover and shrinks again on rollout.
    I've tried for 2 days to solve this, but I clearly need help.
    My experiments with variables simply didn't work.
    I would be grateful if someone could tell me where I'm going
    wrong!
    Thanks,
    Andy

    use this:
    on (rollOver) {
    gotoAndPlay("abs_over");
    Since the code is attached directly to the movieclip, you
    don't have to
    identify the clip. A gotoAndPlay() function takes a frame
    number or a
    frame label name as its argument, never the name of the clip
    that
    contains the frame number or name.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412.243.9119

Maybe you are looking for