Flash / Flex / ActionScript/Class/Instance variable
Версия от 09:19, 26 мая 2010; (обсуждение)
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 ( ) {
}
}
}