You can also use the new Mouse class, which provides a native cursor with a higher frame rate.
<mx:HBox rollOver="Mouse.cursor = MouseCursor.BUTTON" backgroundColor="0" backgroundAlpha="0" rollOut="Mouse.cursor = MouseCursor.AUTO"/>
Background color and background alpha are used to highlight graphics that are used as the hit area. In empty Spark containers, there is a mouseEnabledWhereTransparent property, which I think does not exist in mx containers. Here is the documentation for it:
When true, this property ensures that all group boundaries are responsive to mouse events, such as clicking and rolling. This property only takes effect if mouse gesture, touch, or flash player events are added to this instance. In addition, it is suggested that calls to addEventListener () / removeEventListener () are not redundant.
Having said that, this works without setting the mouseEnabledWhereTransparent property:
<s:Group id="testingHitGroup" left="10" top="10" rollOver="cursorObject_rollOver(event)" width="100" height="100"/>
1.21 gigawatts
source share