2 Replies Latest reply on Sep 15, 2008 1:49 AM by luciewong

    call EventListener

    luciewong Level 1
      I have several checkboxes. To each CB I have added an EventListener on click.
      But now, when data comes in I make 1 CB to >selected = true<.
      Can I also call the click function so the CB acts as it would be clicked?

      var sub1Listener:Object = new Object();
      sub1Listener.click = function(evt:Object){
      if(evt.target.selected == false){
      //do nothing
      }else if
      (evt.target.selected == true){
      //do some..

      Many thanks,