Flash变速滑动菜单剖析教程
日期:11-23  来源:
中国设计秀 作者:cnwebshow.com
arP中国设计秀
follow.onEnterFrame = function() { arP中国设计秀
//因为follow的X坐标是实时在变化的,因此,我们需要每次都取得它的X坐标。 arP中国设计秀
startX=follow._x; arP中国设计秀
//moveX用来计算每回移动的距离。endX是所要移动到的按钮的X坐标。startX便是follow的当前X坐标了 arP中国设计秀
moveX=(endX-startX)/2; arP中国设计秀
//重新设置follow的X坐标 arP中国设计秀
this._x=moveX+this._x; arP中国设计秀
}; arP中国设计秀
arP中国设计秀
arP中国设计秀
arP中国设计秀
现在再确认一下你所键入的代码,并且确认实例名称已经设定,并且正确。就可以按Ctrl+Enter来预览一下了。 arP中国设计秀