Packageorg.hasseg.externalMouseWheel
Classpublic final class ExternalMouseWheelSupport
InheritanceExternalMouseWheelSupport Inheritance flash.events.EventDispatcher

Implements mouse wheel support for OS X. This is done by catching mouse wheel events in JavaScript through the ExternalInterface, finding the topmost InteractiveObject under the mouse and making it dispatch the as MouseEvents.



Public Properties
 PropertyDefined by
  dispatchingObjectDeterminationMethod : uint
Specifies the method of determining the InteractiveObject that will be called to dispatch the external mouse wheel events received from JavaScript.
ExternalMouseWheelSupport
  initialized : Boolean
[read-only] Whether or not the external mouse wheel support has been successfully initialized.
ExternalMouseWheelSupport
Public Methods
 MethodDefined by
  
[static] Returns the reference to the singleton instance of this class
ExternalMouseWheelSupport
Public Constants
 ConstantDefined by
  COPY_MOUSEMOVE_EVENTS : uint = 0
[static] A possible value for dispatchingObjectDeterminationMethod.
ExternalMouseWheelSupport
  TRAVERSE_DISPLAY_LIST : uint = 1
[static] A possible value for dispatchingObjectDeterminationMethod.
ExternalMouseWheelSupport
Property detail
dispatchingObjectDeterminationMethodproperty
dispatchingObjectDeterminationMethod:uint  [read-write]

Specifies the method of determining the InteractiveObject that will be called to dispatch the external mouse wheel events received from JavaScript.

The possible values are:

Constant to useDescription
ExternalMouseWheelSupport.COPY_MOUSEMOVE_EVENTS With this method, a mouseMove event listener will be added to the Stage and the object to dispatch a mouse wheel event when one arrives via JavaScript will be the same one that was the target for the last such mouseMove event.
ExternalMouseWheelSupport.TRAVERSE_DISPLAY_LIST With this method, each time a mouse wheel event arrives via JavaScript the object to dispatch the event will be determined by traversing the display list hierarchy and finding the topmost matching object under the mouse cursor.
Implementation
    public function get dispatchingObjectDeterminationMethod():uint
    public function set dispatchingObjectDeterminationMethod(value:uint):void

See also

initializedproperty 
initialized:Boolean  [read-only]

Whether or not the external mouse wheel support has been successfully initialized. Note that an unsuccessful initialization might mean that the support is simply not needed (i.e. if running in Windows Flash Player in a browser other than Safari.)

This property can be used as the source for data binding.

Implementation
    public function get initialized():Boolean
Method detail
getInstance()method
public static function getInstance(aStage:Stage):ExternalMouseWheelSupport

Returns the reference to the singleton instance of this class

Parameters
aStage:Stage — Reference to the Stage object (required!)

Returns
ExternalMouseWheelSupport — Reference to the singleton instance of this class
Constant detail
COPY_MOUSEMOVE_EVENTSconstant
public static const COPY_MOUSEMOVE_EVENTS:uint = 0

A possible value for dispatchingObjectDeterminationMethod.

See also

TRAVERSE_DISPLAY_LISTconstant 
public static const TRAVERSE_DISPLAY_LIST:uint = 1

A possible value for dispatchingObjectDeterminationMethod.

See also