Skip to content

MouseWheelFixer-解决flash和html页面滚轮冲突问题

问题描述:
当flash中需要使用mousewheel事件,而flash所在的页面也有滚动条,那么这2个滚动就会产生冲突。

解决方案:
MouseWheelFixer.as类

结果演示:
 

示例代码:

package {
    import as4game.fw.fixer.MouseWheelFixer;
    import flash.display.Sprite;

    /**
     * @author as4game@gmail.com
     */
    public class Test_MouseWheelFixer extends Sprite {
        public function Test_MouseWheelFixer() {
            MouseWheelFixer.apply(stage);
        }
    }
}

附件:
mousewheelfixer.rar

3 Comments

  1. 好东西不能不顶啊!

    Posted on 19-七-09 at 15:40 | Permalink
  2. luhengqi

    Firefox下面不行.汗.

    Posted on 27-五-10 at 16:35 | Permalink
  3. tsh

    火狐下无效呀!

    Posted on 10-六-10 at 17:55 | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*