1 Reply Latest reply on Oct 6, 2006 11:18 AM by

    MovieClip onRollOver Problem

    ricky1980
      Dear All,

      I add the following codes in frame1 in main time line , but it did not work when mouse over the photo 1.jpg


      this.createEmptyMovieClip("mc",1);
      with(mc) {
      _alpha=0;
      loadMovie("1.jpg");
      }
      mc.onRollOver=function() {
      this._alpha=100;
      }


      Regards,

      Wing
        • 1. MovieClip onRollOver Problem
          First off when writing code make sure to try and stay away from the "with" statement if possible and do not name your urls/linkage identifiers starting with numbers this will cause errors.

          But you can find the complete explanation to your problem on the loadMovie function in the help files within flash. Meaning you should make sure to nest a movieclip within a movieclip to use the loadMovie function and if you are loading swfs make sure to use _lockroot = true.