2 Replies Latest reply on Aug 31, 2009 7:40 PM by Tokerman

    how to preload flash with 8 scenes or more in it.


      Hi there


      I am having a movie with 8 scenes and being in Thailand where the internet is slow I would like it to preload before it opens because now, after it opens a lot off the stuff ain't there yet like buttons and animations that are built into different scenes.


      Can this be done and if so - how?



        • 1. Re: how to preload flash with 8 scenes or more in it.
          Ned Murphy Adobe Community Professional & MVP

          Visit www.gotoandlearn.com and you'll find a preloader tutorial there somewhere.  Here's one that uses AS3: http://www.gotoandlearn.com/play?id=85

          1 person found this helpful
          • 2. Re: how to preload flash with 8 scenes or more in it.
            Tokerman Level 1

            Hi Ned


            Sorry it took such a long time to respond - my computer gave up on me. Memory and harddisk both down the drain - Bummer.


            It was helpfull and in a way it works fine, however, I have a main movie and in there I open the multiple scenes.


            If I use the preloader alone with the scenes it works, but when I want to load the preloader that should open the scenes inside the main movie it doesn't do anything.


            var l:Loader = new Loader();
            l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
            l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
            l.load(new URLRequest("magazine.swf"));


            function loop(e:ProgressEvent):void
                var perc:Number = e.bytesLoaded / e.bytesTotal;
                percent.text = Math.ceil(perc*100).toString();


            function done(e:Event):void
                percent = null;




            In the old situation I use a button goto frame - and on the frame there is actionscript that says:


                loadMovie("magazine.swf", 'placeholder');


            have changed that to


                loadMovie("preloader.swf", 'placeholder');


            Any ideas?