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

  • SEARCH
  • Home
  • 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'm looking for some assistance I have researched and read posts that pertain
I have a problem with some excel code that I am having trouble getting
okay....i'm sending some variables over forms...i tried with borh session and cookie, i'm getting
Okay I have updated my code quite a bit. I am getting a new
Okay, this is probably a very basic question; but, I'm just getting back in
Okay, next PHPExcel question. I have an HTML form that users fill out and
Okay this question is very simple: I have a facebook page, and a website.
Okay, I've the strangest problem that I've just started to experience in a grails
Okay, so I have a little assignment to do which needs some array of
I have a WCF service with a security class for getting some of the

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.