3 Replies Latest reply on Dec 29, 2006 10:42 AM by Jaap_Kooiker

    RollOver does not work

    Swirlsky
      Hello
      I have a problem with the RollOver event.
      My task is the following:

      To create a MovieClip with 50% alpha:

      this.createEmptyMovieClip("mcPic", this.getNextHighestDepth()); mcPic._x = 10; mcPic._y = 10; mcPic._alpha = 50;

      To load an image in it:, (and resize the picture):

      var picListener:Object = new Object();
      picListener.onLoadInit = function(target_mc:MovieClip) {
      target_mc._width = 100;
      target_mc._height = 75;
      }

      var picLoader:MovieClipLoader = new MovieClipLoader();
      picLoader.addListener(picListener);

      picLoader.loadClip(" http://www.sages.hu/galeria/images/kep1.jpg", mcPic);


      It works up to this point.

      And then I would like to change the alpha of mcPic to 100% when the mouse rolls over:

      mcPic.onRollOver = function() {
      mcPic._alpha = 100;
      }


      ..but it does not work. What do I wrong?