5 Replies Latest reply on Nov 16, 2007 9:58 PM by kglad

    targeting problem after adding function to movieclip

    wozwasted
      //can some1 tell me where Im going wrong
      // this targets the timeline in the 'mcImage' timeline (which is what I want)

      mcImage.onRollOver=function(){
      this.swapDepths(this.getNextHighestDepth());
      this.gotoAndPlay(2);
      }

      // but when i try to make a function ( so I can reuse it) it now targets the main timeline... how do I get it to target the 'mcImage' timeline

      function mOver(){
      this.swapDepths(this.getNextHighestDepth());
      this.gotoAndPlay(2);
      }

      mcVan.onRollOver=function(){
      mOver();
      }