What is the display list in Flash 10? Array? Linked list?
Posted
by Typeoneerror
on Stack Overflow
See other posts from Stack Overflow
or by Typeoneerror
Published on 2010-04-26T17:27:55Z
Indexed on
2010/04/26
18:13 UTC
Read the original article
Hit count: 233
I'm working on a game that has many elements on stage, so I'm looking to optimize my loops. I know that Vector
is faster than looping an array, but I'm also in some cases using:
while (i < numChildren)
getChildAt(i)
...to update sprites.
My question is when I use getChildAt, is that accessing an Array or Vector or linked list or other? Should I instead store references to my objects in a Vector and loop through that instead?
© Stack Overflow or respective owner