loadmovie corrupting the loaded swf

loadmovie corrupting the loaded swf

Post by flash_noob » Thu, 27 Apr 2006 21:14:55


Hi,
I am running Flash MX and I made a preloader with a loadmovie. The problem is
that the elements of the preloader remain in the loaded swf even though I did a
"delete.this on enter frame" thingy
Can anyone tell me why?
Here my code for info:


this.createEmptyMovieClip("conteneur",1);
this.onEnterFrame=function(){
charge=conteneur.getBytesLoaded();
total=conteneur.getBytesTotal();
pourcent=charge/total*100;
trace(pourcent);
pourcent=Math.round(charge/total*100);
progbar.gotoAndStop(pourcent);
display.text=pourcent;
if(pourcent==100) delete this.onEnterFrame;
}
conteneur.loadMovie("sanspreloader.swf");
 
 
 

loadmovie corrupting the loaded swf

Post by flash_noob » Thu, 27 Apr 2006 21:51:20

Could the fact I have 4 layers in my preloader/loadmovie have anything to do
with the problem? (1st layer I have a black background, 2nd I have a the
progress bar movie clip, 3rd a dynamic text field, and 4th the actions)
Should I put everything on the 1st layer?

 
 
 

loadmovie corrupting the loaded swf

Post by flash_noob » Fri, 28 Apr 2006 00:44:26

 
 
 

loadmovie corrupting the loaded swf

Post by flash_noob » Fri, 28 Apr 2006 10:10:58

help please