Can someone please help me see my error?

I create a game of shogi in flash with action script 2. My code is below. It works great until I entered the part cDown and then, whenever I press the c button, flash crashes. Does anyone know why this is/where is my mistake? Can someone show me how to fix it please? Thanks a ton.

PS: according to the google search engine, | means an operator logical 'or' is - that correct?

gotoAndStop (1);

var pDown = false;

var cDown = false;

frame_pawn_a1 = 1;

var keyListener:Object = new Object();

Key.addListener (keyListener);

keyListener.onKeyDown = function() {}

if (Key.getCode () == 80) {/ / p - key}

pDown = true;

}

if (Key.getCode () == 67) {//key c

cDown = true;

}

};

keyListener.onKeyUp = function() {}

if (Key.getCode () == 80) {/ / p - key}

pDown = false;

}

if (Key.getCode () == 67) {//key c

cDown = false;

}

};

pawn_a1.onRelease = function() {/ / mc, click code}

if {(pDown)

if (frame_pawn_a1 == 1) {}

pawn_a1.gotoAndStop (2);

frame_pawn_a1 = 2;

}

if (frame_pawn_a1 == 3) {}

pawn_a1.gotoAndStop (4);

frame_pawn_a1 = 4;

}

}

if {(cDown)

if (frame_pawn_a1 == 1 | 2) {}

pawn_a1.gotoAndStop (3);

frame_pawn_a1 = 3;

}

if (frame_pawn_a1 == 3 | 4) {}

pawn_a1.gotoAndStop (1);

frame_pawn_a1 = 3;

}

}

};

With the exception of a possible need in the logic there doesn't seem to be something in this code that causes this error.  This type of error happens usually when the program runs in an infinite loop.  You have the code in all settings involving loops?

The possible flaw that I mention must do with...

If (frame_pawn_a1 == 1 | frame_pawn_a1 == 2) {}

pawn_a1.gotoAndStop (3);

frame_pawn_a1 = 3; / / you just have this value in 3

}

If (frame_pawn_a1 is 3 | frame_pawn_a1 == 4) { / / so it triggers as well }

pawn_a1.gotoAndStop (1);

frame_pawn_a1 = 1;

}

If you find yourself with a little bit of a conflict where pawn_a1 needs to go.  It could be that you want to use, and "else" between these conditional statements

Tags: Adobe Animate

