Class Level (Static) Variables and Methods are accessed by using the class name followed by the object name : Variable scope « Data Type « Flash / Flex / ActionScript
Class Level (Static) Variables and Methods are accessed by using the class name followed by the object name
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
trace(ScopeTest.foo); // Displays: bar
}
}
}
class ScopeTest {
publicstatic var foo:String = "bar";
}