ボタンがとにかく反応しなくて死んだ。
やろうとおもったのはXMLから読み込んだボタンにonRollOver = function()の書き方でイベントを登録したのだが。。。
原因は、子MCにonRollOverをかけてその後に親MCにonRollOutなどをかけていた。
そのため、親のmcがボタンとして認識され?先のonRollOverが無視された。
Mthum_mc[MainThumName].bticon_mc.onRollOver = function() {
trace(“ok”);
Tweener.addTween(this, { time:0.8, _xscale:130, _yscale:130, transition:”easeOutElastic” } );
Tweener.addTween(this, { time:0.3, _saturation:2, _hue:0, _contrast:0, _brightness:0.5, transition:”easeOutElastic” } );
Tweener.addTween(this, {delay:0.3, time:0.3,_saturation:0,_hue:0,_contrast:0,_brightness:0, transition:”easeOutElastic” } );
se001.setVolume(20);
se001.start();
}
Mthum_mc[MainThumName].onRollOut = function() {
Tweener.addTween(this,{time:0.8,_xscale:100,_yscale:100,transition:”easeOutElastic”});
}
Mthum_mc[MainThumName].onRelease = function() {
se002.setVolume(20);
se002.start();
pview(this.src);
}
上これやると、onRollOver無視されるw