3 Replies Latest reply on Sep 1, 2009 12:52 PM by kglad

    .onMouseDown makes all the screen clickable

    Paulo Ricca

      Hi!

      I've got this really weird problem. I have the following code:

       

      listMask.onMouseDown = Delegate.create(this, MouseDownOnList);

      private function MouseDownOnList()

      {

           placeHolder._visible=true;

      }

       

      The thing is, after I setup the onMouseDown, Anywhere I click on the screen run that function, not only the listMask movieclip! The movieclip is just a plain rectangle that was drawn by code, nothing special, no hidden graphics. Even if I don't draw anything in the movieclip, the whole screen is still clickable (as well as areas outside the screen, if we maximize the player window). This movieclip was created with .createEmptyMovieClip