| 发表于:2007-05-18 02:30:401楼 得分:0 |
var n; var flag; if (!flag) { n = 0; flag = true; } function go() { //假设你的 flash 宽高分别为 550,400 var x = _root._xmouse - 275; var y = _root._ymouse - 200; n += math.sqrt(x*x + y*y) / 100; if (n > _totalframes) n -= _totalframes; gotoandstop(int(n)); } setinterval(go, 100); stop(); | | |
|