# Making Flash Think Faster

**URL:** https://forum.kirupa.com/t/making-flash-think-faster/153975
**Category:** programming
**Created:** [July 6, 2005, 1:58am UTC](https://forum.kirupa.com/t/making-flash-think-faster/153975 "2005-07-06T01:58:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bandinopla](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bandinopla](https://forum.kirupa.com/u/bandinopla)
#### Post date: [July 6, 2005, 1:58am UTC](https://forum.kirupa.com/t/making-flash-think-faster/153975/1 "2005-07-06T01:58:54Z")

</div>

Hi,  
what is more fast and efficient?  
this:  
\*mc=\_root.attachMovie(…,…,…); mc.onEnterFrame= doSomething

- or, have all the names or the objects in an array and:
- for(i=0…)  
{  
doSomethingWithThis(\_root[**array** \*])  
}\<array.lenght ;="" i="" dosomethingwiththis(array[i="" }=""\>\<array.lenght ;="" i="" dosomethingwith(array[i="" }=""\>

\</array.lenght\>\</array.lenght\>\*Another thing… I want to read something about writing efficient code for flash making games…

That example is bicouse… for example in a game that is required an X numbrer or… lets said… comets falling, like a shooting game, I dont whant to make flash think a lot… so my PC can play to, U know.

OK, bye.
