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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:43:38+00:00 2026-05-11T07:43:38+00:00

I find that my Flex application’s UI becomes unresponsive during very long processing loops

  • 0

I find that my Flex application’s UI becomes unresponsive during very long processing loops (tens of seconds). For example, while processing very large XML files and doing something per-element…

Is there an equivalent of ‘ProcessMessages’? That is, a call that would tell Flex to continue responding to UI events, even in the middle of some long loop, so that the UI doesn’t become unresponsive?

I’m aware Flex is single threaded by design. That’s exactly why I’m looking for something like ProcessMessages() – a function that allows single-threaded reentrant applications (like in VB, or single-threaded message loop based C++ applications) to remain responsive during long operations.

Summary of Answers

  1. There’s no built-in function like HandleEvents() or ProcessMessages() in Flex.
  2. Using some sort of callback mechanism to iteratively process chunks of a long computation process, while yielding to the runtime between chunks, thus enabling it to be responsive, is the only way to maintain a responsive UI during long computations.
  3. Ways of accomplishing the above are:
    1. Using the enterFrame event, which is called whenever the Flash ‘movie’ layer below the Flex application refreshes its frame (which is something like 20fps).
    2. Using a timer.
    3. Using UIComponent.callLater() which schedules work to be done ‘later’. (as the docs say: Queues a function to be called later. Before each update of the screen, Flash Player or AIR calls the set of functions that are scheduled for the update.
    4. Using intentionally triggered mouse/keyboard events to create pseudo ‘worker threads’, as in this example.

If there are further suggestions, or if I left out anything, please feel free to edit this (now) wiki piece.

  • 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. 2026-05-11T07:43:39+00:00Added an answer on May 11, 2026 at 7:43 am

    The problem is that Flash is single threaded, i.e. until a part of the code is running, no other processing can be made. You’ll somehow need to break up the processing into smaller chunks and execute these chunks, say, on the enterFrame event.

    Edit: I’m afraid that downvoting this (or Simon’s) answer does not change the fact that this is not doable in AS3. Read this article for more insight on the problem. The article also includes a simple ‘library’ called PseudoThread, which helps in executing long background computations. You still have to break up the problem into smaller pieces yourself, though.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, it's absolutely about the namespace - although it's the… May 12, 2026 at 5:50 pm
  • Editorial Team
    Editorial Team added an answer I've got a similar set up with a table view,… May 12, 2026 at 5:50 pm
  • Editorial Team
    Editorial Team added an answer You ask: Is there anything I should know about using… May 12, 2026 at 5:50 pm

Related Questions

I find that my Flex application's UI becomes unresponsive during very long processing loops
I want to provides an option in my air/flex application. A user can check
I have a Flex application that seems larger than it should be. There is
I have a Flex application that needs to grab reporting data from a JasperReports
I have a Java server application and a Flex client application. For my data

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.