永发信息网

AS3 FLASH 怎么把左上角的数字移动到右下角改那个参数求救!!!

答案:1  悬赏:60  手机版
解决时间 2021-08-15 12:06
  • 提问者网友:那叫心脏的地方装的都是你
  • 2021-08-15 08:03
function loadImg(_mNum) {
 _mcl = new MovieClipLoader();
 screen._alpha = 0;
 _mcl.onLoadInit = function() {
  screen.onEnterFrame = function() {
   this._alpha = this._alpha+1.000000E-001*(100-this._alpha);
  };
 };
 _mcl.addListener(this);
 _mcl.loadClip(link+_mNum+format, screen.screen_load);
}
// End of the function
startX = 15;
startY = 5;
space = 2;
link = "element1/img";
format = ".jpg";
menuTXT = [];
menuTXT[0] = "1";
menuTXT[1] = "2";
menuTXT[2] = "3";
menuTXT[3] = "4";
menuTXT[4] = "5";
menuTXT[5] = "6";
menuTXT[6] = "7";
menuTXT[7] = "8";
menuTXT[8] = "9";
menuTXT[9] = "10";
menuTXT[10] = "11";
menuTXT[11] = "12";
mainLink = [];
mainLink[0] = " http://www.world-missmodel.com/";
mainLink[1] = " http://www.world-missmodel.com/";
mainLink[2] = " http://www.idea2002.cn/bm2/index+.asp";
mainLink[3] = " http://www.world-missmodel.com/";
mainLink[4] = " http://www.world-missmodel.com/";
mainLink[5] = " http://www.world-missmodel.com/";
mainLink[6] = " http://www.world-missmodel.com/";
mainLink[7] = " http://www.world-missmodel.com/";
mainLink[8] = " http://www.world-missmodel.com/";
mainLink[9] = " http://www.idea2002.cn/";
mainLink[10] = " http://www.world-missmodel.com/";
mainLink[11] = " http://www.world-missmodel.com/";
mainLink[12] = " http://www.world-missmodel.com/";
mTag = [];
mTag[0] = "_self";
mTag[1] = "_self";
mTag[2] = "_blank";
mTag[3] = "_self";
mTag[4] = "_self";
mTag[5] = "_self";
mTag[6] = "_self";
mTag[7] = "_self";
mTag[8] = "_self";
mTag[9] = "_blank";
mTag[10] = "_self";
mTag[11] = "_self";
mTag[12] = "_self";
openNum = 0;
len = menuTXT.length;
menu._visible = false;
spaceX = menu._width+space;
var i = 0;
while (i<len) {
 _mc = menu.duplicateMovieClip("menu"+i, i);
 _mc._x = startX+spaceX*i;
 _mc._y = startY;
 _mc.no = i;
 _mc.onRollOver = function() {
  openNum = this.no;
  loadImg(openNum);
  screen.mask_mc.maskImg();
  timer.gotoAndStop(1);
 };
 _mc.onRollOut = function() {
  timer.play();
 };
 _mc.onEnterFrame = function() {
  this.txt_mc.a = menuTXT[this.no];
  if (openNum == this.no) {
   this.nextFrame();
  } else {
   this.prevFrame();
  }
  // end else if
 };
 _mc.onRelease = function() {
  getURL(mainLink[this.no], mTag[this.no]);
 };
 btn.onRollOver = function() {
  timer.gotoAndStop(1);
 };
 btn.onRollOut = function() {
  timer.play();
 };
 btn.onRelease = function() {
  getURL(mainLink[openNum], mTag[openNum]);
 };
 ++i;
}
// end while
loadImg(openNum);
btn._x = screen._x;
btn._y = screen._y;
btn._width = screen._width;
btn._height = screen._height;
bg._x = screen._x;
bg._y = screen._y;
bg._width = screen._width;
bg._height = screen._height;
MC 名称是 menuTXT
最佳答案
  • 五星知识达人网友:十年萤火照君眠
  • 2021-08-15 08:21

startX = 15;
startY = 5;


修改,XY坐标值,试试

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