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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:01:21+00:00 2026-06-15T16:01:21+00:00

I have a movie which is embedded in my flash timeline so that I

  • 0

I have a movie which is embedded in my flash timeline so that I can scroll through it frame by frame using a scrollbar class I created. However, because the movie is about 10mb, I need to have some sort of preloader, either in HTML5 or in flash, to display a poster image or something until the movie is loaded. I’ve loaded movie clips dynamically using a preloader, but how do I do this when the movie clip is embedded in the timeline? I tried a $(window).ready function to hide the poster image on window ready, because I thought that this doesn’t fire until all your assets are loaded, but I guess that doesn’t work with flash, so I guess I’m going to have to do it within flash.

  • 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-15T16:01:22+00:00Added an answer on June 15, 2026 at 4:01 pm

    On the main movieclip (on the main timeline) you should add first empty frame (it should be lightweight and load fast). Then you should stop(); the MovieClip. After it is stopped you may continuously check loaderInfo.bytesLoaded/loaderInfo.bytesLoaded properties and display percentage of the loading process.

    This snippet may help (you may place this code into first frame of timeline, or into Main class constructor method):

    //create a text field to show the progress
    var progress_txt:TextField = new TextField();
    //stop the timeline, will play when fully loaded
    stop();
    //position text field on the centre of the stage
    progress_txt.x = stage.stageWidth / 2;
    progress_txt.y = stage.stageHeight / 2;
    addChild(progress_txt);
    
    //add all the necessary listeners
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
    loaderInfo.addEventListener(Event.COMPLETE, onComplete);
    
    
    function onProgress(e:ProgressEvent):void
    {
      //update text field with the current progress
      progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
    }
    
     function onComplete(e:Event):void
    {
      trace("Fully loaded, starting the movie.");
      //removing unnecessary listeners
      loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
      loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
      //go to the second frame. 
      //You can also add nextFrame or just play() 
      //if you have more than one frame to show (full animation)
      gotoAndStop(2);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the challenge: I have a Flash movie which will be embedded in a
I have an embedded Flash movie player. I'm also using Timeout Dialog to set
I have a Flash movie which has a number of actionscript 2 functions which
I have a flash movie that runs fine in FF, Opera, Safari but not
I have a flash movie that dynamically generates urls based on some params. Snip:
I've got a flash movie which imports an external SWF. I have some interaction
I have an html hosted on Amazon which basically has an embedded flash object
I have a Flash Professional CS5 movie which I'm trying to pass a parameter
I have a node type called 'movie' which may contain several subtitle files using
I have an entity Movie which has a unique constraint through doctrine annotation. Based

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.