loading... in flash websites

Posted on 2005-04-22
Medium Priority
Last Modified: 2010-04-03
calling all flash expert... i'm a total newbie to flash...

how do i do the "loading..." part of a flash so that it wait for all the frames and scenes to load before it plays? step by step how to achieve this with a simple animation will be very helpful. including how to include the script and what script to include.

please as soon as possible..
thanks for advanced
Question by:amir_ch
LVL 37

Accepted Solution

CyanBlue earned 336 total points
ID: 13848553
Howdy...  :)

This one looks pretty good...  :)

The search term would be 'preloader' if you wants to see more...  I am sure that's one of the top 10 question in Flash...  
LVL 13

Assisted Solution

FLAASHER earned 332 total points
ID: 13848724
LVL 18

Assisted Solution

Billystyx earned 332 total points
ID: 13848778
Here is an example of movieclip loader:

      var myLoader = new MovieClipLoader();
      myListener = new Object();
      myListener.onLoadStart = function(loader) {
            dep = _level0.getNextHighestDepth();
            _level0.attachMovie("loader", "loader", dep);//create your loading animation
//name it 'loader' and set its linkage to export for action script
            _level0.loader._x = 350;//position it
            _level0.loader._y = 234;
            _level0.loader._xscale = 40;//size it
            _level0.loader._yscale = 40;
            _level0.loaderloaded=true;//set a variable to know if it is already loaded
      myListener.onLoadComplete = function() {
            loader.removeMovieClip();//remove it when the loading is done
            _level1._x = 200;
            _level1._y = 75;
            _level1._xscale = 80;
            _level1._yscale = 80;
      myLoader.loadClip("myMovie.swf", 1);//load the swf


Expert Comment

ID: 13887984
With the movieclip loader above, just put a line stop(); in the code, and add a _level0.loader.play() as the last line in the myListener.onLoadComplete function.

LVL 18

Expert Comment

ID: 13966527
Did this help?
If not, please ask another qquestion or tell us what you are having trouble with:)


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question