1 Reply Latest reply on May 11, 2011 5:20 PM by Ned Murphy

    Newbie question on click detection

    Marcel0078919822

      Hi,
      my question must be too simple (sorry) but I'm starting.

      In my following code "Btn.onRelease" doesn't work after "LoadImg()" was call,
      How can I solve this, because I want to detect a click on Btn once the new picture was loaded.

      Thank you very much
      Marcel.

      here is my code :

      var mcLoader:MovieClipLoader = new MovieClipLoader();
      mcLoader.addListener(this);

      function LoadImg() {
      mcLoader.loadClip("images/p0.jpg", Btn);
      }

      LoadImg();

      Btn.onRelease = function(){
      trace("onRelease");
      };