1
通過Mouse.addListener將鼠標滾輪添加到我的Flash影片後,鼠標滾輪事件不會通過鼠標光標放置在Flash影片上時冒泡給瀏覽器。添加鼠標監聽器停止瀏覽器滾動
谷歌的人都抱怨說,在AS3事件冒泡,很難阻止它,但在AS2我無法找到一個解決方案,以獲得行爲就像它在AS3。任何想法傢伙?
一些代碼:
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
trace("mouseMove");
}
mouseListener.onMouseDown = function() {
trace("mouseDown");
}
mouseListener.onMouseUp = function() {
trace("mouseUp");
}
Mouse.addListener(mouseListener);