bahrami
02-04-2007, 10:22 AM
I have tryed to make a preloader on a movie clip så I can Place where ever I want.
The code look like this.
onClipEvent (load) {
total_bytes = _root.content.getBytesTotal();
loaded_bytes = _root.content.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
}
onClipEvent (enterFrame) {
this.gotoAndStop (percent_done)
if (toatel_bytes = loaded_bytes) {
this.gotoAndStop(1)
_parent.gotoAndStop (nextFrame)
}
}
It seems that the movieclip can not controll it self, how is that
The code look like this.
onClipEvent (load) {
total_bytes = _root.content.getBytesTotal();
loaded_bytes = _root.content.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
}
onClipEvent (enterFrame) {
this.gotoAndStop (percent_done)
if (toatel_bytes = loaded_bytes) {
this.gotoAndStop(1)
_parent.gotoAndStop (nextFrame)
}
}
It seems that the movieclip can not controll it self, how is that