Name: Anonymous 2008-09-08 7:59
Hay guise, im trying to count how many objects i have on stage or in any level inside a movie clip.
Lets say I have 3 things in the scene, 1 array, 2 movieclips, 2 strings
// --------------
for(mc in this){
...
trace(mc) // returns the individual instance names of the objects
}
// --------------
Works fine.. Using typeof it should return the objects' type right?
// --------------
for(...
trace(typeof(mc) // string string string string
}
// --------------
Weird...Maybe someone could shed some light here? If im missing something, please point it out and halp me.
Thanks Anonymous!
Lets say I have 3 things in the scene, 1 array, 2 movieclips, 2 strings
// --------------
for(mc in this){
...
trace(mc) // returns the individual instance names of the objects
}
// --------------
Works fine.. Using typeof it should return the objects' type right?
// --------------
for(...
trace(typeof(mc) // string string string string
}
// --------------
Weird...Maybe someone could shed some light here? If im missing something, please point it out and halp me.
Thanks Anonymous!