Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 221191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:00:37+00:00 2026-05-11T19:00:37+00:00

Okay getting some weirdness. I have a simple URLLoader in AS3 that loads an

  • 0

Okay getting some weirdness. I have a simple URLLoader in AS3 that loads an external XML document. It’s loading just fine, I get a correct 302 Not Modified response in Charles, however flash tells me:

“URL Not Found”

Here is the relevant code:

        //=============================================================================================
    public function openXML(name:String):void { //decides what XML data feed and opens it
    //=============================================================================================


                var xmlLoader:URLLoader = new URLLoader();
        var xmlData:XML = new XML();

        //add event listener to URLLoader to call closeXML upon completion
        xmlLoader.addEventListener(Event.COMPLETE, closeXML);

        xmlLoader.load(new URLRequest("http://www.gessnerengineering.com/projects"));

        //=========================================================
        function closeXML(e:Event):void {
        //=========================================================
            xmlData = new XML(xmlLoader.data);
            xmlLoader.removeEventListener(Event.COMPLETE, closeXML);

            drawPage(name, xmlData);
        }

    }

The problem line according to the debugger is at:

    xmlLoader.load(new URLRequest("http://www.gessnerengineering.com/projects"));

I’ve verified that I can browse to the URL via my browser and cURL, and Charles says that my SWF can and IS successfully accessing it too. However I still get this URL Not Found error. According to the Flash Actionscript 3 documentation, this is the absolute correct way to use URLLoader to load external data including XML.

Updated code with pastie.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:00:37+00:00Added an answer on May 11, 2026 at 7:00 pm

    I’m finding your code’s structure a little odd – why do you have functions inside of a function?

    I rewrote your code like this and it works perfectly fine (i just ran it on the timeline in flash cause i’m too lazy to set up a new project):

    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var request:URLRequest = new URLRequest("http://www.gessnerengineering.com/projects");
    request.method = URLRequestMethod.GET;
    
    
    
    //=============================================================================================
        function openXML(name:String):void { //decides what XML data feed and opens it
        //=============================================================================================
    
    
    
        //add event listener to URLLoader to call closeXML upon completion
        xmlLoader.addEventListener(Event.COMPLETE, closeXML);
        xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
        xmlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);
        xmlLoader.load(new URLRequest("http://www.gessnerengineering.com/projects"));
    
    }
    function onIOError(e:IOErrorEvent):void {  
        trace("Error loading URL.");  
    } 
    
    function securityError(e:SecurityErrorEvent):void {
        trace("security error");
    }
    
    
    function closeXML(e:Event):void {
        trace('xmlLoader.data ' + xmlLoader.data);
        xmlData = new XML(xmlLoader.data);
        xmlLoader.removeEventListener(Event.COMPLETE, closeXML);
    }
    
    
    
    openXML('ljkl');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I know I have to be doing something wrong here because the performance
If I have an inline stylesheet, can and I want - for some strange
Okay I'm using jQuery and currently getting max value of scrollbar doing this: var
Okay, so I am in the process of designing a website which has a
I'm very new to Drupal and was getting a bit of mixed information about
I've come to the point where I need to store some additional data about
I've created a simple PHP test page which connects to a MySQL database, selects
I have been struggling to get passenger to run my Rails/Rack apps. Steps I
I'm writing a networked game in C++ using Winsocks 2.2, using Visual Studio 2010,
Given a file of text, where the character I want to match are delimited

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.