AS3.0 控制时间轴上动作
1:addFrameScript()方法
//允许你指定在flash player播放头播放到指定的位置时触发事件.
mc.addFrameScript(帧位置,调用函数);
2:鼠标的点击事件
btn.addEventListener(MouseEvent.鼠标事件,调用事件)
事件定义
function xxx(event:MouseEvent):void{
}
3:动态修改舞台的帧频率
stage.frameRate
4:获取场景和便签的的相关属性
scenes.length 获取文件场景的数量
currentScene.name 当前场景名称
currentScene.numFrames 当前场景的帧数
currentScene.labels.length 当前场景的标签数
scenes[1].labels[0].name 指定场景数组和标签数组中的中的名字
scenes[1].labels[0].frame 获取指定场景标签的帧位置
pages.currentLabels.length 指定影片中标签数量
pages.currentLabels[numLabels-1].name 指定影片标签位置的标签名
AS3中 显示对象列表操作
1:addChild(mc) 添加对象到舞台
2:swapChildren(mc1,mc2); 两对象交互层级
3: setChildIndex(mc,ind
1:addFrameScript()方法
//允许你指定在flash player播放头播放到指定的位置时触发事件.
mc.addFrameScript(帧位置,调用函数);
2:鼠标的点击事件
btn.addEventListener(MouseEvent.鼠标事件,调用事件)
事件定义
function xxx(event:MouseEvent):void{
}
3:动态修改舞台的帧频率
stage.frameRate
4:获取场景和便签的的相关属性
scenes.length 获取文件场景的数量
currentScene.name 当前场景名称
currentScene.numFrames 当前场景的帧数
currentScene.labels.length 当前场景的标签数
scenes[1].labels[0].name 指定场景数组和标签数组中的中的名字
scenes[1].labels[0].frame 获取指定场景标签的帧位置
pages.currentLabels.length 指定影片中标签数量
pages.currentLabels[numLabels-1].name 指定影片标签位置的标签名
AS3中 显示对象列表操作
1:addChild(mc) 添加对象到舞台
2:swapChildren(mc1,mc2); 两对象交互层级
3: setChildIndex(mc,ind