that's pretty screwy code so you may have problems elsewhere sooner or later. but for now why don't you remove the zeros?
Thanks for your reply.
I wasn't aware that this is scewy code. Could you please tell me why ? Recently started to learn AS3 through formal training but didnt have much opportunity with AS1/2. Taught myself bit and pieces and the results obviously show ! I've used this particular code often but this is the first time i'm having this issue. I could simply remove the zeros but I'd be happier to know where I'm going wrong rather than a band-aid solution which comes back to haunt me again further down the line.
Thanks in advance.
A zero in front of a number (since normal numbers don't have leading zeros) tells flash that the number it is reading is octal (base 8). In an octal system there is no "8" or "9" so that doesn't make sense to Flash (or anywhere else for that matter.
But as Kglad says this is pretty bizarre code. Do you actually have things loaded into all those levels? That seems alike a lot of stuff to be loading in.
Additionally I've always found that levels are really hard to deal with since there is no "Level" class and therefore the number of things you can do with them is very limited. In fact if/when you make the jump to AS3 you will find that levels are completely gone.
Without knowing all the details of what you are doing it is hard to give specific advice, but generally loading into movieclips is a better practice. And only adding and removing specifcally what you need in a (possibly) more organized manner....