4 Replies Latest reply on Mar 28, 2007 9:56 PM by ggshow

    help with this code please

    dc12
      Hi, I'm new to flash and can't figure out how to make this code work. It worked when it was on the movie clip,
      but when I tried to put it in the first frame of the file, it gives me this error:
      Expected a field name after '.' operator.

      Thanks!!!


      thumbHolder.onClipEvent(load){

      thumbHolder.onClipEvent(load){
      this._alpha=0;
      this.newY = this._y;
      }
      thumbHolder.onClipEvent(enterFrame){
      if(this._alpha<100){
      this._alpha=this._alpha+4;
      }
      if(_y != newY) {
      diff = newY - _y;
      _y += diff / 4;
      if(Math.abs(diff) < 1) {
      _y = newY;
      }
      } else {
      // if(newAlpha == 0) this._visible = false;
      }
      }