1 Reply Latest reply on Apr 19, 2010 10:20 AM by Flex harUI

    Making a Group component mouse state-aware?

    Handycam Level 1

      I have a group component that I want to respond to basic mouse events, as a button does.


      So I add the states:

                <s:State name="up" />
                <s:State name="over" />
                <s:State name="down" />
                <s:State name="disabled" />


      And then I add the events to the Group tag:

      <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
                 xmlns:mx="library://ns.adobe.com/flex/mx" rollOver="{currentState='over'}" rollOut="{currentState='up'}">


      Is this the correct way?  Or is there a more direct way?