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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:39:20+00:00 2026-05-23T20:39:20+00:00

When setting the .location property of an HTML control, it is possible to set

  • 0

When setting the .location property of an HTML control, it is possible to set it to an invalid URL with no error. How can I determine if the change in location resulted in the loading of some HTML, or if the URL is 404?

       <mx:HTML width="100%"
                height="100%"
                complete="Complete(event);"
                location="http://qqq.xxx35627396.zzz"
                id="Ghost"/>

No error is produced from the phony location shown above.

How can I detect the IOError event on an HTML control?

Thanks In Advance.

  • 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-05-23T20:39:21+00:00Added an answer on May 23, 2026 at 8:39 pm

    Now that I understand the question better, you’re going to want to take a look at the HTMLLoader object inside the html control, probably more specifically, the loaderInfo property. I know the compiler thinks it isn’t there, but it is and it’s accessible.

    You’re going to want to attach some events to this. Here are the events dispatched by loaderInfo:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/LoaderInfo.html

    This includes

    flash.events.HTTPStatusEvent.HTTP_STATUS
    flash.events.IOErrorEvent.IO_ERROR
    

    as well as

    flash.events.Event.OPEN
    flash.events.ProgressEvent.PROGRESS
    

    Now, that said, the HTMLLoader is part of the player so you don’t have access to inspect what is happening in there or easily sub class it. So, you might run into the following issues that you’ll need to work through:

    1. When to attach the listeners. It looks like there is only one html loader control ever created, so at least you only need to do it once (as opposed to it creating a new one to attach events to when loc changes etc)

    2. You may not get the http_status or io_error events on invalid either. In which case, you should sniff the open and progress, if they don’t update after X amount of time, you notify the user that the address is invalid or there is a network error.

    Let me know how it goes 🙂

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

Sidebar

Related Questions

When would you set location to a URL string versus setting location.href ? location
Is there any way to follow a URL in JavaScript without setting the document.location.href
When I set the IsBalloon property of a ToolTip control, and then use the
In Crystal Reports 2008, there's a Graphic Location image property where it can be
Possible Duplicate: How can i avoid Location service in AlAssetLibrary? Can i retrieve files
I'm having issues setting the size of a popup and disabling the location bar
According to the MSDN documentation for the WindowStartupLocation Property : Setting CenterScreen causes a
I'm setting up a form within an info info window for crowd-sourcing location data.
In Razor, when loading a partial view, it is possible to just specify the
For a build-job on a build-server, I want to set the .m2 location to

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.