3d50以下是部分代码:
onClipEvent (load) {
 x = 50;
 z = 50;
 centerx = 150;
 centery = 150;
 per = 200;
}
onClipEvent (enterFrame) {
 angle = degree*Math.PI/180;
 degree += 5;
 Xpos = x*Math.sin(angle)+z*Math.cos(angle);
 Zpos = z*Math.sin(angle)-x*Math.cos(angle);
 depth = 1/(1-(Zpos/per));
 if (this._name.substring(4) == 0) {
  centerx += (_root._xmouse-centerx)/2;
  centery += (_root._ymouse-centery)/2;
 } else {
  tempx = 0.65*tempx+0.1*(_parent["ball"+(this._name.substring(4)-1)].centerx-centerx);
  tempy = 0.65*tempy+0.1*(_parent["ball"+(this._name.substring(4)-1)].centery-centery);
  centerx += tempx;
  centery += tempy;
 }
 this._x = depth*Xpos+centerx;
 this._y = centery;
 this._xscale = this._yscale=100*depth;
 this.swapDepths(depth*500);
}



将把此主题..