Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

counting objects inside a movie clip (as2)

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!

Name: Anonymous 2011-02-03 1:29


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List