I have a preloader component on my external swf but when I view it from the main swf over the net nothing happens. It just shows the bar and 0kb. I have already tried changing _root to this and _parent but that doesn’t seem to work. Any suggestions?
here is the code i am using:
onClipEvent (load) {
_parent.stop();
this.topScale = this._width;
this._xscale = 0;
ft = int(_parent.getBytesTotal()/1024);
}
onClipEvent (enterFrame) {
fl = int(_parent.getBytesLoaded()/1024);
this._xscale = (fl/ft)*this.topScale;
_parent.mytext.text= “LOADING “+fl+” KB OF “+ft+” KB”;
_parent.mytext.setTextFormat(_parent.mtextFormat);
//_parent.llt = “LOADING “+fl+” KB OF “+ft+” KB”;
if (fl == ft) {
_parent.gotoAndPlay(_currentframe+1);
play();
}
}