*DelegateCheck[ActionScrip2.0] [#j1aae376]

**DelegateCheck.as [#h8efefaf]
#geshi(ActionScript){{
import mx.utils.Delegate;

class DelegateCheck {
	public var _name:String = "DelegateCheck";
 
	public function DelegateCheck() {
		init();
	}
 
	private function init() {
		_root.a_btn.onPress = Delegate.create(this, press);
		_root.a_btn.onRollOver = over;
	}
 
	private function press() {
		trace(this._name);
	}
 
	private function over() {
		trace(this._name);
	}
}

}}

**DelegateCheck.fla [#ye292188]
a_btnというMCを作成する。

#geshi(ActionScript){{
import DelegateCheck;
new DelegateCheck();
}}

&br;
*Comment [#iae59e5e]
#comment_nospam
&br;
#counter



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS