6 Replies Latest reply on Oct 13, 2006 12:33 PM by S4Potential

    onRelease for createEmptyMovieClip

    exboywonder
      I have an XML file that I am pulling thumbnails from. I would like these thumbnails to be links, but for some reason onRelease does not work on my movie clip created with createEmptyMovieClip.

      I have this theory that my onRelease function is being called before my thumbnail image is fully loaded, but I may be completely wrong. Here is some example code of what I am trying to do.

      -----------------------------------------------

      newThumb = _root.createEmptyMovieClip("thumb_mc", this.getNextHighestDepth());
      newThumb.loadMovie("one_img.jpg");


      newThumb.onRelease = function() {
      this._alpha = 50;
      };

      -----------------------------------------------

      Any help or suggestions would be great! Thanks!