count = number stored in a variable so if you change that number, it will change for all of them so you don’t have to change it on all of them seperately
while (count<20) = while the number count equals is less than 20, do the following. This only allows 20 blocks on the screen at the same time. Raise or lower the number depending on how many you want.
“boxx”+count = creates a new movie clip with the name boxx and gives it the number that is in count. so if count keeps increasing your boxx clips will be called boxx1, boxx2, boxx3, so forth and so on.
_root[“boxx”+count]._something = do this to the newly created clip
boxx is just a new name. You could call it anything, like dupbox, dup, etc…
count is used to do something a certain number of times.
The code says duplicated these boxes while count<20
the code will go through, duplicate one box, and add “1” to the count, as if to say “okay, I already did that once, and since count doesn’t equal twenty yet, I’ll do it again”.
So, since this thing is creating duplicates, they can’t all have the same name. Makes sense? So, in this particular case boxx is used as the base of the name. Then, we take advantage of the fact that the variable “count” is increasing by one every time it goes through, so we use it as an aid to help us name our duplicates with individual names. Therefore, the first time around it is boxx1(because count equals 1), second time it is boxx2(count equals 2)… so on and so forth…
the second count there is the level it loads in. Since all your clips can’t load in the same level, you need to increase it by 1 with each clip… might as well use count since that is increasing by 1 anyway.
Hmmm… I don’t really know any. I stuck with kirupa… seems to be a real good place if you do his basic tutorials for Flash 5 and MX (if you use MX, most of the Flash 5 tutorials do work).