180bpm
Bind Class 사용법 본문
반응형
//code start
//import BGames.data.bind;
import BGames.data.Binding;
_root.player = {};
player.level1 = 3;
player.level2 = 3;
function f1($n, $o, $k, $m){
trace("f1:" + $n + ":" + $o + ":" + $k + ":" + $m);
}
function f2($n){
trace("f2:" + $n);
}
//Binding.bind(player).addBind("level1", f1, 1111, "2222").addBind("level1", f2);
Binding.bind(player);
player.addBind("level1", f1, 1111, "2222");
player.level1 = 5;
player.delBind("level1", f1, 1111, "2222");
player.level1 = 7;
//code end
반응형
Comments