home *** CD-ROM | disk | FTP | other *** search
- this.onEnterFrame = function()
- {
- var _loc1_ = _parent;
- chargeActuelle = _loc1_.getBytesLoaded();
- chargeTotale = _loc1_.getBytesTotal();
- pourcentage = Math.round(chargeActuelle / chargeTotale * 100);
- chargeStatut.text = pourcentage + " %";
- barre.gotoAndStop(pourcentage);
- if(_loc1_.getBytesLoaded() / _loc1_.getBytesTotal() * 100 != 100)
- {
- trace("Chargement en cours (" + pourcentage + "%)");
- }
- else
- {
- trace("Chargement terminé");
- if(actionFinChargement == "gotoAndStop(imageDebut)")
- {
- _loc1_.gotoAndStop(imageDebut);
- }
- else if(actionFinChargement == "gotoAndPlay(imageDebut)")
- {
- _loc1_.gotoAndPlay(imageDebut);
- }
- else if(actionFinChargement == "nextFrame()")
- {
- _loc1_.nextFrame();
- }
- else
- {
- _loc1_.play();
- }
- delete this.onEnterFrame;
- }
- };
-