1 Reply Latest reply on Jun 18, 2006 8:04 AM by Peter Lorent

    Actionscript Error

    wolfeus
      I am having a problem with an actionscript that I can not figure out. I am not a Flash expert so any help would be appreciated! :)
      Here is the actionscript followed by the error:
      ~~~Script~~~:
      max = length(text);
      X_position = 410;
      Y_MC = 220;
      cursor = 20;
      DY = 0;
      g = 0;
      for (i=1; i<=max; i++) {
      if (substring(text, i, 1) eq "$") {
      DY = Number(DY)+cursor;
      X_position = 100;
      g = 0;
      } else {
      s = substring(text, i, 1);
      _root.attachMovie(1, i, i);
      _root .tx = s;
      _root
      ._x = X_position+8*1.2;
      X_position = _root ._x;
      _root
      ._y = Number(Y_MC)+Number(DY);
      _root ._xscale = 10+size;
      _root
      ._yscale = 10+size;
      g = g+1;
      }
      }

      ~~~Error~~~:
      **Error** Symbol=controller, layer=Layer 1, frame=1:Line 14: Type mismatch.
      _root.attachMovie(1, i, i);