8 Replies Latest reply on Jun 16, 2006 4:22 PM by gold987987987

    No static attribute???

    gold987987987 Level 1
      I'm in big trouble if I can't solve this quick!! Here is the error code I'm getting:

      **Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 1: The property being referenced does not have the static attribute.
      LoadVars.onLoad {

      **Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 5: The property being referenced does not have the static attribute.
      LoadVars.onLoad (enterFrame) {

      Here is the Action Script thats causing this error:

      LoadVars.onLoad {
      accel = _root.accel;
      rate = _root.rate;
      }
      LoadVars.onLoad (enterFrame) {
      y = y*accel+(_root.ykoord-_y)*rate;
      _y += y;
      x = x*accel+(_root.xkoord-_x)*rate;
      _x += x;
      if (Math.abs(_root.ykoord-_y)<1) {
      _y = _root.ykoord;
      }
      if (Math.abs(_root.xkoord-_x)<1) {
      _x = _root.xkoord;
      }
      }

      My website is not functioning and I believe this to be the problem. I'm using FLASH 8 PRO. I get this same error whether I publish in FP 6, 7, 8 and even AS 1.0 or 2.0.

      Please help!!!

      Thanks,