Reply LinkBack Thread Tools Search this Thread
Old 24-10-2003, 15:03   #1 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
preloader problems...

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;
__________________
...
  Reply With Quote
Old 24-10-2003, 15:09   #2 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
__________________
Linked In :: Last.fm :: Twitter
..................
  Reply With Quote
Old 24-10-2003, 15:15   #3 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
this one is thpethial coz it's "generic"...
__________________
...
  Reply With Quote
Old 24-10-2003, 15:16   #4 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
and i can't see what's wrong... mind you - can't see much anyway.......
__________________
...
  Reply With Quote
Old 24-10-2003, 15:18   #5 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
dunno why im even replying to this thread, I know nothing.
__________________
Linked In :: Last.fm :: Twitter
..................
  Reply With Quote
Old 24-10-2003, 15:19   #6 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
thpethial - whats that mean ?
__________________
Linked In :: Last.fm :: Twitter
..................
  Reply With Quote
Old 24-10-2003, 15:22   #7 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
Quote:
Originally Posted by oli
dunno why im even replying to this thread, I know nothing.

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.
  Reply With Quote
Old 24-10-2003, 15:37   #8 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
i learned that lesson too - but keep forgetting it
__________________
...
  Reply With Quote
Old 24-10-2003, 15:44   #9 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
read a booooooooooooook
  Reply With Quote
Old 24-10-2003, 15:47   #10 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
will forget it anyway - short term memory
__________________
...
  Reply With Quote
Old 24-10-2003, 15:51   #11 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
too much metaxa
__________________
Linked In :: Last.fm :: Twitter
..................
  Reply With Quote
Old 24-10-2003, 15:57   #12 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
that's a good book!
__________________
...
  Reply With Quote
Old 24-10-2003, 15:59   #13 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
absinth is better
__________________
Linked In :: Last.fm :: Twitter
..................
  Reply With Quote
Old 24-10-2003, 17:41   #14 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,354
bent
  Reply With Quote
Old 24-10-2003, 18:58   #15 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
Mik: fyi - Bent is actually a name. Feel lucky! (do a search on Bent Larsen)
__________________
...
  Reply With Quote
Old 25-10-2003, 06:59   #16 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,354
great
  Reply With Quote
Old 25-10-2003, 09:03   #17 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
Now you know what to call your first-born.
  Reply With Quote
Old 26-10-2003, 14:51   #18 (permalink)
flatcat
Balinese Buddah Sensei
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 763
Send a message via MSN to flatcat Send a message via Skype™ to flatcat
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
  Reply With Quote
Old 26-10-2003, 15:23   #19 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,088
really appreciate this Flatcat - thanks!
(how many ways to put together a preloader??)
__________________
...
  Reply With Quote
Old 26-10-2003, 18:33   #20 (permalink)
flatcat
Balinese Buddah Sensei
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 763
Send a message via MSN to flatcat Send a message via Skype™ to flatcat
Quote:
Originally Posted by dorian
really appreciate this Flatcat - thanks!
(how many ways to put together a preloader??)


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
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8