1 Reply Latest reply on Mar 1, 2010 10:38 AM by David_F57

    Using hitArea. How?

    Luis Pedro Ferreira Level 1

      Hi all.

      It's possible to do this:

       

      <fx:Declarations>
           <mx:Sprite width="100" height="40" x="0" y="0" id="category_hitArea" mouseEnabled="false"/>
      </fx:Declarations>

       

      <mx:Image id="category_triangle" visible="false"
                     buttonMode="true"
                     source="assets/images/categoryTriangle.png"
                     click="openCategory_handler()"
                     showEffect="fadeIn" hitArea="{category_hitArea}" />

       

      If is correct why doesen't the image take the sprite as its hitArea to do the click method?

      Cheers.