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 9248367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:55:49+00:00 2026-06-18T09:55:49+00:00

I do not need any debugging with my code, i’m looking more for a

  • 0

I do not need any debugging with my code, i’m looking more for a method.

Here’s my issue. I’m developing a company dashboard that will be loading on multiple large screen televisions company wide. Each Screen will load my flash application to display a wide range of information. This brings up my issue… XML.

Right now i run my application locally while I’m developing. Everything works great, and even when I’ve tested on a single TV it runs fine. However prior to developing this application i made another that was a “band aid fix” for what they had prior to my employment. That application works well but probably once a week it fails to load and all the content goes blank. After 1 day of blank info it reloads and continues working.

In my new app i’m trying to plan around this issue i’m already seeing. What i would like to do is try loading the xml, if it fails to try the same function over again 3 times. If it fails 3 times, then it should be broken. 🙂

To me that sounds like a try/catch statement, but i can’t seem to get it to work the way i want. I feel as if this is something i’m thinking way too much on it.

function loadXML ()
    var i:Number = 0;
    do {
        try{
            XMLLoader.load(new URLRequest("myXMLURL"));
        } catch (error:Error) {
            i++
          }
        }
    while(i < 3)
}

Any Feedback or any other methods of making sure the xml will not fail would be appreciated. Thanks

  • 1 1 Answer
  • 0 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-06-18T09:55:50+00:00Added an answer on June 18, 2026 at 9:55 am

    Rather than a loop like that, you should use the inbuilt events that are dispatched in these situations like IOErrorEvent.

    If you attach a listener to the URLLoader loading the XML, you’ll be able to try again in the IOErrorEvent handler:

    function loadXML():void
    {
        var ldr:URLLoader = new URLLoader();
    
        ldr.addEventListener(IOErrorEvent.IO_ERROR, error);
        ldr.load( new URLRequest("document.xml") );
    }
    
    
    function error(e:IOErrorEvent):void
    {
        loadXML();
    }
    

    Here is a list of other Events that URLLoader dispatches in similar situations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Other than Active Sync not working, are there any other limitations that I need
While debugging Java code that uses reflection in Eclipse, some times I need to
are there any alternative to transactionScope which does not need to enable DTC?? In
I need to identify if any checkbox in a CheckBoxList is not checked (
I need a fastest way to find any point inside triangle(not edges) in 2D.
For debugging purposes, I need to follow the execution of some piece of code,
I am debugging code someone else wrote that calls a lot of stored procedures
I have some code here that works as expected when I install it /
Is there any web-site where I could post my java-code (not very long, around
I'm not looking for specific code, rather, I'm looking for information and guidance. I

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.