Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maybe these options could help you</p> <p><strong>OPTION#: 1</strong></p> <pre><code>&lt;component:ThirdPartyComponent creationComplete = "afterCreation()" id = "TPComponent"&gt; &lt;fx:Script&gt; // You could use initialize or creationComplete to handle MouseWheel Listener private function afterCreation():void{ this.addEventListener(MouseEvent.MOUSE_WHEEL, hoverHandler); } private function hoverHandler(e:MouseEvent):void{ if(!e.isDefaultPrevented()){ e.preventDefault(); e.cancelBubble = true; e.cancel = true; e.returnValue = false; } return false; } &lt;/fx:Script&gt; &lt;/component:ThirdPartyComponent&gt; </code></pre> <p>But I suggest you to disable MouseWheel in children components with MouseEvent.ROLL_OVER, because it covers all area of any child object of the display object container. The buble event should return to false so that the children would have no chance to dispatch any mouse event including the MOUSE_WHEEL.</p> <p><strong>OPTION#: 2</strong></p> <pre><code>&lt;component:ThirdPartyComponent creationComplete = "afterCreation()" id = "TPComponent"&gt; &lt;fx:Script&gt; private function afterCreation():void{ this.mouseChildren = false; } &lt;/fx:Script&gt; &lt;/component:ThirdPartyComponent&gt; </code></pre> <p>By setting mouseChildren to false, events on any mouseChildren are given to the parent magically. mouseChildren is not equal to mouseEnabled, so any given return of it will give different impact :)</p> <p>You could combine Option# 1 &amp; Option# 2 or choose one of them, which is the best for you :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload