作者hendrixwu (永遠忠誠)
站內Flash
標題Re: [問題] 關於AS 3.0 的事件偵聽問題
時間Mon Mar 1 01:07:17 2010
不知道這樣是不是你要的,參考看看吧
bb_1.addEventListener( MouseEvent.CLICK,
function(e:MouseEvent)
{
onBtnClick(e,String(e.target.name).split('_')[1])
});
function onBtnClick(e:MouseEvent,i:String)
{
gotoAndStop(i);
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.169.198.76
1F:→ godsing:感謝提供意見 03/01 19:50