引用:
原帖由 libins 于 2008-6-12 18:21 发表 
再对image._x加个判断语句,
if(image._x最右边的x){
image._x = 最右边的x
}
我放上去还是没有用. 我想问一下,"image._x最右边的x" 这个X应该写什么呢?
我的场景的大小是200*400. 图片的大小是400*400.影片剪辑的名称为image
代码写在帧上.
stop();
step=10;
stagew=Stage.width;
stageh=Stage.height;
_root.onEnterFrame=function(){
if(_root._xmouse>0&&_root._xmouse<stagew&&_root._ymouse>0&&_root._ymouse<stageh){
image._x=image._x-(_root._xmouse-stagew/2)/step;}
}
if(image._x<0){
image._x =0
}else if(image._x>200){
image._x = 200
}
我想问一下. 最左边的x和最右边的x指的是什么呢??