Help? Error 1078 - movieclip and keyboard listener

I'm having what is probably a very basic problem, but I get this error message: error 1079: label must be a simple identifier. I try to have AS navigating a panorama, I made in photoshop and converted to a movieclip (panorama_mc). I want to move from one end to the other (the registration point is in the Center) without going beyond the end of the photo on each side. I also want to make sure that when you get to the end, you can navigate in the other direction.

Here is my code:

panorama_mc.x = 0;

Panorama moves back

stage.addEventListener (KeyboardEvent.KEY_DOWN, rightKeyPressed);

function rightKeyPressed(event:KeyboardEvent):void

{If (panorama_mc.x < = 4361 & & panorama_mc.x >-4361)}

{Keyboard.RIGHT:panorama_mc.x-= 20 ;}

}

stage.addEventListener (KeyboardEvent.KEY_DOWN, leftKeyPressed);

function leftKeyPressed(event:KeyboardEvent):void

{

If (panorama_mc.x < 4361 & & panorama_mc.x > = 4361)

{Keyboard.LEFT:panorama_mc.x += 20;}

}

}

If (panorama_mc.x > 0)

{

panorama_mc.x=-panorama_mc.width/2;

}

ElseIf (panorama_mc.x < stage.stageWidth - panorama_mc.width)

{

panorama_mc.x = stage.stageWidth - panorama_mc.width/2;

}

}}

Stop();

Let me know what you think. Thanks in advance.

The conditional statements must be inserted in the case code, surrounding the lines where you set the panorama_mc.x property...

function rightKeyPressed(event:KeyboardEvent):void

{

(& panorama_mc.x >-4361) {}

Switch (Event.keycode)

{

case Keyboard.LEFT:

If (panorama_mc.x<=4361) panorama_mc.x="" +="">

break;

case Keyboard.RIGHT:

If (panorama_mc.x > =-4361) panorama_mc.x-= 20;

break;

}

}

As they deal with only a single line of code conditions do not need the braces, even if they can still be used.

Tags: Adobe Animate

