四旋翼控制算法概述:这些flash的命令是什么意思?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/04 05:24:03
on (press) {
gotoAndPlay(2);
_root.lastitem = _root.currentitem;
_root.currentitem = this._name;
_root[_root.lastitem].gotoAndPlay("close");
_root.move.gotoAndStop(2);
}
_root.lastitem=_root.currentitem
_root.代表什么/还有 lastitem是指什么?

当(按扭按下){
gotoAndPlay(2); (跳转并播放时间轴第二帧)
_root.lastitem(变量)=_root.currentitem(变量);
_root.currentitem=this._name;(当前剪辑的实例名,这个变量存储了实例名)
_root.[_root.lastitem](根级下名为_root.lastitem的剪辑).gotoAndPlay("close");(跳到并播放名为close这个帧.)
_root.move.gotoAndStop(2);
(根级下move这个剪辑跳转到第二帧)
}