Nested functions are allowed, I use them all the time. It works within flash & flex. The problem might be with the compiler you are using. Try the function in flex/flash and see if it pops up an error.

Justin Abene
[EMAIL PROTECTED]






On Sep 28, 2008, at 4:49 PM, Javier Gimenez wrote:

Hi there ...

I'm taking my first steps into the world of open source flash development.
I'm currently using A.M.E.S. workflow and i have a doubt ...

Nested function are allowed ?

Im trying to do something like this

class myClass {

  public function myClass() {
  }

  public function someMethod() {

     nestedFunction();

     function nestedFunction() {
        something ...
     }

  }
}

but always get an error message (mismatched input 'nestedFunction' expecting LPAREN )

What am I doing wrong ?
Is it possible ?

I'm using EasyEclipse for PHP 1.2.2.2 + ASDT 0.0.9

Thank you very much

Cheers

Javier Giménez
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to