Yep, that did the trick...

Thanks Juan!

On 4/26/07, scalenine <[EMAIL PROTECTED]> wrote:

  Try this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
<mx:Button x="48" y="31" label="Press Me" click="input.text='Im under
a canvas';"/>
<mx:TextInput x="170" y="31" id="input"/>
<mx:Canvas x="10" y="10" width="152" height="69"
backgroundColor="#f085f0" backgroundAlpha=".2" mouseEnabled="false">
</mx:Canvas>
</mx:Application>

The trick is setting mouseEnabled="false" on the Canvas.

Juan
scalenine.com

--- In [email protected] <flexcoders%40yahoogroups.com>, "Claudia
Barnal" <[EMAIL PROTECTED]> wrote:
>
> 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:* [email protected] <flexcoders%40yahoogroups.com>
[mailto:[email protected] <flexcoders%40yahoogroups.com>] *On
> > Behalf Of *Claudia Barnal
> > *Sent:* Thursday, April 26, 2007 3:30 PM
> > *To:* [email protected] <flexcoders%40yahoogroups.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
> >
> >
> >
>

Reply via email to