Update data in a member method : Member method : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Member method »

 

Update data in a member method


 


  class MyClass {
    internal var varName;
    private var varInt = 1000;

    public function MyClass (name) {
      this.varName = name;
    }

    function update (  ) {
      this.varInt += 100;
    }
  }

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Class
» Member method