My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: flex, mousewheel
Feeds:
People details
Project owners:
  ed.eustace, pascualin

An example of how to handle the mouse wheel on ALL browsers then the swf wmode=transparent. The final version we are using is MouseWheelEnabler.

The code is based on: http://blog.earthbrowser.com/2009/01/simple-solution-for-mousewheel-events.html

We just add a check to see if they are using wmode aswell as using os x.

Usage

<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
	xmlns:mx="http://www.adobe.com/2006/mxml" 
	layout="absolute" 
	xmlns:view="view.*"
	addedToStage="initMouseWheel()">
	<mx:Script>
		<![CDATA[
			import com.adobe.utils.mousewheel.MouseWheelEnabler;
			
			
			private function initMouseWheel() : void
			{
				MouseWheelEnabler.init( stage );
			}	
					
		]]>
	</mx:Script>
	<view:MockView />
</mx:Application>








Hosted by Google Code