Classes and linked MovieClips are exported on Frame 1 by default. Those
items are probably the bulk of your SWF. You can specify the export
frame for classes in the publish settings for ActionScript. For
MovieClips, I usually have all design in a shared library, which I place
on a frame > 1.
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sumeet
Basak
Sent: Monday, May 15, 2006 11:03 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Showing Preloader for the same SWF

Got a problem in showing a preloader of a file which is being loaded.

This file is embedded in the html file itself, so the preloader appears
for a few seconds before the whole file loads.

Another issue that I face in preloading files which has multiple scenes.
It seems that every scene is treated as separate movies and not get
loaded in a single go.

This is my code that tracks the loading.

this.onEnterFrame = function() {

            if (checkLoading == true) {

                        if (_root.getBytesLoaded()>4) {

                                    if (_root.getBytesLoaded() ==
_root.getBytesTotal()) {

                                                play();

                                    }else{

                                                var per =
Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100);

 
mainPreloader_mc.main_preloaderText.text = per+"%";

                                                }

                        }

            }

};

 

Am I missing anything?

Do let me know

____________________________________
Thanks
Sumeet Basak
CTO
Renaissance Legal & Learning Systems Pvt. Ltd.
Cell: + 91.9223214301
web:  <http://www.renaissancesystem.com/> www.renaissancesystem.com;
<http://www.conveyancinghub.com/>
<http://www.conveyancinghub.comemail/>
www.conveyancinghub.com
email:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]  

Renaissance: The Revival of Learning & Culture; Syn: Rebirth
<mailto:[EMAIL PROTECTED]> Contact us for all your Legal, Web
and eLearning requirements

 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to