3 Replies Latest reply on Aug 27, 2007 10:48 AM by Neavo

    Is this a bug? come in to see the code please

      I am using Flex Builder 3 code name "Moxie".
      The basic idea is having a linkedbutton on a panel, then if you click on the linkedbutton, both the linkedbutton and the panel underneath catch the mouse click event. Is this a bug? I am expecting only the linkedbutton is able to capture the mouse click event. Or is there anything wrong with the codes? Thanks in advance for help.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" >

      import mx.controls.Alert;

      public function dpMouseDown(e:MouseEvent):void
      Alert.show("Mouse caught by PANEL");

      public function lkMouseDown(e:MouseEvent):void
      Alert.show("Mouse caught by LINKBUTTON");


      <mx:Panel id="dPanel"
      height="100%" width="100%"
      horizontalScrollPolicy = "off"
      verticalScrollPolicy = "off"
      <mx:LinkButton id="linkButton" label="HHHHHHHHHHHHHHHHHHHHHHHH"
      width="200" height="200" x="100" y="100" click="lkMouseDown(event)"/>