A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Error #2035: URL Not Found. URL DOES EXIST

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    82

    Error #2035: URL Not Found. URL DOES EXIST

    I am getting this error Error #2035: URL Not Found. on random images (maybe 50% of the images being loaded) based off of this code:

    Actionscript Code:
    private function loadExternalTile(imgName:String) {
        trace("BEGIN LOAD: " + imgName);
        // Add tile upon loading completion;
        imageLoader = new Loader();
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,externalTileLoaded);
    imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, IOErrorHandler);
                imageLoader.load(new URLRequest(imgName));
    }
    private function externalTileLoaded(e:Event) {
                tileBaseMC.addChild(e.target.content);
    }
    private function IOErrorHandler(e:IOErrorEvent):void {
                trace("the loader threw an error");
                trace( e );
    }

    Here is what the error handler is tracing
    Actionscript Code:
    [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2035: URL Not Found. URL: file:////Volumes/Macintosh%20HD/Users/me/Documents/Flash/Games/mygame/src/Editor/images/tiles/grass01.png"]

    If I navigate to the URL that apparently doesn't exist, it loads up just fine, so what gives?

    This code is run on a "tile" object when loaded a saved level. Like I said at the beginning, this happens randomly and to about 50% of the tiles being loaded in the level. There are hundreds of these being run at the same time when a level loads. Is that what is breaking it?

  2. #2
    Member
    Join Date
    Jan 2006
    Posts
    82
    Wow, lots of views and no replies.... Some help would be very much appreciated!

  3. #3
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Can you show a url for a file that is not loaded? From the script you show there is no way to tell what the problem is.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    82
    Quote Originally Posted by cancerinform View Post
    Can you show a url for a file that is not loaded? From the script you show there is no way to tell what the problem is.
    The URL is local and works great. I could have a 100x100 grid that loads the same external graphic 10,000 times and after loading about 50% it gets flaky and starts giving the error that the URL isn't found. I'm guessing it is an I/O issue since so many external calls are being made? Anyone else run into this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center