Why does every other click jump one frame wrong?

Hi, my name's nicole and I am having difficulty with a simple
flash portfolio.
I have six button symbols on scene 1 of a flash document.
Each button is associated with ActionScript 3.0 to jump to one of
six frames in scene one. What's strange is when you are say on the
home page and click the home page the button makes you jump just
one frame forward in the animation. I've used this code before and
am perplexed, can you help me?
Here is the code in frame one:
stop();
btnHome.addEventListener(MouseEvent.CLICK, goHome);
function goHome(evt:MouseEvent):void {
trace(this.currentFrame);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(1);
break;
btn1.addEventListener(MouseEvent.CLICK, goto1);
function goto1(evt:MouseEvent):void {
trace(this.currentLabel);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(2);
break;
btn2.addEventListener(MouseEvent.CLICK, goto2);
function goto2(evt:MouseEvent):void {
trace(this.currentLabel);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(3);
break;
btn3.addEventListener(MouseEvent.CLICK, goto3);
function goto3(evt:MouseEvent):void {
trace(this.currentLabel);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(4);
break;
btn4.addEventListener(MouseEvent.CLICK, goto4);
function goto4(evt:MouseEvent):void {
trace(this.currentLabel);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(5);
break;
btn5.addEventListener(MouseEvent.CLICK, goto5);
function goto5(evt:MouseEvent):void {
trace(this.currentLabel);
switch (this.currentFrame) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
gotoAndPlay(6);
break;
Thanks so much.
Nicole

If each of these pages are one frame apart from each other,
then you are better off using gotoAndStop().
If you gotoAndPlay() the same frame you're already in, it
doesn't go anywhere so it will play from the frame your in because
any stop() that may be in the frame is already used up. It's a
confusing thing to explain, so hopefully you get it... the goto is
gone to already, and with nothing to stop it, it will play.

Similar Messages

  • Why does every time I try to download a app it's says my credit card security code is invalid but it's the right one?

    Why does every time I try to download a app it's says my credit card security code is invalid but it's the right one?

    Apple I.D. support:
    http://www.apple.com/support/appleid/
    FAQ about Apple I.D.
    http://support.apple.com/kb/he37

  • Why does the cursor stick, jump and choose without clicking?

    why does the cursor stick, jump and choose without clicking?

    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Try the suggestion in this article.
    http://support.apple.com/kb/TS1248
    If this does not help, contact Apple.
    Best.

  • Why does new music downloaded on one device not show up in the library of the other device?, Why does new music downloaded on one device not show up in the library of the other device?

    Why does new music purchased on one device not show up in the library of the other?

    Hi Bev5638,
    Welcome to the Support Communities!
    The article below will explain how to set up Automatic Downloads for your computer and devices.
    iTunes Store: How to enable Automatic Downloads
    http://support.apple.com/kb/ht4539
    Cheers,
    - Judy

  • Why does every Apple update require a restart?

    I vaguely remember a time when OS updates didn't require a complete restart every time you installed one. Why is it the case now? I have had 3 updates in the last 3 days and 3 restarts. The last one was updates to Quicktime, iLife Media browser and iDVD. None of which I would consider a critical components. OK Quicktime might have something in it but I doubt it.
    UNIX is a great because of it modularity and the ability to update components without shutting everything else down. That's what makes it a great server platform. Yes I know occasionally the kernel and other core components need patching and in those cases a restart is required but why oh why does every Apple update of late require a restart?
    Whomever answers (preferably from Apple) please be as technical as you like. I would much rather a real answer than bull.
    Message was edited by: Slobbo
    Message was edited by: Slobbo

    Well, you dont have to believe it but that's what's happening. Many updates don't modify critical system files, but those that do will require a restart. Not all updates to QuickTime, for instance, have modified critical system files, so they've not required a restart. However, the latest version does do this, so the restart is required.
    Likewise with iLife, the media browser is a core utility that is shared by the system and many applications and it's installation will require a restart. There are other similar shared resources as well which can get updated from time to time.

  • HT2463 Why does my apple tv play one song then stops streaming?

    Why does my apple tv play one song then stops streaming?

    Make sure all of your songs have a checkmark next to the song title. There are small blue boxes that need to be checked for songs to play consecutively.
    If the library is unchecked, you can easily recheck things by clicking on a song, going to the top line selecting Edit>Select All, then right clicking on the selection and choosing "Check Selection".

  • Why does the Right-click - "t" delete a bookmark on the bookmark toolbar, when Right-click - "t" opens a new tab elsewhere. The bookmark toolbar use Right-click - "w" to open in a new tab. Please change this to "t" to...

    Why does the Right-click -> "t" delete a bookmark on the bookmark toolbar, when Right-click -> "t" opens a new tab elsewhere in Firefox. The bookmark toolbar use Right-click -> "w" to open in a new tab. Please change this to "t" to... I keep deleting all my bookmark because you don't make the commands consistent!

    If you have accidentally removed bookmarks then use "Organize > Undo" in the bookmarks manager (Bookmarks > Organize Bookmarks) to get them back.<br />
    The Organize button is the first of the three buttons on the toolbar in the Library (Bookmarks Manager).<br />
    That only works if you haven't closed Firefox.
    [https://bugzilla.mozilla.org/show_bug.cgi?id=301888 Bug 301888] – Bookmarks cut instead of opened in new tab from Bookmarks Toolbar Folder
    (please do not comment in bug reports; you can vote instead)

  • HT1657 why does every movie I download stops half way and says err=-50/err=-39?

    Why does every movie I download stop half way and say err=-50/err-39? I also have internet connection that is really good and it keeps saying to check that

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Why does every 3 mths my ipod keeps on asking for a restore when i did nothing to it

    why does every 3 mths my ipod keeps on asking for a restore when i did nothing to it?

    Either a bad memory/storage location that manifests its infrequently or a intermittent hardware problem like a loose connection.

  • Why does redirect page open in a frame?

    Why does redirect page open in a frame? I don't see the point. Can it be made to open in it's own window?

    We now support an option for having the redirect for an embedded form take over the entire window. This FAQ explains:
    http://forums.adobe.com/docs/DOC-1991
    Randy

  • Why does my cursor keep jumping around

    Why does my cursor keep jumping around the page when I'm in mail or searching with firefox.  Aslo, sometimes my page minimizes for no reason and new pages open. This has started since upgrading to OS X
    wl

    Post in the Microsoft Word for Mac forums. 

  • HtmlText anchors respond only on every other click.

    Hi,
    I'm using Flex 3.5 and I have a Text object with an anchor set in the htmlText property. The link only works on every other click. Is this a known problem in Flex?
    Thanks!

    I've done a simple case and I've found out that I get this problem when the htmlText is inside a TabNavigator object. If it's outside it works as expected.
    This is what is going on...
    http://ardeeser.com/dev/clients/test/
    I think it's a focus issue. You have to click once on the link for the tab to gain focus. Is there a good work around for this?

  • Why does the iphone 5 always display the wrong time

    why does the iphone 5 always display the wrong time

    I had similar problem. My iPhone was always about 3 minutes faster than the correct time here in the UK which I found to be very irritating. It just came to a head because here in the UK we have just changed from British Summer Time back to standard GMT. This actually worked automatically except that the iPhone time still showed it to be about 3 minutes faster than GMT. However I have now cured the problem (almost) by going to
         Settings/General/ Date & Time/ and then selected the "Set Automatically" button.
    The clock then immediately jumped back 3 minutes and now the iPhone time is only about 10 seconds slow which is good enough for me.

  • Why does every new download create new problems-is every user so advanced to be able to play tech-techs do not seem to get most either,they just keep playing wi

    Every time something gets downloaded I loose something else or it makes unwanted changes with other things that were working fine but now are not. I am just a regular user with a PC and I am seeing techs do not know much about how to fix stuff either, they just keep playing with buttons until something happens hopefully for the better. It took me 2 days and several hours to figure out how to set up the Firefox download and now it suddenly recreated itself to a whole new look and I have to start all over again to fix it. Firefox works so much faster than my Internet Explorer but the Explorer is more user friendly and so much more simple to use. In the middle of all this my Windows Media Player did some kind of upgrade and now my Library looks like an Alien rewrote it to suit themselves. Push the wrong button and bye bye all my favorite stuff or it is rearranged and all separated out, lots of my stuff is mp3 seminars, not music and those are not even recognizable by the new downloads. Why is every new download more INVASIVE than the last. How about some basic standards & share? And look at what is in the box just below this one!!! What does that even mean? And No I do not want you to AUTOMATICALLY add anything/what and then open this & click on Allow /Install???? What will that interfere with? You need ordinary people users to be working with you to see if they can figure out what you are talking about? I used to love using my computer, too many changes one one top of the other is getting very annoying and expensive to fix. Keep it SIMPLE. Not everyone is a computer Nerd. And PS: How about some remote help or maybe that is a remote chance of help? And maybe I just wasted another 20mins writing this and only a computer will read it.......HELLO....IS ANYBODY OUT THERE?

    Thank you for proving my point brilliantly. For the moment, I shall keep my rantings and the difficulties to myself because you obviously can not handle a bit of user's frustration. Too bad really, that you can not see it as an opportunity to make improvements and be a Hero in the process. I did say that Firefox works much faster, why did you not take that personally as well? ............. Another day, Slick ! ...........

  • IMac freezes with every other click

    I am new to the community and hope to find help for a big problem.
    I run OS Yosemite 10.10.1 on my 2010 iMac 2.93 i7 (upgraded to 12GB RAM a year ago).
    For the past 5 days it gives me the colorful wheel of death almost with every second click. I cannot open a program or search a site or move a file without the iMac freezing up. Just writing these two sentences, it froze twice for about 45 seconds, which is the average, but it can take up to 2 min before the Mac responds again. I have not changed anything on my iMac knowingly in the past few weeks.
    I closed every program I don't need, shut down dropbox, Google Chrome, and any program I can imagine slows down processing speed. I cleaned my desktop, made sure I have 20% space on the HD. Since I am always suspicious of the Microsoft Office programs, particularly Outlook, I logged in with a different user name that does not use these programs. Nothing helps. I used Magician, Disk Utility, Activity monitor to see if anything looks odd, but all seems normal.
    I am not that Mac literate, so I just discovered the Console that seems to log error events. This is what the last 5 min look like; it tells me I had 4000 events logged yesterday. Is this normal?
    Please if anyone can advise what to check, change or do to stop this nuisance that would be awesome.
    Thank You!

    Basic guess:
    Under utilities you have to run the disk doctor to see what is wrong with either your hard drive or backup drive - stop time machine first & check the backup drive first as that is the one that may be damaged.
    Hopefully someone is online now who can post the details -
    Another option is to take it in for repair to apple store or authorized apple dealer (if on warrantee of any kind)

Maybe you are looking for