Ali,
I need the button to work like a button and it doesn't have any
children, so unfortunately I don't see how mouseChildren will work
here is the code:
<mx:Canvas id="buttonCanvas" width="100%">
<mx:Button id="btnItem" width="100%" label="{abcItem.title}"
click="toggleState()" contextMenu="{buttonContextMenu}"
fillColors="[#009D00, #009D00]" textAlign="left"
textIndent="10"
fontFamily="Verdana" fontWeight="bold" height="20"/>
<mx:Label text="{StringUtils.formatCurrency(abcItem.totalAmount)}"
y="2" right="15" fontFamily="Verdana" fontWeight="bold" height="20"
click="toggleState()"/>
</mx:Canvas>
--------------------------
any other suggestions?
thanks,
pat
--- In [email protected], "Ali Erken" <[EMAIL PROTECTED]> wrote:
>
> mouseChildren = false;
>
> properties panel
>
> On Jan 3, 2008 11:58 PM, pfkellogg <[EMAIL PROTECTED]> wrote:
>
> > i have a canvas with just a very wide button with a label
component on
> > top of the button. (Note: label is different from the label property
> > of the button) i.e: Label is positioned over the right side of button
> > when i rollover the button its color becomes brighter as it should,
> > but when i rollover just on the label portion of the button, the
> > button color doesn't become brighter. the button isn't getting the
> > mouse roll over event. The Label is probably getting it. how do i
> > pass mouse rollover event from label control to button, so it changes
> > color? any ideas that are easy?? I don't want to use states if at
> > all possible.
> >
> >
> >
>