Similar Questions

  • Can someone please help with this flash error?

    I am unable to load a file CS6 in CS5 at school I want to that I just discovered, I did. I can't make a .swf because of blocks of privelages. How can I convert to load in CS5. I downloaded the .fla to mediafire and wonder if anyone can convert it, since I can't run an exe on this computer here. My project is due in 20 minutes, I love you, one that helps me for the rest of my life. http://www.mediafire.com/?dbe7brznpbbo8zv

    Here you go: http://www.kglad.com/Files/forums/Untitled-3.fla

  • can someone please help, unable to update or restore error-1

    can someone please help I'm unable to update or restore my iphone 5 c due to an error (- 1).

    It is usually a hardware error and you will need to get it repaired. You can also get the same message if the iPhone was jailbroken.

  • I have an error message after an update, WindowsUpdate_0000737D""WindowsUpdate_dt000, can someone please help, my computer installs updates whenever I stop. "

    I have an error message after an update, WindowsUpdate_0000737D""WindowsUpdate_dt000, can someone please help, my computer installs updates whenever I stop. "

    @cinziac (who has not declared his complete version of Windows):

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    ~ Robear Dyer (PA bear); MS MVP (that is to say, mail, security, Windows & Update Services) since 2002. DISCLAIMER: I do not represent nor don't work for Microsoft

  • I think that my system of basic windows files have been changed and currupted can someone please help!

    I get major errors that led me to think my windows files have been modified and currupted I just can't install microsoft updates they download, but I'm unable to install, I'm unable to use the Disk Defragmenter and disk scan as it said my system is already in use. I am also unable to use my acer factory restore settings because it loads but never finishes running can someone please help! I am not in a position to buy or pay for a new cd of windows so that I can make a new clean instalation as I can't afford it can someone please help!

    Download of updates of work but the installation of updates arnt working
    installation of games arnt working cd - I get errors
    disk defragment simply does not work I click top but nothing happnens - perhaps sumthing to do with priviliages admin, but I am the administrator.
    Scan disk does not work as it says system is already used but works if I put it to run at reboot
    MY acer DEFAULT factory restore setting does not work it loads but never short - that led me to believe I have no control over my privliages of basic windows system, but I am the adminsitror.

    I already had major problems when WIndows would break and stops working when you start up, I managed to solve this problem in safe mode and disabling some start up programs to check the malware was eventually attached to my system using windows scanner and malwarebytes defnder, I managed, but it seems that it is undetectable.

    I am unable to afford a new cd for a new clean instalation of windows, I think I need. can someone please

    Hello

    There is no Windows Vista downloads available from Microsoft.

    You can contact Acer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    http://us-store.Acer.com/RCD/

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    It comes to the use of the partition Recovery of Acer to restore factory settings.

    http://Acer.custhelp.com/app/answers/detail/A_ID/2631

    Note: During the process, all data stored on your computer will be overwritten. This means that all of your files, such as e-mail and photos, will be deleted. Therefore, we recommend making a backup of all data before starting the recovery process.

    To start the system recovery:

    1. Restart the computer.
    2. When the Acer logo appears on the screen, press the left Alt and F10 keys.
    3. If you are prompted with a Microsoft Windows splash screen, press the Enter key.
    4. After that the Acer eRecovery Management application is loaded, select your type of restore.
    5. Read the review and then click Next when you are ready.
    6. Click Next to start the restore process. It may take 10 minutes up to an hour fom anywhere to restore.
    7. Once the restore is complete, your computer will restart. After the reboot it will load Windows and start the installation of your software and drivers. Your computer will restart several times during this process. Once they are all completed, your computer will be like it was when you bought it first.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Some manufacturers have more available Vista recovery disks.

    If this happens or the recovery Partition is damaged, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Can someone please help me solve my requirement

    Hi guys can you please help me to meet my needs.

    Here are my requirements:

    The bottom of mycompany site Web should appear as a footer (Center).

    And above the footer, my name should be displayed on the right (savvy to the right of the screen)

    Please see the image

    I want that my screen should look like the picture above.

    I wrote code like this:

    HorizontalFieldManager nameHfm = new HorizontalFieldManager(Field.FIELD_RIGHT);            LabelField nameLabel = new LabelField("Developed by me");            nameHfm .add(nameLabel );HorizontalFieldManager  footerHfm = new HorizontalFieldManager(Field.FIELD_HCENTER);LabelField myCompany = new LabelField("MyCompany.com");footerHfm.add(myCompany);VerticalFieldManager nameAndFooterVhm = new VerticalFieldManager();            nameAndFooterVhm.add(nameHfm);            nameAndFooterVhm.add(footerHfm);            screen.setStatus(nameAndFooterVhm); // here screen is instance of the class which extends MainScreen
    

    But the above code responds to my needs. Two labels are visible but not like I want to.

    Can someone please help me solve my requirement.

    Thank you

    Maury.

    Try this:

            HorizontalFieldManager nameHfm = new HorizontalFieldManager()
            {
                //customize if needed
            };
            LabelField nameLabel = new LabelField("Developed by me" , Field.USE_ALL_WIDTH | DrawStyle.RIGHT);
            nameHfm .add(nameLabel );
            HorizontalFieldManager  footerHfm = new HorizontalFieldManager()
            {
                //customize if needed
            };
            LabelField myCompany = new LabelField("MyCompany.com", Field.USE_ALL_WIDTH | DrawStyle.HCENTER);
            footerHfm.add(myCompany);
            VerticalFieldManager nameAndFooterVhm = new VerticalFieldManager()
            {
                //customize if needed
            };
            nameAndFooterVhm.add(nameHfm);
            nameAndFooterVhm.add(footerHfm);
            this.setStatus(nameAndFooterVhm);
    

    Concerning

    Bika

  • Can someone please help to get the drivers/utilities on my Sony laptop to my bluetooth stack?

    Toshiba bluetooth stack, Sony & Windows 7

    "To continue or not to continue the reinstallation of the Toshibas enigma -" Toshiba bluetooth stack "-on a Windows 7 Pro upgrade Vista Pro.

    After a clean install, I lost my beautiful environment of Bluetooth on my laptop Sony vgn-bx51-vn in 2005 (a laptop that is like finding teeth of chicken on the Sony site).  I did a smart thing to keep the "Toshiba" Bluetooth file when I finally removed the windows.old folder after the re-installation.  Only smart because it allowed me to compare models with a pilot of 'original' newly downloaded and files utility (including msi files) Sony - the result was that there are a lot of files that is different.

    They newly installed drivers grumble horribly subject knowing incompatabilities with Win 7 (which is just a skin on top of Vista... or so I thought) and refuse to carry you.  They subsequently take you to Toshiba where you end by abandon the search for any useful help in spite of being a good faith user - no?

    Cut to the Chase.  Can someone please help to get the drivers/utilities on my Sony notebook by hook or crook.  NB. I hope just to aspire to the use of Bluetooth for something useful someday but am also irritated by the cul-de-sac which is software policy.

    Thank you very much - I.

    Ok.

    I mentioned that I had 2 problems - no Wifi and no BT.

    Wifi driver here http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProdId=2259&DwnldID=20790&ProductFamily=Wireless+Networking&ProductLine=Intel%C2%AE+Centrino%C2%AE+Wi-Fi+Products&ProductProduct=Intel%C2%AE+PRO%2fWireless+3945ABG+Network+Connectioneng#help

    And here's the fix for BT http://mikescloset.blogspot.co.uk/2011/12/dell-toshiba-bluetooth-350-and-windows.html

    Credit to Mike for the intelligent correction.

  • If [mail {$to, $subject, $totalmessage]} [this is the code I get a syntax error in Dreamweaver CS6.]  can someone please tell where is the error and how to fix?

    If {{mail {$to, $subject, $totalmessage]}

    It is the syntax committed an error I am getting in dreamweaver CS6.

    can someone please advise how to solve this problem?

    Thank you!

    Stacie

    If {{mail {$to, $subject, $totalmessage]}

    The supports are all wrong. You can use, where you can $headers can represent From: e-mail.

    If (mail ($ $subject, $totalmessage, $headers)) {}

  • Code 646 error that I tried to install updates KB977304 and KB976416, but they continue to come down can someone please help me.

    Error 646 dates moved KB977304 and KB976416 please help.

    Hello

    You need these updates? They have already installed or do not have the programs what are
    (Windows updates sometimes suggested those who are not needed). If Yes, then go into Control Panel-
    Updates to Windows - click right on and HIDE.

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

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

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

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

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

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

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Message "Link is no longer active" when I send an e-mail link to a file in my cloud. New to cloud, can someone please help...?

    Hi all

    I'm new to the cloud. Trying to send a customer a link to a file of design in my cloud. But when they click on the link the GET an error message saying the link is no longer active. Do t understand why, can someone help me please.

    @frametheory - old 2014 messages are not related to the current issue. Please see my post here Re: I created a link to the files on my cloud account and now cannot open it I get this message "we're sorry, there was erred retrieve this asset sharing status.» Please try again later. "and I can't create a new link asking you to send information about the link that does not work.

  • Can someone PLEASE help me with this Div, it drives me crazy

    I'm putting several divs classes within a div id area As you can see in the figure below, instead of the div 'a' scroll to the right in the box of "buttons", he's going down, despite the fact that the box of "buttons" is 400pixels wide, more than enough space to accommodate it.

    Is someone can you please tell me what is the problem with the code? I want just the class "button b" div inside the ID of the div "buttons" box, next to 'one button '.

    Any help is greatly appreciated.

    PS: Yes, I tried image previewed in the browser (I put two images in the each div box class which were 200pixels in width and height)

    Thank you.

    DISPLAY HTML AND DESIGN:

    http://i1006.Photobucket.com/albums/af186/RC20087765/HTMLDesignView.jpg?t=1293134259

    CSS AND DESIGN VIEW

    http://i1006.Photobucket.com/albums/af186/RC20087765/CSSDesignView.jpg?t=1293134282

    Try

    #buttons {}

    Width: 400 PX;

    }

    .one {width: 200px; float: left ;}}

    .b {width: 200px; float: left ;}}

    GRAMPS

  • After that crashing it says, I'm low on memory - can someone please help me increase it?

    I'm not very computer and do not know, how to increase memory. Can someone help me with this please? I am so tired of your computer crashing every 5 minutes approximately. It gives me the crash reporter, but nobody helped me to solve the problem. I'd appreciate any help greatly - thank you


  • I can not access google, but I can access all the other sites. I have this problem in all browsers. Can someone please help?

    Hello.

    I can't access google in any browser ( Chrome, Explorer,Firefox). It just does not load. But i don't have any problem with any other sites. Actually i could even access google just yesterday.
    

    I tried to delete the cookies, anti-malware software installed, I deleted the cache, I erased the history etc... Basically, I tried everything that was suggested on previous questions, but nothing helps.

    I would really appreciate if someone could help me.
    Thank you.

    INDY1391:

    Your problem is solved? If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

  • Can someone please help me with a free upgrade from Windows XP to Windows 7?

    Student in need.

    I am a student in the second half of the school. Finance did not allow me to buy a laptop with Windows 7, and most of the things necessary for research and written research documents you must have at least window7. Please, can someone help me with a free upgrade for Windows XP? That's all I have for now. Please, I beg you!

    You can get a student to the operating system for much less than the retail. Discover your college store, they generally available.

  • Can someone please help me remove my credit card information? Or at least stop the automatic renewal? !!!

    Hello

    Can someone help me remove my billing information (the link is broken on customer support)? Or stop the automatic renewal?

    Adobe never expected to be so meri practices subscription; It's really, really bad taste.

    Hi Thomas,

    Please reach out to support by chat/call for payment and billing related queries.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

