Flash Preload mod
- Started
- Last post
- 4 Responses
- XC01
I'm modifying one of my trusty preload bar scripts so it will scale out smoothly.
but having no luck so far.this is my actionscript attached to the preload bar.
http://www.kalibre.net.au/NT/Preā¦
- 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();
}
}
}
}
- mennik0
There's some trouble when copy/paste your code. There's also an unnecesarry line.
Try this :
onClipEvent (enterFrame) {
if (_root.getBytesTotal()>0) {
this._xscale += (((_root.getBytesLoaded()/_root...
if (_root.getBytesLoaded() == _root.getBytesTotal) {
_root.nextFrame();
}
}
}Nice loader btw.
- Seph0
A quick guess as I am busssssy today
this bit
if (scale == 100)
I tend to use >= or = 100)
- XC010
wow, thanks for the quick responses guys. your code does the trick nicely nospacebar, i owe you one, cheers.