Actionscript compiler finds an error but doesn't say so!

Hi! I just spent about an hour very frustrated, because
suddenly Flash was ignoring 100% of my actionscript. At first I
thought I was having a bug like
these
people, but I soon realised it would still show compiler errors
if iI introduced any typos into my script...
Long story short, I discovered my code would still compile if
I commented out some of my actionscript, and I tracked it down to a
single line: I had accidentally written
var endPt:Point = new Point(curX+=xOff,curY+=yOff);
A silly mistake, I simply wasn't paying attention..
the problem is, neither was the compiler?? I received NO
Compiler Error messages, Output window messages, absolutely no
feedback from flash at all, just a complete absence of ActionScript
in my SWF. It took me a while to realise it was an "invisible"
compiler error that was giving me an SWF without actionscript in
it. The debugger obviously wouldn't help me either since there was
no AS to connect to.
Why was the compiler unable to tell me what line it found a
problem on? Why would it not even tell me it had found a problem,
just silently running my SWF instead?

Unfortunately, I have to admit, you're right, I can't get it
to happen in a fresh file either. But in my old file, commenting
out that line made it work fine, and leaving that line uncommented
would mean the debugger would tell me "You cannot debug this SWF
because it does not contain ActionScript."
So if the line isn't an error, why was it causing the
compiler to abandon all actionscript in the file..?

