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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:25:28+00:00 2026-05-23T00:25:28+00:00

Since Flash doesn’t support multithread how do you that in actionscript 3 ?

  • 0

Since Flash doesn’t support multithread how do you that in actionscript 3 ?

  • 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-23T00:25:29+00:00Added an answer on May 23, 2026 at 12:25 am

    The short answer is – by adding an event listener to do it asynchronously.

    The long answer is that it’s quite simple – if you’ve done it once, you’ve done it a million times:

    var site_loader:Loader;
    var your_text_field:TextField;
    
    init();
    start_load();
    
    function init():void
    {
        site_loader = new Loader();
        this.addChild(site_loader);
    
        your_text_field = new TextField();
        this.addChild(your_text_field);
    }
    
    function start_load():void
    {
        site_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, update_progress_text);
        site_loader.addEventListener(Event.COMPLETE, start_site);
        site_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, load_error);
    
        var url_path:String = "path/to/content.swf";
        var url_request:URLRequest = new URLRequest(url_path);  
    
        site_loader.load(url_request);
    }
    
    function update_progress_text(event:ProgressEvent):void
    {
        var site_loader_progress:int = 100 * event.bytesLoaded / event.bytesTotal;
        your_text_field.text = site_loader_progress + " %";
    }
    
    function start_site(event:Event):void
    {
        site_loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, update_progress_text);
        site_loader.removeEventListener(Event.COMPLETE, start_site);
        site_loader.removeEventListener(IOErrorEvent.IO_ERROR, load_error);
    }
    

    Basically the ActionScript Virtual Machine runs in a ‘Dispatch Events, Process Events, Render Graphics’ loop; each frame, events are given a timeslice, and each event is ‘essentially’ run as a thread (would be) in a uniprocessor system.

    While it’s true that ActionScript isn’t multi-threaded, it does rely on a very sexy event-driven architecture that in many cases is a better alternative to threads (check out this paper here: http://www.stanford.edu/class/cs240/readings/threads-bad-usenix96.pdf).

    That being said, hopefully future versions of the AVM will have explicit support for multiple threads, if only to better advantage near-ubiquitous multi-processor systems.

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

Sidebar

Related Questions

Since iphone doesn't support flash at all. Is it Darwin streaming server ?
Since Flash doesn't support thread, how does it manage to deal with multiple animations
Since there is apparently no Flash control that can accept bitmap pastes , I
I have a Flash-file with some ActionScript code that loads an RSS-feed and animates
Since Flash 10 was introduced, many of the popular 'copy to clipboard' scripts out
Since CS3 doesn't have a web service component, as previous versions had, is there
since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird
Since SilverLight doesn't natively supports the use of microphone, is there a workaround I
I have a flash clip that moves a movieclip when the mouse is clicked
I am simply instantiating a UITextField and noticing that the text doesn't center vertically.

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.