Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8125043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:40:35+00:00 2026-06-06T06:40:35+00:00

here is the layout: <s:Scroller> <s:VGroup> <s:List id="list1"/> <s:List id="list2"/> <component:ThirdPartyComponent/> </s:VGroup> </s:Scroller> so,

  • 0

here is the layout:

<s:Scroller>
    <s:VGroup>
        <s:List id="list1"/>
        <s:List id="list2"/>
        <component:ThirdPartyComponent/>
    </s:VGroup>
</s:Scroller>

so, my application should only showing 1 scroll to the right which is the scoller, list1, list2 etc should not showing scroll.

it was working fine for a moment until we found that mouse wheel scroll not working. seem the mouseWheel event captured by the child component (list and thirdparty).

searched through the net to find solution, there is solution to stopImmediatePropagation() of the child mouseWheel event, but seems it is not a good solution. beside the part of ThirdPartyCompoent that doing scroll is a private member, so no way to listen mouseWheel from ThirdPartyCompoent

any idea?

CASE CLOSE

so far, the case solved by listen the mouseWheel event and disable root VGroup mouseChildren there, then on the root VGroup click handler i enable the mouseChildren. but if there is more elegan solution please comment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:40:38+00:00Added an answer on June 6, 2026 at 6:40 am

    Maybe these options could help you

    OPTION#: 1

    <component:ThirdPartyComponent 
               creationComplete = "afterCreation()" 
               id               = "TPComponent">
      <fx:Script>
    
         // 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;
         }
      </fx:Script>
    </component:ThirdPartyComponent>
    

    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.

    OPTION#: 2

    <component:ThirdPartyComponent 
               creationComplete = "afterCreation()" 
               id               = "TPComponent">
      <fx:Script>
    
         private function afterCreation():void{
           this.mouseChildren = false;
         }
    
      </fx:Script>
    </component:ThirdPartyComponent>
    

    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 🙂

    You could combine Option# 1 & Option# 2 or choose one of them, which is the best for you 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I've a controller with 4 actions and i wanna apply application layout (
I am trying to put a scroll view to relative layout. Here some part
Here's my layout code; <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent> <TextView android:text=@string/welcome
Here is my layout <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:id=@+id/LinearLayout01 android:layout_height=wrap_content> <Spinner android:text=@+id/AutoCompleteTextView01
Here is my layout, Summary view http://img689.imageshack.us/img689/2500/yuidtsum.jpg I am using one div and many
Here's the basic layout of a page I'm working on: alt text http://www.mfrl.org/images/pagelayout.png What
Here is my test page (dont mind the layout right now) https://www.bcidaho.com/test_kalyani/employer-plans-test.asp i found
here is my mysql and php code layout: I have 3 tables tableA stores
Let say here is my stack layout View3 --> Top of the stack View2
I have a layout setup which can be view here: http://jsfiddle.net/Pn3ts/ It all works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.