RE: [flexcoders] Click through a Container
mouseEnabled doesn't apply to descendants. (Use mouseChildren to do that.) - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Barnal Sent: Saturday, April 28, 2007 10:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Click through a Container Yeah, as Juan told me, tried it and it works great :) Thanks! So here is another question... What if I have other controls in that container that also need mouse interactivity? As it is, the mouseEnabled property works great if I want to click through the container, but what if that container has controls that need to be clicked and stuff? Thanks again, Claudia On 4/27/07, Gordon Smith <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: > Isn't there something like turn shield on or off? Doh! I forgot! Try setting the mouseEnabled property of your Canvas to false. - Gordon From: flexcoders@yahoogroups.com <http://ups.com/> [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Claudia Barnal Sent: Thursday, April 26, 2007 3:46 PM To: [EMAIL PROTECTED] ups.com <http://ups.com/> Subject: Re: [flexcoders] Click through a Container Hi Gordon, I do need as much interactivity as possible :) Isn't there something like turn shield on or off? I noticed that if you don't define a background color or alpha, you can interact with the button. As for the actual WHY question... the answer is: The designer wants it. It is really not just one button under the translucent piece... it is a part of the application, and the button and other controls happens to be right there. Thanks, Claudia On 4/26/07, Gordon Smith <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I don't think this is easy to do. How much interactivity with the Button do you actually need? When you roll over the button, do you need it to highlight? When you click, do you need the button to depress? Or do you just need the button's click handler to execute? And I'm curious... why do you need to have a translucent Canvas over a Button? - Gordon From: flexcoders@yahoogroups.com <http://ups.com/> [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com/> ] On Behalf Of Claudia Barnal Sent: Thursday, April 26, 2007 3:30 PM To: flexcoders@yahoogroups.com <http://ups.com/> Subject: [flexcoders] Click through a Container Hi, How can I click through a Container (Canvas in my case) that has a backgroundColor set and a 0.2 backgroundAlpha. I want to be able to interact with a button that is under the Container. Thanks, Claudia
Re: [flexcoders] Click through a Container
Yeah, as Juan told me, tried it and it works great :) Thanks! So here is another question... What if I have other controls in that container that also need mouse interactivity? As it is, the mouseEnabled property works great if I want to click through the container, but what if that container has controls that need to be clicked and stuff? Thanks again, Claudia On 4/27/07, Gordon Smith <[EMAIL PROTECTED]> wrote: > Isn't there something like turn shield on or off? Doh! I forgot! Try setting the mouseEnabled property of your Canvas to false. - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Claudia Barnal *Sent:* Thursday, April 26, 2007 3:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Click through a Container Hi Gordon, I do need as much interactivity as possible :) Isn't there something like turn shield on or off? I noticed that if you don't define a background color or alpha, you can interact with the button. As for the actual WHY question... the answer is: The designer wants it. It is really not just one button under the translucent piece... it is a part of the application, and the button and other controls happens to be right there. Thanks, Claudia On 4/26/07, Gordon Smith <[EMAIL PROTECTED]> wrote: > >I don't think this is easy to do. How much interactivity with the > Button do you actually need? When you roll over the button, do you need it > to highlight? When you click, do you need the button to depress? Or do you > just need the button's click handler to execute? > > And I'm curious... why do you need to have a translucent Canvas over a > Button? > > - Gordon > > -- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Claudia Barnal > *Sent:* Thursday, April 26, 2007 3:30 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Click through a Container > > > > Hi, > > How can I click through a Container (Canvas in my case) that has a > backgroundColor set and a 0.2 backgroundAlpha. > > I want to be able to interact with a button that is under the Container. > > Thanks, > Claudia > >
RE: [flexcoders] Click through a Container
> Isn't there something like turn shield on or off? Doh! I forgot! Try setting the mouseEnabled property of your Canvas to false. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Barnal Sent: Thursday, April 26, 2007 3:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Click through a Container Hi Gordon, I do need as much interactivity as possible :) Isn't there something like turn shield on or off? I noticed that if you don't define a background color or alpha, you can interact with the button. As for the actual WHY question... the answer is: The designer wants it. It is really not just one button under the translucent piece... it is a part of the application, and the button and other controls happens to be right there. Thanks, Claudia On 4/26/07, Gordon Smith <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I don't think this is easy to do. How much interactivity with the Button do you actually need? When you roll over the button, do you need it to highlight? When you click, do you need the button to depress? Or do you just need the button's click handler to execute? And I'm curious... why do you need to have a translucent Canvas over a Button? - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Claudia Barnal Sent: Thursday, April 26, 2007 3:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Click through a Container Hi, How can I click through a Container (Canvas in my case) that has a backgroundColor set and a 0.2 backgroundAlpha. I want to be able to interact with a button that is under the Container. Thanks, Claudia
Re: [flexcoders] Click through a Container
Hi Gordon, I do need as much interactivity as possible :) Isn't there something like turn shield on or off? I noticed that if you don't define a background color or alpha, you can interact with the button. As for the actual WHY question... the answer is: The designer wants it. It is really not just one button under the translucent piece... it is a part of the application, and the button and other controls happens to be right there. Thanks, Claudia On 4/26/07, Gordon Smith <[EMAIL PROTECTED]> wrote: I don't think this is easy to do. How much interactivity with the Button do you actually need? When you roll over the button, do you need it to highlight? When you click, do you need the button to depress? Or do you just need the button's click handler to execute? And I'm curious... why do you need to have a translucent Canvas over a Button? - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Claudia Barnal *Sent:* Thursday, April 26, 2007 3:30 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Click through a Container Hi, How can I click through a Container (Canvas in my case) that has a backgroundColor set and a 0.2 backgroundAlpha. I want to be able to interact with a button that is under the Container. Thanks, Claudia
RE: [flexcoders] Click through a Container
I don't think this is easy to do. How much interactivity with the Button do you actually need? When you roll over the button, do you need it to highlight? When you click, do you need the button to depress? Or do you just need the button's click handler to execute? And I'm curious... why do you need to have a translucent Canvas over a Button? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Barnal Sent: Thursday, April 26, 2007 3:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Click through a Container Hi, How can I click through a Container (Canvas in my case) that has a backgroundColor set and a 0.2 backgroundAlpha. I want to be able to interact with a button that is under the Container. Thanks, Claudia
[flexcoders] Click through a Container
Hi, How can I click through a Container (Canvas in my case) that has a backgroundColor set and a 0.2 backgroundAlpha. I want to be able to interact with a button that is under the Container. Thanks, Claudia