Add an instance variable : Instance variable « Class « Flash / Flex / ActionScript






Add an instance variable

 

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

        








Related examples in the same category

1.Define instance variable varName with the access-control modifier internal
2.Use private attribute to define instance variable