2 Replies Latest reply on Sep 15, 2011 3:45 AM by Jakoub2

    Flex mobile app and MouseEvent

    Jakoub2

      <s:Scroller id="MyScroller" left="20" right="20" top="80" bottom="20" height="85%">
        <s:Group width="100%" height="100%" >
        
         <s:VGroup id="MyVerticalGroup" left="0" right="0" top="0" bottom="0"
             horizontalAlign="center">
          <s:TileGroup >
          <s:Image id="Image1" smooth="true" source="images/cart1.jpg"
             mouseUp="Image1_clickHandler(event)"/>
          <s:Image  id="Image2" smooth="true" source="images/car2.jpg"/>
          </s:TileGroup>
         </s:VGroup>
         </s:Group>
        </s:Scroller>

       

       

       

      and function

       

       

       

      protected function Image1_clickHandler(event:MouseEvent):void

      {

       

       

      var selectedX:Number = event.localX;

       

      var selectedY:Number = event.localY;

       

      trace("x : " + selectedX + " y :" + selectedY);

      }

       

       

       

      Console write nothing from trace, if I pasted breakpoint on the row with code

       

      var selectedX:Number = event.localX;

       

      program doesn't break, run without any stop.

      Please, can anybody help me.

      Regards

       

      Jakoub