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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
--
: : ) Scott
Helping your grandma on the interweb
at: http://blog.criticalpile.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org