Title: Message
Just set the first mx:VBox enabled="false"
No user interaction should be possible!
 
Sree
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of James Ward
Sent: Saturday, May 14, 2005 12:10 AM
To: [email protected]
Subject: [flexcoders] Canvas Children & Cursor / Event Stuff

So how do I get a child of a canvas to hide cursor changes and click
events of children which are "beneath" the child?

For example:

        <mx:Canvas width="100%" height="100%">
          <mx:VBox width="200" height="200" x="100" y="100"
backgroundColor="#0000ff" horizontalAlign="center"
verticalAlign="middle"  enabled="false" >
            <mx:Link label="blue blue blue blue" click="alert('blue')"/>
          </mx:VBox>
          <mx:VBox width="200" height="200" x="150" y="150"
backgroundColor="#00ff00" horizontalAlign="center"
verticalAlign="middle" alpha="50">
            <mx:Link label="green green green green"
click="alert('green')"/>
          </mx:VBox>
        </mx:Canvas>

I do not want the "blue" link to be clickable since it is "under" the
"green" VBox.  The second VBox is set to 50% alpha for testing.

Any ideas?

Thanks in advance.

-James




Yahoo! Groups Links

Reply via email to