4 Replies Latest reply on Mar 18, 2008 11:42 PM by Pratap Reddy

    Facing Problem in CLICK event of PANEL

    Pratap Reddy Level 1
      HI,
      Am facing some problem with click event on PANEL.

      On click event am trying to change the Background color of it.
      Inside that panel got many components like DATAGRID, LIST etc., when i click on those components then alsoo Panel background getting changed.
      I want panel background should be changed when i click on PANEL only..not on its internal components...

      How to do this.. code am using to change BG is give below...

      tempPanel.addEventListener(MouseEvent.CLICK, changeBG);

      public function changeBG(event:MouseEvent):void
      {
      this.styleName="selectedPanel"; // some CSS style
      }