Similar Messages

  • My iPad displays on find my iPhone but doesn't locate

    My iPad displays on find my iPhone but doesn't locate

    Welcome to the Apple Community.
        1.    First check that all your settings are correct, that calendar syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
        2.    Make sure the calendars you are using are in your 'iCloud' account and not an 'On My Mac', 'On My Phone' or other non iCloud account (you can do this by clicking/tapping the calendar button in the top left corner of the application ), non iCloud calendars will not sync.
        3.    If you are sure that everything is set up correctly and your calendars are in the iCloud account, you might try unchecking calendar syncing in the iCloud settings, restarting your device and then re-enabling calendar syncing settings.

  • How do I deactivate Illustrator CS3? It tells me to be sure to deactive before uninstalling, but doesn't say how...

    How do I deactivate Illustrator CS3? It tells me to be sure to deactive before uninstalling, but doesn't say how...

    Widge,
    You may ask here:
    Serial number and activation support

  • HT1430 I have been getting emails but recently I switch on and just find blank screen but the app says I am getting mail this is now happened to me twice any ideas?

    I have been getting emails but recently I switch on and just find blank screen but the app says I am getting mail this is now happened to me twice any ideas?

    Quit mail like this.
    Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it wiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal. Then restart the app and see if it works normally.

  • No Compiling Error but doesn't work NEW

    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.applet.*;
    public class javacw extends Applet implements KeyListener, Runnable
         Area pandaArea;
         Graphics2D g2d;
         // Providing coordinate control for the Panda
         int pandax=20, panday=50;
         // Animation condition. True = animate, False = static.
         boolean pandabool=false, laidOut=false;
         boolean left;
         boolean right;
         boolean up;
         boolean down;
    Thread animThread;
    Dimension offDimension;          // Defines an offscreen Dimension
    Image offImage;                    // Defines an offscreen Image
    Graphics offGraphics;          // Defines an offscreen Graphics
         Image panda;                    // Defines an Image object for panda
         public void init()
              // Set the layout of the applet to null
              setLayout(null);
              panda = getImage(getCodeBase(), "panda.gif");
              pandax=0;
              panday=0;
              addKeyListener(this);
              public void Move ()
                   if (left) {
                        pandax = pandax - 10;
                   if (right) {
                        pandax = pandax + 10;
                   if (up){
                        panday = panday + 10;
                   if (down){
                        panday = panday - 10;
              public void keyTyped(KeyEvent event){}
              public void keyPressed(KeyEvent event)
                   if (event.getKeyCode() == KeyEvent.VK_LEFT) left = true;
                   if (event.getKeyCode() == KeyEvent.VK_RIGHT) right = true;
                   if (event.getKeyCode() == KeyEvent.VK_DOWN) down = true;
                   if (event.getKeyCode() == KeyEvent.VK_UP) up = true;
                   repaint();
              public void keyReleased(KeyEvent e)
                   if (e.getKeyCode() == KeyEvent.VK_LEFT) left = false;
                   if (e.getKeyCode() == KeyEvent.VK_RIGHT) right = false;
                   if (e.getKeyCode() == KeyEvent.VK_UP) up = false;
                   if (e.getKeyCode() == KeyEvent.VK_DOWN) down = false;
                   repaint();
    public void start()
              // Make sure the thread hasn already been created
         if (animThread == null) {
         animThread = new Thread(this, "anim");
         animThread.start();
    public void run() {
              // Create a current thread.
              Thread myThread = Thread.currentThread();
         // As long as the thread is created, keep redrawing the
         // canvas and then pausing for 10 miliseconds.
         while (animThread == myThread) {
                   repaint();
         try {
              Thread.sleep(10);
         } catch (InterruptedException e){}
    public void paint(Graphics g)
              if (offImage != null) {
              g2.drawImage(offImage, 0, 0, null);
         // Overide the update() method
    public void update(Graphics g) {
              Dimension d = getSize();
              // Create the offscreen graphics context
              if ((offGraphics == null)
              || (d.width != offDimension.width)
              || (d.height != offDimension.height)) {
              offDimension = d;
              offImage = createImage(d.width, d.height);
              offGraphics = offImage.getGraphics();
              // Erase the previous image
              offGraphics.setColor(getBackground());
              offGraphics.fillRect(0, 0, d.width, d.height);
              offGraphics.setColor(Color.black);
              paintFrame(offGraphics);               // Paint the frame into the image
              g.drawImage(offImage, 0, 0, null);     // Paint the image onto the screen
    public void paintFrame(Graphics g) {
              Graphics2D g2d = (Graphics2D)g;
              g2d.drawImage(panda, pandax, panday, this);
              if (pandabool) {               // If pandabool==true, animate the panda =)
                   if (pandax>400) pandax=0;
                   if(pandax<0)pandax=400;
    public void stop()
         animThread = null;
              offImage = null;
              offGraphics = null;
    public void destroy(){}
    hi everyone, i'm new to java and i'm trying to wirte a keyListener to makes my image move. btw there are no compiling errors but the key is not working. hope that someone can help me. appreciate

    You have a Move() function that you're not calling! Not much use unless you place a call to it in your run() function, eh?
    Next time you post code, use the  tags.

  • 7.0.4 keeps giving me an error when I update but doesn't says what's wrong

    I keep getting an error trying to update my software but it doesn't say y

    Got the same thing. Was in the middle of the download (11 mins remaining) and a blasted text message came through. Answered it, like a moron, and when I went back to download it gave me the error.. Very annoying. Anyway, perseverence paid off as after 10th or something re-attempt, it began again. (32 mins remaining). Like the guy above says. Severs will be going mental at the moment so stick with it.

  • "Accept" button says I need to purchase app, but doesn't say how

    I purchased a new MacBook Pro in January. I setup accounts for myself (admin), son, and daughter (both Mac OS X users and Apple IDs). Yesterday I noticed from my Apple ID that the App Store said iMovie and iPhoto needed to be updated. I tried updating them, but it said they were purchased from another Apple ID, and I had to upgrade using that Apple ID. I logged into my son's Apple ID, ran App Store, and sure enough he had "Installed" them 4 weeks ago, along with GarageBand. I'm guessing this install was actually an upgrade since they came pre-installed on the machine. However, I'm not sure how this happened. He's downloaded other games, but doesn't recall ever updating anything.
    In any case at this point what I want to do is disassociate these apps from my son's Apple ID so I can control their upgrade from my Apple ID. I tried deleting them from the LaunchPad. However, for GarageBand this left it in a state where I need to purchase it for $14.99. For iMovie and iPhoto, when I search for them for purchase, they are displayed with an "Accept" button rather than an "Install" button. When I click on "Accept" I get the following message:
    "These apps cannot be accepted by your Apple ID.
    These apps were already assigned to another Apple ID, and they will be available in that Apple ID's Purchases list. If you don't have access to that Apple ID and want to receive future updates, you will need to purchase the applications."
    Problem is I can't find any way to purchase them from my Apple ID. How do I change the "Accept" button to a "Purchase" button?
    BTW, I also tried deleting the apps and restoring from an old Time Zone backup, but still had the same problem. There's some database on the machine that associates these apps with my sons AppleID even though originally the came pre-installed.

    Thanks for the info. Seems kind of messed up though. Why would Apple let any random user of a machine control all future upgrades of critical apps. I guess perhaps my admin password was needed at some point, which my son has. Still, seems this is something you should be able to undo.
    I'm starting to get a clearer pictures of what's going on. These 3 apps are part of iLife 11 and normally cost $14.95 each. They come pre-installed on new machines, but it looks like at some point you need to associate this "purchase" with an Apple ID, and can only associate it with one Apple ID. Thus they are now irrevocably associated with my son's Apple ID.
    However, if I wanted to shell out the money, it seems I should be able to tell this particular mac to forget everthing it knows about the purchase of these apps, and re-purchase them from another Apple ID. Although I doubt I'd do that at this point, if I by a 2nd Mac and properly associated these apps with my Apple ID on this 2nd mac, I should then be able to use this "purchase" to download the apps to the first mac I'm having a problem with. However, currently I can't even see a way to do this. Is there some App Store cache I can trash so App Store no longer knows which apps were installed by which Apple ID?

  • Disconnects but doesn't say so

    Every now and again I'll be disconnected but iChat doesn't say I've been disconnected. The person I'm chatting to will have ... nexct to their name (as though they're typing) but I never receive their message - I try to message them and it appears to go through but it hasn't. I have to quit and restart iChat. Very annoying and it's even more annoying becuase I have to keep on asking them what the last thing they typed was!!!
    Any ideas. Btw I'm connected wirelessly but can still access the internet/email whilst this problem is occuring.

    Hi
    Try this log on to AIM on port 443 rather than port 5190
    Go to IChat > Preferences > Accounts.
    Log out of AIM and then use the Server Settings tab
    Set the port to 443.
    Log back in again.
    Tony

  • I have an iphone 3 and used to be able to get find my phone but now it says I have to upgrade and don't know how to?

    How do I get find my phone on iphone 3  I used to be able to but now it says I have to upgrade

    Select all your songs (ctrl A) then right click - Download..

  • No Compiling Error but doesn't work

    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.applet.*;
    public class javacw extends Applet implements KeyListener, Runnable
         Area pandaArea;
         Graphics2D g2d;
         // Providing coordinate control for the Panda
         int pandax=20, panday=50;
         // Animation condition. True = animate, False = static.
         boolean pandabool=false, laidOut=false;
         boolean left;
         boolean right;
         boolean up;
         boolean down;
    Thread animThread;
    Dimension offDimension;          // Defines an offscreen Dimension
    Image offImage;                    // Defines an offscreen Image
    Graphics offGraphics;          // Defines an offscreen Graphics
         Image panda;                    // Defines an Image object for panda
         public void init() {
              // Set the layout of the applet to null
              setLayout(null);
              panda = getImage(getCodeBase(), "panda.gif");
              public void keyTyped(KeyEvent event){}
              public void keyPressed(KeyEvent event)
                   if (event.getKeyCode() == KeyEvent.VK_LEFT) left = true;
                   if (event.getKeyCode() == KeyEvent.VK_RIGHT) right = true;
                   if (event.getKeyCode() == KeyEvent.VK_DOWN) down = true;
                   if (event.getKeyCode() == KeyEvent.VK_UP) up = true;
                   repaint();
              public void keyReleased(KeyEvent e)
                   if (e.getKeyCode() == KeyEvent.VK_LEFT) left = false;
                   if (e.getKeyCode() == KeyEvent.VK_RIGHT) right = false;
                   if (e.getKeyCode() == KeyEvent.VK_UP) up = false;
                   if (e.getKeyCode() == KeyEvent.VK_DOWN) down = false;
                   repaint();
    public void start()
              // Make sure the thread hasn already been created
         if (animThread == null) {
         animThread = new Thread(this, "anim");
         animThread.start();
    public void run() {
              // Create a current thread.
              Thread myThread = Thread.currentThread();
         // As long as the thread is created, keep redrawing the
         // canvas and then pausing for 10 miliseconds.
         while (animThread == myThread) {
                   repaint();
         try {
              Thread.sleep(10);
         } catch (InterruptedException e){}
    public void paint(Graphics g) {
              if (offImage != null) {
              g.drawImage(offImage, 0, 0, null);
         // Overide the update() method
    public void update(Graphics g) {
              Dimension d = getSize();
              // Create the offscreen graphics context
              if ((offGraphics == null)
              || (d.width != offDimension.width)
              || (d.height != offDimension.height)) {
              offDimension = d;
              offImage = createImage(d.width, d.height);
              offGraphics = offImage.getGraphics();
              // Erase the previous image
              offGraphics.setColor(getBackground());
              offGraphics.fillRect(0, 0, d.width, d.height);
              offGraphics.setColor(Color.black);
              paintFrame(offGraphics);               // Paint the frame into the image
              g.drawImage(offImage, 0, 0, null);     // Paint the image onto the screen
    public void paintFrame(Graphics g) {
              Graphics2D g2d = (Graphics2D)g;
              g2d.drawImage(panda, pandax, panday, this);
              if (pandabool) {               // If pandabool==true, animate the panda =)
                   if (pandax>400) pandax=0;
                   if(pandax<0)pandax=400;
    public void stop()
         animThread = null;
              offImage = null;
              offGraphics = null;
    public void destroy(){}
              public void Move ()
                   if (left) {
                        pandax-=10;
                   if (right) {
                        pandax+=10;
                   if (up){
                        panday-=10;
                   if (down){
                        panday+=10;
    i was trying to add the keylistener to makes my pic move and there are no compiling problem but it doesn't work when i press the key
    thx for everyone

    One problem might be your lack of a setVisible( true ). It would be easier to read if you put code tags around your code.

  • TS3694 Just took my 1st gen iPod out of it's original box, never used before.  Plugged it into my new Mac book Pro and it recognizes that the iPod is in recovery mode but when I click to restore, error 1611 comes up - but that error code doesn't say what

    I had an 8GB 1st gen iPod in it's original box in storage and just took it out to hook it up.  Charged it overnight, plugged it into new Mac Book Pro and it was recognized as being an iPod in recovery but other identifying information was all indicated as "n/a" (so, unknown OS, etc).  Error code 1604 came up so I downloaded iTunes on the Mac Book and it is currently showing version 10.  But now when I try to restore the iPod, error code 1611 comes up and the troubleshooting doesn't tell me what else to try.  The USB connector that came with the iPod was also never used before - brand new also from the box so that should be fine.  I also tried a different USB port on the Mac Book.  Any ideas?

    Error 1611
    This error typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.

  • Finder 10810 Error but no Terminal access

    Hi guys,
    When my iMac boots up OSX loads but I am unable to load any programs - clicking on the dock does nothing. If I then click on the Finder then I get "The application Finder can't be opened - 10810". I am able to then open SOME apps using the Application folder in the Dock to load them, but Finder remains at the front so I am unable to type commands into Terminal, iTunes or anywhere else that it is suggested in other threads I should try and resolve the 10810 error.
    Any suggestions?! I can do literally nothing on the iMac now.
    Help!!!!
    Rich

    I'm having the same problem. I tried booting into "single user" mode (command s, I believe), and got a command line interface, and couldn't figure out anything to do. Is safe mode different? I also booted from the Snow Leopard disk, ran Disk Utility, and the disk was fine (didn't need repair) and I ran the Repair permissions routine also. Then booted up regularly, and same problem. Sometimes I can get into one application before it locks up, not allowing me to open any other apps or files, and hangs if I try to exit the application. Have to hard reboot.
    Any ideas? This is evidently a widespread problem in 10.6.5 and 10.6.6. No mention on the main Apple site or in the press, but all over the forums.

  • ITunes Finds New Podcasts But Doesn't Download Them

    I am subscribed to 14 various podcasts, all have been working fine for ages. Ever since I updated to 8.1, when I refresh my podcasts, iTunes recognizes that there are new episodes to download, but when it starts to download them it instantly stops and the symbol and "Get" appear on the episodes.
    When I use my ipod touch to manually search itunes store and update I can find the episodes fine and download there. When I plug my ipod back into my pc the episodes update to my computer fine.
    This is really annoying me now! It was working fine before!
    If anyone else is having this problem or has fixed it it would be great if you could help!

    I cannot honestly tell you if it should happen but I can tell that it also happened to me after experimenting with the restrictions setting two nights ago.
    In over 30 months of iPad ownership using two different iPads I never tried Restrictions before. I was trying to help someone sort through an issue so I enabled restrictions. After I turned them off, my apps were covering 8 screens on my iPad and all of my folder structure had been destroyed. I restored from a backup and that restored my folder structure.
    Should that happen ... I'm not sure .... Does it happen .... Apparently it does.

  • My IPod will find the network but doesn't accept the password even though it is right.

    I have tried many methods like airplane mode, restart device, restart network setting, restart router and turn on and off. I am getting tiered of it now because my mums I phone and my iPad will all connect but my IPod just refuses to join.
    Any ideas?
    Please help!!!

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iPod connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I am getting a error -1 when I try to restore my iPad 1 to firmware 5.1.1. Is there any method to fix this problem. I have tried several methods on YouTube for various others errors but doesn't seem to work.

    Pls help me to fix this restore error -1

    Hi there,
    Do you have icloud account? You need firstly turn off find my iphone (by go to icloud.com -->sign in --> go to "Find my iphone" and erase your iphone in it). And then you restore your iphone with DFU mode.
    When you erase your Find my iphone and if you can not restore, your iphone has a problem with hardware.
    Some infos can help you.
    Kind regards,

Maybe you are looking for

  • Itunes for ipod on another computer

    Oh how I hate iTunes! (I don't understand it anyway). I have an older iPod Touch (3rd gen?) that I have synced with a laptop computer. I also want to sync it with my desktop computer (where I've put some songs into iTunes previously). However, when I

  • Using my .mac account on iChat AV (problems)

    Hi, I've been using iChat AV with my .mac account since december, and it was all fine 'til some weeks ago. From the end of may 2006 I have many problems using my .mac account in iChat AV. Sometimes I can connect, but usually I can't connect! And the

  • Missing Text in Acrobat 6.0

    I create large PDF documents from multiple smaller PDF documents for work. When I create a rather large document (over say 150pgs), some text on some pages go missing. I took screen shots to display what I'm talking about. It seems to be random lette

  • Pages and other languages

    How/where can I download the application(s) to correct spelling for languages other than English. I have iWork 09 but only corrects in English. I would also like to know if its possible to type in symbols based on their ASC II number instead of chang

  • Employees who are 21 years of age or over AND work 35 hours or more a week

    Hi, I need to extract the employee details who are 21 years of age or over AND work 35 hours or more a week. Where can i find the weekly working hours?