7 Replies Latest reply on May 9, 2012 12:40 PM by Ned Murphy

    closing a movie clip with EventListener with a mouse click


      I have a button that loads a movie clip and I want to be able to close that same movieclip by clicking anywhere.


      This is my code so far:


      btn_2.addEventListener(MouseEvent.CLICK, goBio);

      function goBio (e:MouseEvent):void {

      var newBio:BioToc = new BioToc();


      newBio.x = 25;

      newBio.y = 45;