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

Pages: 1-

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 2008-09-08 8:05

PROTIP: typeof(a) == typeof(b) isn't a string comparison.

Name: Anonymous 2008-09-08 21:16

PROTIP: You keep using that for..in. I donna think it means what you thinka it means.

Name: Anonymous 2008-09-09 4:44

PROTIP: [u][o][i]DON'T HELP HIM[/u][/o][/i]

Name: Anonymous 2008-09-09 11:11

>>4

PROTIP: WHAT THE FUCK ARE YOU DOING

Name: Anonymous 2009-03-19 1:48

dds

Name: Anonymous 2009-08-17 0:35

Lain.

Name: Anonymous 2010-11-26 11:39

Name: Anonymous 2011-02-03 1:29

Name: Anonymous 2014-01-21 21:06

>>9
>le pedophile sage

Name: Anonymous 2014-02-08 8:14

check 'em

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