Ik wil het bestand contact.swf inladen in een mc genaamd 'inhoud'.
Het bestand contact.swf bevat een preloader, echter deze werkt niet. Als de preloader gebruik voor enkel een .swf file en niets inladen werkt het wel, maar dat is dus niet wat ik nodig heb.
Ik gebruik de volgende code's:
Code:
totalBytes = _root.inhoud.getBytesTotal();
loadedBytes = _root.inhoud.getBytesLoaded();
loading = totalBytes-loadedBytes;
ready = int((loadedBytes /totalBytes )*100);
precent = ready add "%";
_root.content.bar.gotoAndStop(ready);
if (_framesloaded>=_totalframes) {
_root.content.gotoAndPlay("contact", 1);
}
En de bar:
Code:
_root.content.bar.stop();