[osflash] A.M.E.S. + Nested functions

Scott Langeberg slangeberg at gmail.com
Mon Sep 29 18:41:19 PDT 2008


Nested functions aren't the greatest idea, due to performance
considerations, if you can get away without them.

On Mon, Sep 29, 2008 at 6:58 PM, Javier Gimenez <jsgimenez at gmail.com> wrote:

> Justine:
>
> Above all ... thank you for responding so quickly ...
>
> I think that my journey through the open source flash development world
> will be a highway to hell ... not a stairway to heaven :P ...
>
> I was researching on the subject at saint google, and i found MTASC doesn't
> allow nested functions ... ( I forgot to say that I was using the MTASC
> compiler in my earlier question )
>
> but ... i found a "solution" ... if i do something like this :
>
> class myClass {
>
>   public function myClass() {
>   }
>
>   public function someMethod() {
>
>     var nested:Function = function nestedFunction() {
>         something ...
>      }
>
>     nestedFunction();
>
>   }
> }
>
> IT WORKS !!! ... but I don't know why ... :(
>
> Maybe I should delegate rather than nest ...
>
> Cheers !!!
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>


-- 
: : ) Scott

Helping your grandma on the interweb
at: http://blog.criticalpile.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080929/6ea2db83/attachment.html 


More information about the osflash mailing list