Maybe you are looking for

  • Tecra M5 - update card WiFi

    I installed W7 X 64 Enterprise on my Tecra M5 (PTM51A), installed 4 GB of memory. Now, I want to spend the WiFi at N300 with a WiFi card that will load the drivers. I tried an Intel 5100 ABGN (not the Toshiba PA3655U-MPC version), but it won't work.

  • HP laptop, 15 (Touch): password startup

    My friend gave me his cell phone to find out what is wrong with it and when I try to start it up, it goes to the hp splash screen and he asks a startup password. I tried several times without success, and she was never to create a. How can I remove t

  • Pavilion P6207c: Hp mediasmart empty icon in the taskbar and icon missing in hp dock

    I restarted my computer and my HP Mediasmart icon in the taskbar is empty, when I click on it windows says it can't open because that its been moved, renamed or deleted. But the show task up if I right click on it like watch a dvd, listen to mp3's, s

  • Windows keeps cold people and ask if they have problems with their PC?

    Windows keeps cold people and ask if they have problems with their PC? I was just wondering if it's offers a Windows service or should I be worried because I had a persistent caller today asking me to name and asks me to turn on my PC it could help.

  • Unstable USB connection in Windows 8

    When I connect my Z2 to my WIndows laptop, 8 via the USB cable, the connection is unstable. The laptop recognizes the phone and shows as external hard drive in Windows Explorer, but when I open the drive it does not. Then after awhile, it opens a new