Bound Methods, which is treated as a value : Function variable : Function Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Function » Function variable »

 

Bound Methods, which is treated as a value


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

    var consume = eat;

    }
    public function eat (calories) {
      trace("eat");
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Function
» Function variable