インスタンスメソッドの中でイベントハンドラがうまくいかない
onRollOverが実行しない。
class xxx { // イベントハンドラ kText_mc.onRollOver = function(){ trace("kText_onRollOver! " + kDescription_txt ); //item.roll(kizashi_) kDescription_txt._visible = true; //kDescription_txt._y += (-19 / kDescription_txt._y) * 0.3 } var kDescription_txt }
onRollOverが実行しても、kText_onRollOverの中でkDescriptionを所得出来ない。
class xxx { // イベントハンドラ kText_mc.onRollOver = kText_onRollOver var kDescription_txt private function kText_onRollOver (){ trace("kText_onRollOver! " + kDescription_txt ); //item.roll(kizashi_) kDescription_txt._visible = true; //kDescription_txt._y += (-19 / kDescription_txt._y) * 0.3 } }
onRollOverが動かない。
var Myxxx:xxx = new xxxx() Myxxx.kText_onRollOver ()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
あるMCのイベントハンドラ内であるMCの親の変数を持たせたい時には、
あるMC用のクラスを用意して、セッターとかであるMCのメンバーにしてやるほかにやりようがないのだろうか。