Similar Questions

  • Mouse and keyboard Center does not detect MS Trackball Optical

    When I plugged a Microsoft Trackball Optical on my laptop running Windows 7 Ultimate, it automatically downloaded and installed Microsoft Mouse and Keyboard Center - who said no. Device detected detected.

    Awesome! A Microsoft program that cannot detect automatically detected Microsoft device that is on the list of devices supported. So amazing that I could just cry, laugh or both.

    Strange thing however, on my desktop PC, also under Win 7 Ultimate, there nothing done except that work when I plugged an identical MS Trackball Optical.

    Hi GreggEshelman,

    I suggest to install the keyboard and mouse last Center from the following link and check if it helps.

    Mouse and keyboard Center 2.2 (formerly IntelliPoint IntelliType Pro)

    http://www.Microsoft.com/en-in/Download/details.aspx?ID=39098

    You can also refer to similar: http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/microsoft-trackball-optical-not-recognized-by/e0a2d4d2-243f-4adb-8596-6f2318f7d09a

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • I always get an Error Message When I go to listen to my music, saying: I can't listen to because of its no. ID error is 0xC00D11BA and Condition ID is 0x00000000

    Can someone help me please ID 0xC00D11BA Condition ID error 0x00000000, I can't listen to my music. Thank you

    Hi tommyh (2),

    1. what Media Player do you use?

    2 did you change on your computer before this problem?

    3. What is the file format of the music files?

    4. you receive this error code for all music files or any file in particular?

    If you use Windows Media Player, follow this link and check if the problem persists:

    Windows Media Player Error Message help

    Hope the helps of information.

  • The USB ports and keyboard randomly not working no-error 43

    Hi all

    I tried intermittently in recent days to resolve a really annoying error 43. I was able to glean
    of the various forums that problems similar to mine are most often took place and various folk remedies
    appear to be available, but none of them have worked for me.

    Here's what happens: apparently at random, my usb ports and a keyboard stop working. It's especially annoying
    because I have a usb mouse, when this error occurs, I'm so completely powerless to do anything.
    I got around it sometimes by plugging my mouse into a different usb port (my computer a lot). That's how
    I found that I was getting code 43 error, "this device has been stopped because he reported the problems." (do not remember
    the exact wording).

    This started happening a few days ago, I've never had any problems like this before. I also tried other usb devices
    in the port - nothing works when the error occurs. Curiously, the error sometimes stops just as randomly
    as it begins. Sometimes some ports work and others - sometimes, I can't use my keyboard, but not my mouse and
    Vice versa.

    Here are the remedies I've tried:
    1. Uninstall and then reinstall the drivers for the USB controllers, mouse and keyboard
    2. performance of FixIt for hardware and drivers
    3 let the computer unplugged for a while, then returning to it (it helps temporarily, but the error still recurs)

    Sometimes, I heard that you may need to update your BIOS. I already have the latest version of.
    If someone needs more information, let me know.

    Alright! That's all. I hope someone can help me, that would be a really stupid handicap for my computer to have otherwise.

    Update the latest drivers windows 7 compatible chipset and motherboard manufacturer's Web site.

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    If the problem continues, I fear that you may need to replace the USB hub.

  • After a microsoft error message, my laptop keyboard has sudenly has started to misbehave - characters are two-way and in case added places after the original character. Clues?

    After a microsoft error message, my laptop keyboard has sudenly has started to misbehave - characters are two-way and in case added places after the original character. Clues?

    Care to be more detailed?  What version of Windows?  What is the brand and model of the laptop?  How old was he?  Have you contacted the provider support?  What has changed on your PC between when it was last and now?

  • HELP error code: 80072efe - cannot download or install security updates or update the definitions of viruses and spyware

    Help, please!

    I am running Vista Home Premium 32 bit on SP2.

    I just had my McAfee security expires and since I was not able to install security updates.

    I uninstalled McAfee and searched my system to make sure that it is completely gone, then I installed Microsoft Security Essentials.

    I was able to update its definitions of once and since I was not able to do so once again - instead, I get the error message "Virus and Spyware definitions update failed" and the code of error 0x80072efe

    I have since run a full scan of the system and the following were found on my system:

    -Trojan Dropper

    -Trojan notifier

    -Trojan Downloader

    -Virus: Win32/Alureon.H

    It is said that they have been removed - I'm not sure if they have something to do with my problems of system...

    Also my windows update still does not go to download security updates, and it still gives me the same error code.

    Is there a way to fix this?

    Thank you very much

    Also, the first update failed installed has been updated for Windows Vista (KB955430)

    The last successful security update was security update for Windows Vista (KB979309)

    The one who follows - update security for Windows Vista (KB978338) failed and there all security updates do not have

    I just had my McAfee security expire... I installed Microsoft Security Essentials.

    You should have uninstalled the McAfee application and download / run the tool to remove McAfee Consumer product and then installed Microsoft Security Essentials before as your McAfee subscription has expired.

    See...

    Can I install Microsoft Security Essentials [or any other anti-virus/anti-spyware application] to clean my already infected computer?
    http://social.answers.Microsoft.com/forums/en-us/msescan/thread/87058857-D181-4019-a723-efd9a49d9275

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows.  Please note that a repair installation (upgrade AKA on-site) will NOT fix it!

    HOW to do a clean install of Vista: section "If you want to reinstall Windows Vista by running a new installation...". "of http://windows.microsoft.com/en-us/windows-vista/Installing-and-reinstalling-Windows-Vista

    Once installed the clean, you will have the equivalent of a "new computer" in order to take care of everything on the next page before connecting the machine to the internet or one local network (i.e. other computers) otherwise and before using a flash drive or the SD card that is not brand new, or has not been freshly formatted:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    Tip: After getting the computer fully patched, download/install KB971029 manually: http://support.microsoft.com/kb/971029

    NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free and download/run the removal tool before installing updates, Windows Service Packs, or updates IE and before installing your new anti-virus application.

    Norton Removal Tool
         FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    McAfee Consumer product removal tool
         http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exe

    See also:

    Risks & benefits of P2P file sharing
    http://www.Microsoft.com/protect/data/downloadfileshare/filesharing.aspx
    http://blogs.technet.com/MMPC/archive/2008/10/06/the-cost-of-free-software.aspx

    Measures to help prevent spyware
    http://www.Microsoft.com/security/spyware/prevent.aspx

    Measures to help prevent computer worms
    http://www.Microsoft.com/security/worms/prevent.aspx

    Avoid fake security software!
    http://www.Microsoft.com/security/antivirus/rogue.aspx

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • All USB ports not working doesn't no causing of mouse and keyboard doesn't work either (considered the source of the problem). Need help fixing without using the mouse or the keyboard.

    None of my usb ports work, and I can't get my mouse and keyboard to respond.  The computer will start, but none of the usb ports work, and I don't have the use of a mouse or a keyboard works through all the patches.  Help!

    I have PS/2 ports, but no mouse PS/2 or a keyboard... did not have those last few decades and don't know anyone who has these features more

    $6.36 (free delivery if you have Amazon Prime, otherwise on $11 including shipping): http://www.amazon.com/V7-Standard-PS-Keyboard-KC0A2-4N6P/dp/B007R9YV0C/ref=sr_1_1?ie=UTF8&qid=1372529682&sr=8-1&keywords=ps%2F2+keyboard

    during boot, or perhaps in Safe Mode

    Assuming that your keyboard works during boot (and it should; trying to tap F8 to access Advanced Boot Options Menu), probably the simplest method would be to make a Hiren Boot CD, boot from it and use one of the many included tools.  I have not experienced with your particular situation, so I can not tell you what tools will be or will work for you, but my guess is that USBDeView might work.

    Description: http://www.hiren.info/pages/bootcd

    Download and burn (copied from ElderL):

    Download the Hiren ISO here (download important enough but worth it).

    http://www.hirensbootcd.org/download/

    I like to use ImgBurn to create a bootable ISO CD:

    http://www.ImgBurn.com/

    When you install ImgBurn, DO NOT install the Ask Toolbar (ever).

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    Thanks for all the help. Seems that there is no easy 'reset' for bad hardware configurations.

    However, I dug to the bottom of my Lac 'tech' and found a USB-to-PS/2 adapter, which allowed me to use the USB mouse into the PS/2 port and reactivate my USB ports.

    All is well now.

    Thank you all for your answers!

    Kind regards!

  • Im getting this error code: 80080005 and dt000 but I do not understand why or how he got that way please help?

    Original title: help please if you can

    Im getting this error code: 80080005 and dt000 but I do not understand why or how he got that way please help?

    Hi LesaW,

    ·         Exactly when you receive this error code?

    Microsoft has released a new "Fix it" solution that should automatically solve your problems with Windows Update. Click on the link below and follow the instructions.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    I hope this helps.

  • Z10 Help BlackBerry - Blackberry error - an error has occurred and Blackberry World will be closed - tried EVERYTHING!

    Whenever I try to launch the Blackberry World, I get the message ' year error has occurred and Blackberry World will be closed. "  Try to wait a few minutes and reopening Blackberry World. "I have read all the post and unless I missed something - nothing works.

    I have a Blackberry Z10 - STK100-1

    Software - 10.2.1.2977

    I tried-

    • launch of BBW with just using Wifi
    • launch of BBW with just using the data
    • launch of BBW with Wifi and data
    • Resets hard (after changing the settings above)
    • Soft resets
    • Battery grips
    • Tried to access BBW through 'games'... three points...
    • BBW of opening online and trying to access my blackberry through the online program.

    AND I just wiped my blackberry to start again, and it still does not!  Restoring my data was carried out using the 'fast' backup, so it should not be due to a conflict with another program.

    Can you please help - I'm about to tear my hair out!

    OK, as a work possible, try this: go to your music folder. Press the three points at the bottom right. I believe that if you have downloaded all the music in the BBerry world, the choice to access BBerry World will be there and it should work. If this is not the case, here are some other workarounds.

    http://www.BlackBerryOS.com/content/if-you-still-having-issues-BlackBerry-world-your-Z10-here-few-mo...

  • I cannot install the suite Criative cloud reinstall every time, she told me that gave the error in installation and transferred me the site of re - download the creative cloud. Can you help me?

    I cannot install the suite Criative cloud reinstall every time, she told me that gave the error in installation and transferred me the site of re - download the creative cloud. Can you help me?

    uninstall all cc (if nothing is installed) by using the adobe uninstaller programs.

    clean through the use of the Adobe Creative Cloud cleaning tool to solve installation problems

    Restart your computer, and then install, https://creative.adobe.com/products/creative-cloud

    Use the desktop application to install your programs of cc.

  • Help, I get error of Navigation and I don't know what to do.

    This project is of pre Pro CS5.5 and dynamic Encore of Pro pre-related.

    It takes about 3 hours and I chose 8.54 GB dual layer as my blank DVD

    First of all, everything is ready to build my dvd.  transcoding completed as indicated below.

    1.jpg

    I then click on [check out the project], then [Start] and it comes up with No Items Found.

    2.jpg


    Then I click on [build].  I get where the screen below (but the status

    bar has achieved fully to the right to command for the movie files)

    3.jpg



    Then it errors saying access denied as shown below.  Access denied?

    Access to what?  You'd think Adobe would be a little more useful

    only a message that says nothing and says nothing about what

    to do.  Yes, I'm frustrated, I'm sorry

    4.jpg


    Sometimes I'll check new project and the error below rises.

    6.jpg

    I am at a loss, what do I do?  How can I solve this problem.  Help, please.

    And thank you in advance for your help.

    The black lines are caused by being slightly different FRO HD widescreen SD widescreen. On the export of first form, you must set the checkbox on the scale to fill, this should lose the black boarder.

    I did a number of DL disks and I used an unusual method. It can help.

    Make a dvd folder from still, set the size as "custom" 8.54 GB

    One side

    Without rupture of the layer , you need to get so that the automatic or manual are not high on at all, it may take some reselection to do.

    This should produce a record dvd without any layer break tag generated yet.

    Keep this in ImgBurn and make a dvd image. At this point ImgBurn will ask you for the layer break position and will allow you to get an overview of the breakdown. Then burn from this image.

    Here is a link on how to get ImgBurn without receiving a lot of Add-ons:

    ImgBurn and modules of Bloatware

  • My Windows mail keep blocking saying an error has occurred and it will reopen its doors again. It does this all the time. Can anyone help?

    A week ago when I go to the various emails in my Inbox, my mail will close and then reopen again.  It just says: an error has occurred and it starts up.  If I do not jump in my email box, it doesn't seem to happen as well but if I want to keep something an email, and then go to another, he stops.

    Try to compact and repair the database.
     
     
     
    If that does not do it, delete the account, restart and it add.
  • Can't install/uninstall Microsoft mouse and keyboard Center!

    Hi, I got problem with the Microsoft Mouse and keyboard Centre because he doesn't identify my touch mouse correctly (classified as a HID-compliant device and not by its name as my Sidewinder X 4 keyboard). I uninstalled from Add/Remove Programs, and I also uninstalled the drivers for my mouse AND my keyboard (because it showed a double receiver device in device manager). I restarted my computer, but when I tried to install the drivers again in the process of installing mouse and keyboard I got an error message telling me that it was already installed. I uninstalled it again (the "ghost" of it is still listed in Add/Remove Programs) and restarted. When I tried to reinstall, I got the message again who told me that it was already installed. This is when strange things began to happen. The program was once again listed in Add/Remove Programs (this time with its icon and not only a "ghost"). I tried uninstalling and received a message telling me that the uninstall process could not be met because some the original installation files have been corrupted or missing. But now, the program has been listed in the Windows Start menu and when I double click it it started an installation process ceased to immediately resume a message that mkc.msi was missing from a temporary file to My Documents, and he could not proceed, so now I can't install or uninstall the cursed thing. I tried to restore my computer but it doesn't solve all problems. I suspect that some registry entries are not deleted properly when the first uninstall process. I don't want to mess with the registry by myself, at least not until I know what registry entries are created by and in connection with the program. Any help would be appreciated.

    Thanks in advance

    Hello spmisik,

    Thank you for the question!

    I'm sorry to know that have problems you with Microsoft Center of mouse and keyboard. As I understand well you can't install/uninstall Microsoft Mouse and keyboard Center.

    I need to ask you some questions to help you best.

    1. the problem persists with a particular application?

    2. were there any changes (hardware or software) to the computer before the show?

    Run the fixit and check.

    Solve problems with programs that cannot be installed or uninstalled

    Answer to us if you are having problems with Microsoft Mouse and keyboard Center or any other issue of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • Frozen, paved touchscreen and keyboard on HP Pavilion dv6-3225dx Entertainment Notebook

    Extremely frustrated I looked and tried to find a solution without success. When the laptop starts up, it gets to the login screen, I wouldn't be able to do anything at this time there but I can connect because I a reader of fingerprints, there, I'm 100% dead in the water. The only way to stop is to hold down the power button. When the computer is starting up, I function touchpad/keyboard, I can escape the boot options, BIOS, repair, etc., and have normal features while there, but not in safe mode. I ran SFC with orders several times, chkdsk with orders several times, nothing changes. SFC said he found problems, but wasn't able to fix all of them and the last chkdsk finds nothing wrong.

    Here are the events leading to:

    * had errors of disk with bad sectors in the old drive hard (could not repair)

    * clone old hard drive to a hard drive nine (there were errors but the new hard drive booted and worked for the most part correctly)

    in trying to try to repair the installation files missing for applications and other small issues, I ran troubleshooting, updates, chkdsk, sfc, etc removed various applications and added some, nothing worked. I installed Revo uninstaller to remove Kaspersky Internet Security because it is the MOST tenacious application to remove I've ever known. The reason I remember it is because I went through my computer to pick up the remaining files even after Revo because Kaspersky was always after the re-install and uninstall again. There are some files in System 32, who had kaspersky attached to its description. I stopped to run and deleted. They were close kb files and after searching for files to remove, I myself remember at the end of the post it says that it would not remove a certain file beacause you wouldn't keyboard functionality. I made sure that I don't have, but I can't help thinking now that of the 6 files, I deleted (some of them core) can I have deleted the files of mouse and keyboard by mistake.

    * The last time I had a functional touchpad/keyboard under Windows, I ran sfc/scannow damaged = d:-/offwindir = d:\windows started at the command prompt. I got the same message that it found errors but did not set all. So I ran chkdsk /f /r from the command prompt start. When I got back to my computer after a few hours, I restarted and no longer had a touchpad or keyboard.

    I'm in the arms and extremely frustratd because I believe that I tried absolutely everything to make them work again. I hope that the only option I have left should format and clean install. I did not have a full upward and can not get a fully executed at this stage.

    Help, please! Thanks in advance for any suggestions and help that you may be able to provide, it is much appreciated!

    The following link leads to the support page of my laptop.

    http://h10025.www1.HP.com/ewfrf/wc/product?product=5051461&LC=en&cc=us&DLC=en&lang=en&tmp_track_link...

    At this point, you need to perform a system recovery to return to the factory-installed state. SFC is not able to solve a problem of file system indicates a deeper problem that could work only a new installation. The only other option would be if you had a full Windows disk for your system to perform a repair install, but the OEM computers do not come with a disc of the operating system.

    Before continuing, let's check some things because I am sure you want to keep as much data as possible.

    You still have the cloned disk image? It sounds like the keyboard and the touchpad worked after the image has been loaded on the new hard drive. Is this correct?

    Something has been added since the image has been restored on the new hard drive? (photos, music, personal files, etc.).
    Part of the process will be to restore the image of hard drive to external copy of all the files you want to keep. As it is, a clean install will erase everything and a defective hard disk image would give the possibility to save anything in the image on an external drive or a drive.

    What is the new hard disk? As the brand, model, size, etc.

    You have the recovery disks for your system? This could have been done when you got the system or ordered from HP. either all should work.

    Another option to backup your files may be to use a live CD of Linux that has been done using another computer. Are you comfortable with Linux? This method is certainly not for everyone and I am not able to provide step by step instructions, but it's another option to save files.

  • How to remove Microsoft Mouse and keyboard Center?

    Hello, I look at a log of the events, and I noticed that there was some sort of error with the keyboard. Recommended action was to remove the driver and reinstall. So that's what I did. I have a Microsoft Comfort Curve keyboard 2000. Once I deleted the driver, then I tried to reinstall the driver which is bundled in a package called Microsoft Mouse and keyboard Center. After downloading and extracting, invites a mistake: "this version of the software is already installed on this system. To re - install this software, you must remove it all first, and then rerun Setup from the installation media. For more information about removing a program, see Windows Help. "So, naturally, the first thing I did was look for an uninstall. Hmm, nothing to add or remove programs, there is nothing in the folder of the Start Menu. So the only other thing I could think to do was to delete the files in the C:\ directory, I did. But still, after trying to reinstall this driver, I get this same error. Will you please tell me how to remove this software from my computer, so I can reinstall it, so that I can use the good driver for my keyboard instead of ' HID Keyboard Device. Thank you.

    Hi, I thought about it. Or, at least, I understood how to uninstall. It turns out that Microsoft Mouse and keyboard Center is in Add or remove programs, you just need to search to find it. And I uninstalled. So, I'll just reinstall and go from there.

Maybe you are looking for