I’m not sure why it’s happening, but you could just put another vbox behind the overlay and disable that one.

 

Matt

 


From: Paul Frantz [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Eventsbeing captured by hidden components

 

Hi,

I'm sure I'm missing something really obvious but... If I have a canvas with
one component that
overlays another what can I do to ensure events do not filter through to the
component below?
An earlier post by Matt suggests disabling the overlaying component.  This
works but doesn't
do much for me if I need children of the overlaying component to be active.

Any ideas?

Thanks,
Paul.

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
backgroundColor="#FFFFFF">

    <mx:Canvas>
        <mx:ComboBox id="SoftwareSelection">

            <mx:dataProvider>
                <mx:Array>
                    <mx:String>Macromedia Flex</mx:String>
                    <mx:String>Macromedia Dreamweaver</mx:String>
                    <mx:String>Macromedia ColdFusion</mx:String>
                    <mx:String>Macromedia Flash</mx:String>
                </mx:Array>
            </mx:dataProvider>

        </mx:ComboBox>
       
          <mx:VBox x="30" backgroundColor="0xFFFFFF">
                <mx:Label text="I'm an overlaying VBox" />
                <mx:Label text="why is the combobox underneath me"/>
                <mx:Label text="clickable?"/>
          </mx:VBox>       

    </mx:Canvas>
</mx:Application>


~~-------
This e-mail may contain confidential information.  If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system.  You must not disclose this e-mail to anyone without express permission from the sender.  The contents of all e-mails sent to and received from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free.  The information (including any pricing information) contained in this e-mail is subject to change.  This e-mail is not a quotation or proposal and no contractual obligations arise until you and Optus sign a formal written contract or formal variation to your existing contract. 

Any pricing contained in this e-mail is exclusive of GST unless otherwise stated.
********************************************************************



Reply via email to