Flash / Flex / ActionScript/Class/Instance variable
Add an instance variable
package com.wbex {
internal class MyClass {
var varName = "Unnamed";
}
}
Define instance variable varName with the access-control modifier internal
package com.wbex {
internal class MyClass {
internal var varName = "Unnamed";
}
}
Use private attribute to define instance variable
package com.wbex {
public class MyClass {
private var varName;
public function MyClass ( ) {
}
}
}