-
Why doesn't my external preloader work in MX 2004 (look at code0???¿¿¿
-----------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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|