//////////////////创建大图片影片剪辑//////////////////
this.createEmptyMovieClip("dtp_mc", this.getNextHighestDepth());
dtp_mc._x = 0;
dtp_mc._y = 80;
dtp_mc.setMask(mask_mc);
dtp_mc.createEmptyMovieClip("dgdtp_mc", this.getNextHighestDepth());
var image_mcl:MovieClipLoader = new MovieClipLoader();
anzs_mc.swapDepths(dtp_mc);
_btn._visible = 0;
/////////////循环语句///////////
for (i=4; i>0; i--) {
//////////////////载入外部图片及坐标//////////////////
dtp_mc.dgdtp_mc.duplicateMovieClip("tp"+i+"_mc", i);
this.dtp_mc["tp"+i+"_mc"]._x = 320*(i-1)+115;
image_mcl.loadClip("d"+i+".jpg", "dtp_mc.tp"+i+"_mc");
//////////////////按钮的坐标/////////////////
_btn.duplicateMovieClip("_btn"+i, i);
this["_btn"+i]._x = 20*(i-1)+360;
anzs_mc._x = 360;
anzs_mc._y = 300;
this["_btn"+i]._y = 310;
this["_btn"+i]._txt.text = i;
//////////////////按下按钮大图缓冲移入////////////
this["_btn"+i].id = i;
this["_btn"+i].onRelease = function() {
clearInterval(tzid);
j = this.id;
tzid = setInterval(tz, 3000);
bb = this._x;
aa = this.id;
dtp_mc.onEnterFrame = function() {
dtp_mc._x -= ((aa-1)*320+dtp_mc._x)/4;
anzs_mc._x -= (anzs_mc._x-bb)/4;
if (Math.floor(dtp_mc._x) == -(aa-1)*320) {
delete dtp_mc.onEnterFrame;
}
};
};
}
////////////////自动播放/////////////////
j = 1;
function tz() {
j++;
dtp_mc.onEnterFrame = function() {
if (j == 5) {
j = 1;
}
dtp_mc._x -= ((j-1)*320+dtp_mc._x)/4;
anzs_mc._x = -dtp_mc._x/16+360;
if (Math.floor(dtp_mc._x) == -(j-1)*320) {
delete dtp_mc.onEnterFrame;
}
};
}
tzid = setInterval(tz, 3000);
解析下面代码的{图片与按钮}的坐标的定义
答案:1 悬赏:0 手机版
解决时间 2021-05-07 10:07
- 提问者网友:听门外雪花风
- 2021-05-07 03:14
最佳答案
- 五星知识达人网友:躲不过心动
- 2021-05-07 04:15
图片坐标:(0,80)
dtp_mc._x = 0;
dtp_mc._y = 80;
按钮没坐标
(20*(i-1)+360,300)
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