| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
|
been pissing about with this for too long... the preloader is not accurate it makes up it's own totalBytes (looks like it adds an x%) why? any ideas anyone? here's my code: totalBytes = (_parent._parent.getBytesTotal()); decLoaded = (_parent._parent.getBytesLoaded()/_parent._parent.getBytesTotal()); percLoaded = Math.round(decLoaded*100); bytesLeft = (_parent._parent.getBytesTotal() - _parent._parent.getBytesLoaded()); totalBytes = Math.round(totalBytes/1000); _parent.Ktotal = "Loading " add totalBytes add "Kb"; _parent.percent = percLoaded add "%"; _parent.Kleft = (Math.round(bytesLeft/1024)) add "K left"; _parent.bar._width = percLoaded*2; ...
|
|
|
|
|
|
#7 (permalink) | |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,200
|
Quote:
I had the same experience in the flash forum once! That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
|
#18 (permalink) |
|
Balinese Buddah Sensei
|
fuck, I reworked my preload code for your thing and then something glitched while I was typing and sent me back to the previous page, and when I hit forward everything was gone, so here's the preload code I use.... _root.loader.onEnterFrame = function(){ bytesLoaded = getBytesLoaded(); bytesTotal = getBytesTotal(); percent = (bytesLoaded/bytesTotal)*100; _root.loader._width = percent*2; if (percent == 100){ gotoAndPlay("mainBuild"); } } I would just try re-doing it....I can't really help too much without seeing your fla =\ audentes fortuna iuvat
Flatcat |
|
|
|
#20 (permalink) | |
|
Balinese Buddah Sensei
|
Quote:
heh, np, if you have any more problems just msg me on msn at theflattestcat@hotmail.com or just post a message here with an fla or something and I should be able to help ya audentes fortuna iuvat
Flatcat |
|
|
![]() |