Hi. I am bad at using Arrays.
Basically, there are 24 movieclips with 2 states, empty and full. Their instance names are from space0 to space23. When each movieclip are in the first state, empty what I am "planning" on doing is setting a specific variable for that movieclip called var space0empty:Boolean = true; and when it is in the second state make it false. I would have to make 24 variable for each movieclip.
Is there a simpler way to do this with Arrays, also, could you please explain any code given on arrays or at least tell me how to use arrays as the equilivant for what I said with variables.
If you are naming your movieclips that way then you don't really need any variables for them. You can use bracket notation to target them...
this["space"+num].space0empty = true; // or false
I should have actually put...
this["space"+num]["space"+num+"empty"] = true; // or false
but it would be smarter to not name the variable specific to the movieclip, especially if you need to target the movieclip anyways, meaning.... just call the variable "empty"...
this["space"+num].empty = true; // or false