> In my Sprite object, how come I can't do:
>
>  for each( var child:Sprite in this.children ) {
>  // do something
>  }
>
>  I can do a simple for loop, but this can not be run in parallel on a
>  multicore chip. Whereas the above code could (100 children, 100 cores
>  on my chip = each core runs the code)

In theory, yes, a foreach could be optimized by a compiler to leverage
mutlicores whereas a forloop cannot... but in the case of Flash, in
particular the AVM2 (the Actionscript Virtual Machine v2) is not
designed to distribute code across multiple cores.

If that's something that you're looking for, Flash may be the wrong
environment for you... ;-)

Troy.

Reply via email to