FLASH 8: 點機用埋個mouse wheel?

2007-04-24 12:01 am
我想用個mouse wheel黎控制MC入面d frame行前行後。

應該點做好? 打咩script同放佢地o係邊度?

回答 (1)

2007-04-27 9:15 am
✔ 最佳答案
唔難既,用listener就可以了,例:

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(wheelNum:Number)
{
if (wheelNum> 0)
{
//scroll上的action
}
else if (wheelNum< 0)
{
//scroll落的action
}
}
Mouse.addListener(mouseListener);


收錄日期: 2021-04-23 21:33:43
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070423000051KK01995

檢視 Wayback Machine 備份