Hello flexcoders,
Task conditionals:
-----------------
<mx:VBox> contain <mx:Label> and <mx:TextArea> that cover most of the <mx:VBox>
container surface.
MXML:
<mx:VBox width="100%" height="80" buttonMode="true" backgroundColor="#FFFFFF"
backgroundAlpha="0" click="onContainerSurfaceClick()">
<mx:Label id="returnDateValue" fontSize="18" fontWeight="bold"></mx:Label>
<mx:TextArea id="messageTextValue" height="40" width="130" editable="false"
borderStyle="none"></mx:TextArea>
</mx:VBox>
Problem:
--------
Cannot capture MouseEvent.CLICK whenever the user clicks over <mx:Label> or
<mx:TextArea> components.
"onContainerSurfaceClick()" fires only in the situations when the user clicks
with a mouse directly on the <mx:VBox>'s surface,
NOT when the click had occurred over the surface occupied with UI components.
Possible resolutions
--------------------
1) Should I write 2 more separate corresponding event handlers for
MouseEvent.CLICK for <mx:Label> and <mx:TextArea> components?
2) Cover the whole area of <mx:VBox> with a graphic asset and set its
alpha to 0 and set its depth to highest ( an old trick from Flash days).
--
Best regards,
Andriy mailto:[EMAIL PROTECTED]
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/