Hi,
I wanna use thise simple scrpt:
But it doesn't work :rolleyes:Code:if (someLoader.getBytesLoaded >= someLoader.getBytesTotal) {
element ("Button").show(); {
} else {
element ("Button").hide();
}
Printable View
Hi,
I wanna use thise simple scrpt:
But it doesn't work :rolleyes:Code:if (someLoader.getBytesLoaded >= someLoader.getBytesTotal) {
element ("Button").show(); {
} else {
element ("Button").hide();
}
You've made a little mistake:
if (someLoader.getBytesLoaded >= someLoader.getBytesTotal) {
element ("Button").show(); {
} else {
element ("Button").hide();
}
it doesn't usually make a difference, bit try putting () at the end of getBytesTotal and getBytesLoaded. Also, get rid of the extra {
if (someLoader.getBytesLoaded() >= someLoader.getBytesTotal()) {
element ("Button").show(); {
} else {
element ("Button").hide();
}
I try do that, but still doesn't work. Meybe attach file help my with this problem. Plz check this file.
---
I need that script for simple gallery (for my friend). I wanna make 30 small picture, and load these images from server, using "Loader" from 3DFA. But in one time, you can see max 15 small picture. For next 15 pictures, must use button 'next page'. And now i got a problem with this button, becose if my friend put only 15 images, then i don't need that button. So, i can hide it. But if he put image nbr. 16, then i wanna show this button, to check next images.
Btw. Here is my prototype gallery:
http://photo-passion.galtim.pl/galeria/
I guess that I make what you are looking for.
Can you programming using the progress script of loaders
Take a look!
Thx again Leo :D
This work, but it's very, hm, heavy for processor. That why i don't use this preloaders :(
I'm not sure but, is this?!
Unfortunately no. For explane. When i activate progress bar, then i use 80% my processor. And this is only one photo and button! So, if i try use this on normal website, then my web browser crash.
Btw. When i turn off this progress bar, then i use only 7% my processor.
Btw2. mr. Kusko, when you do somthing with that bar??
That is pretty weird...
Zoranan
Maybe progress script is wrong? Maybe this script doesn't stop (or delete) when finish loading some file, and that why use more processor? I don't know.
try taking your existing progress script, and adding this if statement to it
if (some_loader.getBytesLoaded() < some_loader.getBytesTotal()){
//the rest of your progress bar script
}
Zoranan