View Full Version : sequential loading not working
sandman9
11-25-2003, 07:08 PM
Why doesn't this work .... it's jesse's code altered
count = 0;
numMoviesToLoad = 5;
function loadNext () {
if (count<numMoviesToLoad) {
count++;
loadMovie ("pics/w"+count+".jpg", _root.container);
}
}
loadNext();
trace(count);
Sandman9
Colin Campbell
11-25-2003, 07:29 PM
count = 0;
numMoviesToLoad = 5;
//
function loadNext () {
if (count<numMoviesToLoad) {
count++;
this.loadMovie ("pics/w"+ count +".jpg");
trace("count");
trace ("IT WORKED!");
}
else {
trace ("error!");
}
};
//
_root.container.loadNext();
See if this returns "error." Try that and get back.
BTW: not sure about this one, but if you're running windows, it will need to be uploaded to a server for testing, because of this line:
"pics/w"+ count +".jpg"
I'm not positive, because I'm still I noobie to windows flash, but the windows syntax uses \ instead of /, unlike servers.
Colin
sandman9
11-25-2003, 07:33 PM
nope ..... can you make up a quick fla ..... i've been at this all morning and times ticking :(
Thanks Colin
Sandman9
Colin Campbell
11-25-2003, 07:36 PM
I've had flas uninstalled for a couple of days... getting errors. Hopefully someone can come help...
sandman9
11-25-2003, 07:45 PM
I think i'm gonna delete this thread and just go back to the drawing board first ..... i over looked some stuff ....... i'm just having an extremely bad flash day today
thanks again colin
Sandman9
boyzdynasty
11-25-2003, 08:40 PM
that sucks....
Want to explain what you want to do?...Maybe we can help.
If you work with prototypes...I think that will help a bit.
Maybe after my night class, I'll write you up an *.fla :D
boyzdynasty
11-26-2003, 12:30 AM
Dag...i think sandman sprinkled some sleeping dust on me...
I am beat. :(
sandman9
11-26-2003, 09:49 PM
look here
http://www.actionscript.org/forums/showthread.php3?s=&threadid=38379
cheers
sandman9
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.