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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:43:15+00:00 2026-06-07T11:43:15+00:00

How do you create these loading, please wait splash screens with a loading bar

  • 0

How do you create these “loading, please wait” splash screens with a loading bar and percentage for your swf? Does as3 have some built-in methods or should it be designed from scratch?

I mean, how do you detect that your swf file is being loaded into client’s browser?

Oh and I have all my content stored in one frame only. pure as3 code.

  • 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-07T11:43:18+00:00Added an answer on June 7, 2026 at 11:43 am

    If all of your code is on the timeline, then the easiest way is to make a second swf that is only used for loading your main swf. If your main swf is called main.swf, the code in your loading swf would be something like this:

    //make a loader
    var loader:Loader = new Loader()
    
    //listen for loading progress
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
    
    //listen for when the load is finished
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    
    //load begins...
    loader.load(new URLRequest("main.swf"));
    
    function onProgress(event:ProgressEvent):void
    {
        //calculate how much has been loaded
        var percentageLoader:Number = event.bytesLoaded / e.bytesTotal;
        
        //use your percentage number here to drive a loader bar graphic
    }
    
    function onComplete(event:Event):void
    {
        //remove listeners now that loading is done
        loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
        loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onComplete);
        
        //add loaded swf to the stage
        addChild(loader.content);
    }
    

    As an aside, externalizing your assets opens up new preloading possibilities. Instead of having everything in your main swf, you can have your main swf load external assets, and preload those assets. Since your main swf would then be small, there would be no need to have a second swf just for loading your main swf.

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

Sidebar

Related Questions

Strange situation. If I have these tables: CREATE TABLE t1 (id INT, title VARCHAR(20),
Here is my code: $(document).ready(function(){ //These variables are for loading more posts var create_ptr
Given these tables: create table Orders ( Id INT IDENTITY NOT NULL, primary key
I'm doing these steps: Create new vs2010 C# console application Project menu -> Add
Is there a way to use a loop to create 10 of these, incrementing
I need a light CMS for .NET 3.5/C#/SQL Server with these features: Create/Edit Pages/Subpages
Is there a jQuery project out there, that create on of these Password-strength-meters right
These days when I create a new repository on GitHub on the setup page
These are my steps to create a remote git repository and push to it
These are the steps I am executing: # meteor create helloworld # cd helloworld

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.