flash代码谁帮我看下,谢谢了

[复制链接]
查看11 | 回复2 | 2009-4-8 10:30:31 | 显示全部楼层 |阅读模式
fscommand("allowscale", "false");
MovieClip.prototype.initShift = function(elastic, xstart, ystart) {
k = .2;
xhome = _x;
yhome = _y;
if (elastic == null) {
elastic = .9;
}
xelastic = elastic;
yelastic = elastic;
xinitialShift = xstart;
yinitialShift = ystart;
_x += xinitialShift;
_y += yinitialShift;
};
MovieClip.prototype.Shift = function() {
xmov = (xHome-_x)*k+xmov*xelastic;
ymov = (yHome-_y)*k+ymov*yelastic;
_x += xmov;
_y += ymov;
};
stop();
————————————
上面的代码为啥只能在发布设置flash5的版本下才能实现效果,flash8就出错。要怎么改才能在flash8版本实现?谢谢了

回复

使用道具 举报

千问 | 2009-4-8 10:30:31 | 显示全部楼层
我也不是很清楚,不过应该是代吗的版本太低了 可能是AS1.0的 改成AS2.0的应该就行了,怎么改我不知道,我也是初学者...
回复

使用道具 举报

千问 | 2009-4-8 10:30:31 | 显示全部楼层
我也遇到这种情况,但只有在6中好用,8中就完了....
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行