-----------This code is on the empty MC container.

onClipEvent (load) {
loading = true;
}
onClipEvent (enterFrame) {
if (loading) {
if (this.getBytesTotal()>_root.baseSize) {
percent = this.getBytesLoaded()/this.getBytesTotal()*100;
trace (percent);
_root.loadingBar.bar._xscale = percent;
if (percent == 100) {
loading = false;
_root.loadingBar._visible = false;
this.nextFrame();
}
}
}
}


--------------this is the code on the button

on (press) {
container.loadMovie("flash.swf");
_root.loadingBar.bar._xscale = 0;
_root.loadingBar._visible = true;
}

------------this is the code on the load bar

onClipEvent (load) {
this._xscale = 0;
}

-----------------------------------------------

here is a link to my file

link

Thanks, Montara