loading... in flash websites

Posted on 2005-04-22
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

    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

    LVL 18

    Assisted Solution

    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

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

    LVL 18

    Expert Comment

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


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

    730 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now