Does anyone know why after adding the media component the file size (of the component) shows up in every seperate movie cilp and the preloaders don’t read correctly anymore?
The code for preloader on the seperatly loaded .swfs looks like this
frame1:
[size=1]loadpercent = “0%”;
loadBytes = “0 of “+Math.round((_parent.getBytesTotal()/1024)*1000)/1000+” Kb”;[/size]
Frame2:
[size=1]loadPercent = (Math.floor(_parent.getBytesLoaded()/_parent.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_parent.getBytesLoaded()/1024)*1000)/1000+" Kb of “+Math.round((_parent.getBytesTotal()/1024)*1000)/1000+” Kb total Loaded.");
progressMov.gotoAndStop(int(_parent.getBytesLoaded()/_parent.getBytesTotal()*100));
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
loadPercent = “100%”;
loadBytes = (Math.round((_parent.getBytesLoaded()/1024)*1000)/1000+" Kb of “+Math.round((_parent.getBytesTotal()/1024)*1000)/1000+” Kb total Loaded.");
_parent.gotoAndPlay(“pade”);
stop();[/size]
Frame3: [size=1]gotoAndPlay(2);[/size]
[size=1][/size]
It works great until I add those components to the movie, then it adds like 76k to all the seperate files - even ones that don’t use them.
The preloader then doesn’t read the extra 76k…it just shows up on like 90%