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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:22:50+00:00 2026-05-13T20:22:50+00:00

I have a flash element in a page that load a chart based on

  • 0

I have a flash element in a page that load a chart based on some complex queries that can take up to a minute to load. I call the query with this code :

var chartData:URLLoader = new URLLoader();
chartData.addEventListener(Event.COMPLETE, onLoaded);
chartData.addEventListener("httpStatus", onHttpStatus);
chartData.load(new URLRequest(chartURL));

I listen for the complete event or any server error event.

My problem is when a user want to go on another page while the flash is loading the URL : the browser is waiting for the url to be fully loaded before accepting the request of the user. As I say this chart can take up to a minute to load and it’s kind of annoying for my users to wait if they want to change page.

Here is my question : Is there is an event to listen any event from the browser (click on another link, click on the “back” button of the browser…) ? If I’m wrong in my way to do this don’t hesitate to tell me, I’m not really used to program in flash.

Thank you.

  • 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-13T20:22:50+00:00Added an answer on May 13, 2026 at 8:22 pm

    I think I understand what you’re describing. Some things you might want to try out:

    File Upload HTTP Server

    If the files are very large, you might want to load them on another HTTP server, like Nginx. Check out the Nginx Upload Module (I’m sure Apache has the same thing). That basically allows you to upload files without making the user feel the impact at all.

    The only problem with this is that it’s pretty complex, and you won’t know when the file is done uploading. But they do have examples of how to show Upload Progress Bars with Nginx using Javascript, so you could do something like that, and on completion (in javascript), send a message to flash that invokes something like your Event.COMPLETE handler.

    Browser Events

    There are browser events to intercept with Javascript to prevent your user from leaving the page until the download has completed (not recommended as it may annoy the user):

    • onexit
    • onclose
    • onblur (when they click somewhere else)

    Check out this example: Javascript onclose: Warn the User.

    Hope that helps,
    Lance

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

Sidebar

Ask A Question

Stats

  • Questions 353k
  • Answers 353k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Depending upon your needs, you may want to throw in… May 14, 2026 at 7:40 am
  • Editorial Team
    Editorial Team added an answer It applies the "better conversion" rules (7.4.3.3 of the C#… May 14, 2026 at 7:40 am
  • Editorial Team
    Editorial Team added an answer You need to write the FilterManager class yourself (FilterManager.m and… May 14, 2026 at 7:40 am

Related Questions

Esteemed Overflow-ers of the Stack, So I've recently been trying to fully wrap my
I am trying to currently embed a media player into certain web content and
I have a flash object that I am trying to show and hide along
I have div containing a list of flash objects. The list is long so
I'm using Cufon to replace the font of selected heading elements on a site

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.