AS?, jpeg loading
- Started
- Last post
- 6 Responses
- goygoygoy
how would you check that flash player has correctly loaded the 50 images you've got in a folder?
- unfittoprint0
load each jpeg sequentially, auto increment a counter whenever each is finished until it reaches a total of 50. Use a setInterval function suing the count as a parameter.
- goygoygoy0
thks unfit, I look at it altough I don't see what's the point using setInterval? I know it's a common problem with flash to load external jpeg's and I'm afraid I going to spend my nigth on it...
- unfittoprint0
setInterval will be used as a loop to check when the loading process is finished and start the new one.
- goygoygoy0
ok, I'm trying it. Just a question, do you thin k this may be of use for me? http://www.helpqlodhelp.com/stuf…
- unfittoprint0
might be, but tweaking it especially if your new to AS, might be difficult.
- goygoygoy0
here is what I got, I'm not increasing i in the rigth place, any suggestion?
it cirrectly loads the first, pix...
function loadJPEG(i) {
trace(i);empty.loadMovie("collection/wome...
empty.onEnterFrame = function() {
if (empty.loaded) {
i++;
}
};
}
setInterval(loadJPEG, 1000, i);