class a{
public var show:Function;
public function a(){
}
public function messageShow():void{
show();
}
}
class b{
public function b(){
var aClass:a = new a();
a.show = function():void{
Alert.show("ok");
}
}
好玩 as3 真得很有趣
public var show:Function;
public function a(){
}
public function messageShow():void{
show();
}
}
class b{
public function b(){
var aClass:a = new a();
a.show = function():void{
Alert.show("ok");
}
}
好玩 as3 真得很有趣