Flash Preload mod
Flash Preload mod
Out of context: Reply #1
- Started
- Last post
- 4 Responses
- nospacebar0
You've got one onEnterFrame event handler overwriting the other, mate.
If the scope was correct on your previous preloader, then this should work (it's a lot cleaner when you copy and paste it):
onClipEvent (enterFrame) {
if (_root.getBytesTotal() > 0) {
if (_root.getBytesLoaded() > 0) {
this._xscale += (((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)- this._xscale)/10;
if (_root.getBytesLoaded() == _root.getBytesTotal) {
_root.nextFrame();
}
}
}
}