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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:47:29+00:00 2026-05-23T09:47:29+00:00

I have an FLA file with two frames. On the first frame I have

  • 0

I have an FLA file with two frames. On the first frame I have nothing but a textfield and some code to do the preloading. After it is done preloading it does gotoAndStop(2)

On frame 1 I have:

stop();
stage.scaleMode = StageScaleMode.SHOW_ALL;
//Import the required assets
import flash.display.*;
//Stop the playhead while loading occurs
this.stop();

//Create a listener to call the loading function as the movie loads;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
this.loaderInfo.addEventListener(Event.COMPLETE, PL_FINISH);

function PL_LOADING(event:ProgressEvent):void
{
    var pcent:Number = event.bytesLoaded / event.bytesTotal * 100;
    //Display the % loaded in textfield
    txt.text = int(pcent) + "%";
    //If the movie is fully loaded, kick to the next frame on the main timeline
}
function PL_FINISH(event:Event):void
{
    removeChild(txt);
    gotoAndStop(2);
}

On frame 2 I have nothing except:

var game:Game = new Game();
addChild(game);

In my publisher settings I have export to frame 2.

My problem is that the preloader won’t display until 100%. Does anyone know why?

P.S. For testing I put a large image file on the stage in frame 2 and the result is the same.

  • 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-23T09:47:29+00:00Added an answer on May 23, 2026 at 9:47 am

    This normally happens if you haven’t deselected “Export in frame 1” in each of the library symbols that you are exporting for ActionScript.

    enter image description here

    You’ll need to make sure that you create reference to these objects (so that ActionScript can access them) by placing them onto the stage in frame 2 (out of sight).

    What’s happening is that all of the symbols are being loaded before the preloader itself has loaded.

    If this isn’t the issue, then please provide some code so I can better assess your issue.

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

Sidebar

Related Questions

I have two flash files (say screenOne.fla and gameA.fla). After importing the main symbol
I have two as3 projects. Project A has 2 files ( fla with 1
I have an .fla file with 1 image in the library and 1 .as
I have a .fla file created by our designer and he has created a
I have a main .fla file that I am using to load a sequence
I have decompiled an swf file in to .fla file by using a registered
Have one. Fla (Flash) file that uses ActionScript 1.0. Need to have it in
i have a input tag which is non editable, but some times i need
I am working in Flash CS4 with AS3. I have a TextPage.fla file that
I have an AS3 preloading movie loading in a larger file which uses SoundMixer

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.