请问FLASH前翻页后翻页按钮的代码是什么?

来源:百度知道 编辑:UC知道 时间:2024/05/15 11:15:31
请大家告诉我在flash8.0中前翻页按钮和后翻页按钮的源代码是什么?我想做一个Flash书,谢谢了!!!

step=0 //设定开始页面 是第0页面
onEnterFrame=function(){
mc._x+=(0-(400*step)-mc._x)/5 //第step页的时候 背景层 和被遮蔽层的运动终点=0-(400*step)
mc_._x+=(0-(400*step)-mc_._x)/10 //这个是被遮蔽层的运动 移动速度比 背景层慢
}
button_next.onRelease=function()
{if(step<n)step++} //后翻页 按钮 n=页数
button_prev.onRelease=function()
{if(step>0)step--} //前翻页按钮 大于0才能向前翻页

注意 : 遮蔽层 完整赋值 背景层的mc
定义 元件实例名为 mc_

网上有翻页组件下载