Add assignment code to class constructor : Constructor : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Constructor »

 

Add assignment code to class constructor


 

package com.navioo {
  internal class MyClass {
    internal var varName = "Unnamed";

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

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Class
» Constructor