2 Replies Latest reply on Jun 11, 2009 12:17 PM by anubia

    using an if statement with a eventlistener

    beatzMalone

      Is it possible to use a if statement with a eventlistener in it?

       

      eg


      if(myBut_btn.addeventlistener(MouseEvent.CLICK)){

       

       

      do something

       

      }else{

      do something else

      }

       

      is ?

       

      if failed how would you do this