FLASH高手请帮我翻译下这个代码
onClipEvent(load){total=_root.getBytesTotal();}onClipEvent(enterFrame){loaded=_root.g...
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
onClipEvent(load) {
num=5;
}
on(rollOver) {
if(_root.link<>num) {
_root.item5.gotoAndPlay("s1");
}
}
on(rollOut, releaseOutside) {
if(_root.link<>num) {
_root.item5.gotoAndPlay("s2");
}
}
on(release) {
if(_root.link<>num and _root.animation==1) {
_root.animation = 0;
_root["item"+_root.link].gotoAndPlay("s2");
_root.link=num;
_root.play();
}
} 展开
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
onClipEvent(load) {
num=5;
}
on(rollOver) {
if(_root.link<>num) {
_root.item5.gotoAndPlay("s1");
}
}
on(rollOut, releaseOutside) {
if(_root.link<>num) {
_root.item5.gotoAndPlay("s2");
}
}
on(release) {
if(_root.link<>num and _root.animation==1) {
_root.animation = 0;
_root["item"+_root.link].gotoAndPlay("s2");
_root.link=num;
_root.play();
}
} 展开
1个回答
展开全部
onClipEvent (load) {
//影片加载完第一帧时运行代码
total = _root.getBytesTotal();
//设置变量
}
onClipEvent (enterFrame) {
//每帧运行一次代码
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
//上面这段代码是用来显示加载进度的....
//影片加载完第一帧时运行代码
total = _root.getBytesTotal();
//设置变量
}
onClipEvent (enterFrame) {
//每帧运行一次代码
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
//上面这段代码是用来显示加载进度的....
追问
那下面的呢
追答
下面的都是些按钮事件,
on(rollOver) {
//鼠标移过时运行代码
on(rollOut, releaseOutside) {
//鼠标离开和释放时运行代码
on(release) {
//鼠标点按下时运行代码
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询