Problem with actionscript 3 game movie

I need two buttons in my film to play the parts of my calendar.  My actionscript looks like this:

btnConnect.addEventListener (MouseEvent.CLICK, play_btnClickHandler);

function play_btnClickHandler(ev:MouseEvent):void

{

this.gotoAndPlay (1);

}

btnBranded.addEventListener (MouseEvent.CLICK, play_btnClick);

function play_btnClick(ev:MouseEvent):void

{

this.gotoAndPlay (149);

}

The first button works fine.  The second button will just frame 149 and stops.  What I am doing wrong?

There is nothing wrong with the code that you show.  Look for something else, like a stop(); command in frame 149

Tags: Adobe Animate

Similar Questions

  • problems with actionscript 3.0

    Hey im having some problems with my blackjack game. The problem is that the program will not pit the first function and it goes directly to the next function. Can someone help me find the error?

    import flash.display.MovieClip;

    Stop();

    var cardArray:Array = new Array (kort1, kort2, kort3);
    var knapp:MovieClip = new stortrivas;
    addChild (knapp);
    Knapp.Width = 100;
    Knapp.Height = 50;
    Knapp.x = 100;
    Knapp.y = 200;
    knapp.addEventListener (MouseEvent.CLICK, spelare);

    function spelare(e:MouseEvent):void {}


    z = 0;

    for (var k: int = 0; k < 2; k ++) {}
    var pickCard1 = cardArray [int (Math.random () * cardArray.length)];
    var card1:MovieClip = new pickCard1();
    addChild (card1);
    card1.x = 250;
    card1.y = 300;

    If (k < 2) {}
    for (var n: int = 0; n < 2; n ++) {}
    card1.x = 250 + z;
    card1.y = 300;
    z = z + 50;

    }

    }
    }
    }
    knapp.removeEventListener (MouseEvent.CLICK, spelare);
    knapp.addEventListener (MouseEvent.CLICK, dealer);
    function dealer(e:MouseEvent):void {}
    z = 0;

    for (var i: int = 0; i < 2; i ++) {}
    var pickCard = cardArray [int (Math.random () * cardArray.length)];
    var map: MovieClip = new pickCard();
    addChild (card);
    Card.x = 250;
    Card.y = 100;

    If (I < 2) {}
    for (var j: int = 0; j < 2; j ++) {}
    Card.x = 250 + z;
    Card.y = 100;
    z = z + 50;

    }


    }
    }
    }

    There is no listener function that calls spelare().  immediately after the creation of a listener that calls spelare(), move you.

  • Have a problem with M/S Windows Movie maker that started today?

    Have a problem with M/S Windows Movie maker that started today? When I add an audio link towards the file it double in the space. If the audio is at 3 min., now it is 6 min. Since it was just started is a problem on my end, or with the product? Spoke of a M/S tech and he told me to download the new windows live movie maker, but have the same problem. What I am doing wrong?

    It may be interesting to try to convert the audio file to the
    . Format WMA before you import into Movie Maker.

  • I have a problem with a Gamehouse game. Talked to them and they say that it is a problem of compatiablity with Vista.

    I have a problem with a Gamehouse game

    Talked to them and they say that it is a problem of compatiablity with Vista. It's Super Jigsaw Puzzle and I the hours worked in several puzzles and now when I try to go inside he closes Super Puzzle. This is frustinating because I've uninstalled and reinstalled the program 3 times, it does not help. Is that what I can do to fix this problem in Vista? I have all the updates except IE 8.  We like IE7, but all the other updates sent we have.

    If it is a program downloaded and installed, read this:

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    Windows Vista Compatibility Center

    First thing to do is to check its Vista compatibility at the link above, and if not to see what patches/solutions are available from its manufacturer...

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    If this is not Vista compatible, read the info on the link above.
    It works for some programs, but not all.

    This applies to software programs, NOT hardware drivers.

    If it's Vista compatible > uninstall it > Re-download/save to your desktop > right click on setup.exe O run as admin.

    See you soon.

    Mick Murphy - Microsoft partner

  • Problem with installing the game "no apps are installed to open this type of link try find at the store.

    Original title: problem with installing the game

    install a game but saying o\s

    No apps are installed to open this type of link try find in the store and when I opened store it for the app its available nt tried compatibility troubleshooting but no use it please help

    Hi harsh,

    For a better understanding of the issue, I would need more information on your side.

    1. What is the name of the game you install?

    2. where did you install the game from?

    3. What is the full error message?

    4. the question facing you while opening the store Windows or you are looking for an app? Have what compatibility troubleshooting steps you tried?

    To resolve the problem with applications, I suggest you try the procedure described in the article and see if it helps.

    Solve problems with a soft

    Please provide the necessary information to help you further, I'll be happy to help you.

  • Problem with ActionScript

    I had a problem with my code actionscript for a game I'm working on. I need to occur if the player is visible, unfortunately it fires if the player is visible or not, and turns the visible player when it is not supposed to be. Could someone please explain what I did wrong or help me fix my script?

    If (_root.playerleft._visible = true & & Key.isDown (83)) {}

    var bulletleft = _root.attachMovie ("BulletLeft", "BulletLeft" + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    bulletleft._y = FLF;

    bulletleft._x = _x-25;

    }

    use the double equal (==) to test for equality:

    {If (_root.playerleft._visible == true & {Key.isDown (83)})}

    var bulletleft = _root.attachMovie ("BulletLeft", "BulletLeft" + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    bulletleft._y = FLF;

    bulletleft._x = _x-25;

    }

    Alternatively, with a Boolean value, use:

    If (_root.playerleft._visible & Key.isDown (83)) {}

    var bulletleft = _root.attachMovie ("BulletLeft", "BulletLeft" + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    bulletleft._y = FLF;

    bulletleft._x = _x-25;

    }

  • Problems with playback of games on my Satellite L300-13 b

    I hope I've put this in the right forum.

    I tried different games and some of them seem to work, even if my computer exceeds the minimum system requirements.

    For example, I tried to install and play call of duty 2.
    After reducing to the lowest settings possible, the game still does not properly.
    I don't really understand what seems to be the problem.

    The game I'm playing at the moment is to Blood bowl.
    According to the requirements of gaming system, my computer should work fine with this game.
    Curiously, this isn't. I tried to use "system requirements lab" and their program: "can you run".
    However, it shows that I can not run the game, even if my computers Betacam is good enough.

    If anyone knows what could be the problem, please help me.

    Hello

    > After reducing to the lowest possible settings, the game still does not properly.
    If I understand correctly, you are able to start the game but the chart doesn't normally elapse.
    Is this correct?

    Hey mate... Listening
    As far as I know, that this unit was equipped with the graphic chip Intel GL960.
    To be honest this chip chart ist not designed for purposes of games!
    It s a common graphics chip that can be used for a common office of the purpose, but it of not designed for games!

    So you're going to get the game running, but don t expect too much

  • Problem with playing the games on my Satellite A100

    Hello..
    Thanks for your help on my last question.
    I was wondering if the Satellite A100-756 is compatible for the Sims2.
    I tried to play it, and it works fine until I try to leave the game.
    He died with a "blue screen" and restarts.
    Everyone is having the same problem with that?
    Thanks for your help.

    Concerning

    Have you checked the SIMS support page? This situation is already known?

    If I were you, I will check for some SIMS forum. Maybe other SIMS players have similar problems. There, you have much more chance of finding useful tips.

    Check this one http://www.sims2community.com/

    Good luck!

  • Problem with the Activision game

    Hi Mark
    Thanks a lot for your answer. Sorry, it took a lot of time to get back to you, Windows 7, you do not know ;-)

    Right, I tried both of your suggestions, the first I followed religously, had incorrect switch or waited for bad back prompt [!] I think so. The second went well, but nothing seemed to be the case, no patience, maybe.
    In any case, I bought another 1 Tb HDD [Cheap @ Maplins, UK] and tried to the other installation costs. Guess what? Yes, it is true, he went abso-bloody-Marc soft.
    No problem. Everything is installed, or almost, and it's all working well.
    Thanks again Mark.
    p.s. I don't think you know why everyone including Activision AND Microsoft said that Call of Duty: World at War is totally compatible and works on Windows 7 64 bit... and! do you have?

    All the best
    Bozsvfr

    Bozsvfr,
    COD: World at War is a game compatible with Windows 7 64 bit.  A common problem with some games running after moving to Windows 7's hardware drivers.  Make sure that your system meets the requirements of the game system and then update your hardware drivers.  If make sure that hardware vendors have 64-bit drivers Windows 7 available, usually video and sound drivers cause problems with games when they are not updated.

    If everything is up to date so you may want to boot your pc and test.  Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problems with the old game; Total Annihlation. Display a horizontal bars, turns into a rainbow of colors. Help, please. I love this game.

    I have display problems with a game that I just downloaded. The game is Annihlation Total; the game does not appear correctly. He works for a few seconds, all the graphics turn Rainbow and I can't seem to stop. Tried to run in compatibility mode; did not work. I hope there is a solution because this is one of my favorite games...

    Hi razorbladeapple,

    (a) what operating system do you have? And also to indicate the version?
     
    There is currently no information on the compatibility of the game with Windows 7.
     
    (b) is the display horizontal bar change only whem you play the game?
     
    (c) you have installed the updated display drivers?
     
    Some devices have drivers you need to install yourself. If you download a driver that is not self-installable, follow these steps:
     
    You must be logged on as administrator to perform these steps.
     
     
    Contact GT Interactive and check what they have to say about the compatibility of the game with Windows 7 because they are the best people to offer support.

    Aziz Nadeem - Microsoft Support
  • problem with running my games more old and newish on Windows 7. __

    Why is there such a probllem with my older games running and more newish on Windows 7.
    If I knew that I would probably be stuck with vista or XP

    Yes, probably you if you use the computer half the time for older games. It is like buying a PS3 with the emulator software and expects all the old games to work, just not going not to happen.

    All games in particular does not? Usually running the installer as administrator (right click, run as admin) works for most things and then launch the game itself in compatibility mode sometimes fixes things.

  • Adobe first Pro CC 2015 [Windows 10] problem with [Canon 6 d .mov] video

    Hello, I had a problem with Adobe Premiere Pro CC 2015. All the videos within the program are played quickly as with speed in effect both in the project window and timeline, but rendered video is at normal speed. I use windows 10.  Can you please help me please?

    [Title edited for clarity... MOD]

    Hello

    Please see the next solution contained in this thread: Re: playback in Premiere Pro 2015.0.1 is a little fast and jerky

    Thank you
    Kevin

  • Problems with low resolution games

    Hello, my name is GiZmO_themachineking.

    I noticed that in Windows Vista (or maybe it's just my computer) that when I play a game with a lower resolution on my screen (1280 * 800), rather than the pixels 'stretch' to fill the screen, it is scaled down and centered in the Middle, with a black frame around it.

    Of course, I can turn the resolution but my computer isn't very good and what makes the slow race game.

    Anyone know how I can fix this error and force the pixels in a game to 'stretch' to fill the screen?

    I think that on the only workaround for the problems of games would be to change the DPI for the fonts setting in your Control Panel/customization "fonts Size (DPI) adjustment." Mark L. Ferguson MS - MVP

  • I just got my computer from Vista to Windows7... Problems with the sites game requiring shockwave remains... Get knocked off line every few minutes... What can I do to stop this? __

    I have problems since I changed my computer from vista to windows7... Sites game requiring shockwave remains... I get knocked off line every few minutes... Why? How can I stop this?

    Hot4Lefteris,
    The first thing I would say (if you have not already done) is to ensure that you have the latest version of Shockwave installed.  If you have still a problem, I would like to run IE without Add-ons and then put only the module Shockwave Player and the test.  Also, follow the other steps listed here and post back with the results.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem with playing video games, DVD and CD audio with windows Vista.

    I had a problem to read these types of discs with my hard drive. It does not recognize that there is a disc at all. This ONLY happens with new discs I get, for example by trying to install a new video game or download a new album that I just got. If I want to play a previously installed game I put game disk in and it works perfectly fine. This only happens with new games that I have not yet installed. E.g. I want to play starcraft, previously installed. I put the cd in starcraft and the game appears as usual. But if I want to install starcraft II nothing happens when I put StarCraft II in the disk drive, even if I go to my computer and double click on your drive, it just opens the CD door and asks to put a disc in when we're already here.

    I tried MR. Fix and it recognizes that there is a problem but is unable to repair. I tried to uninstall the disk driver and not the fixed not restart, but who either.

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burn
    and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    A CD/DVD cleaner might help.

    -----------------------------------

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for

  • Micro detects no voice.

    Original title: need for my cat... can't use my micro... can not detect my voice... _ Cannot use my microphone, does not detect my voice.

  • I need my computer PID

    IM Windows installation it works

  • HP J4680 all in one printer &amp; scanner

    I had to uninstall and reinstall my printer.  I have windows 7 and it will not support my printer so I had to download the driver and software.  Everything went well and I printed a few things.  But when I restarted the computer, the printer has been

  • Deploy multiple files of cod with a single jad file

    I am developing two applications, A and B, I want to deploy the web as a single package; the desired user experience, it is that the user click on a single link and the two applications is installed. I have a file of the cod and cod file B, and I wan

  • SA540 end of life

    Hello I tried to give a sense of end of life policy and notifications for the SA540 unit. The "last day of support: HW" is on 30 April 2016. This means that updates of firmware to address security issues will be available until this date, or firmware