stop ();
onEnterFrame = function ()
{
var _loc3 = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
var _loc2 = int(_loc3);
_root.loading.loadtxt1.a1.text = _loc2 + 1 + "%";
_root.loading.gotoAndStop(_loc2 + 1);
if (_loc2 == 100)
{
_root.loading.loadtxt1.a1.text = "100%";
delete onEnterFrame;
_root.gotoAndPlay(2);
} // end if
};
这是第一帧的代码
function slideMove(select)
{
for (var _loc3 = 0; _loc3 < slideNum; ++_loc3)
{
var _loc2 = this["slideMc" + _loc3];
_loc2._x = _loc2._x + speed * (pos[select][_loc3] + startPos - _loc2._x);
} // end of for
} // End of the function
stop ();
var slideNum = 6;
var speed = 1.500000E-001;
var slideWidth = 207;
var btnSpace = 70;
var frameTime = 100;
var timer = 1;
var select = 6;
var slidebtn = false;
var i = 1;
var startPos = this.slideMc0._x;
pos = new Array();
pos[6] = new Array(0, 70, 140, 210, 280, 350);
var i = 5;
while (i > 0)
{
pos = new Array();
var j = 0;
while (j < 6)
{
if (j >= i)
{
pos[j] = pos[6][j] + slideWidth;
}
else
{
pos[j] = pos[6][j];
} // end else if
++j;
} // end while
--i;
} // end while
var i = 0;
while (i < slideNum)
{
var name01 = this["slideMc" + i];
name01.zk = false;
name01.onRollOver = function ()
{
if (!this.zk)
{
for (var _loc4 = 0; _loc4 < slideNum; ++_loc4)
{
var _loc3 = _root["slideMc" + _loc4];
if (_loc3 != this)
{
_loc3.gotoAndStop(1);
_loc3.zk = false;
} // end if
} // end of for
this.gotoAndPlay(2);
this.zk = true;
select = int(this._name.slice(7)) + 1;
} // end if
};
++i;
} // end while
this.onEnterFrame = function ()
{
slideMove(select);
};
var url = new Array();
var i = 0;
while (i < slideNum)
{
url = "
http://www.wushuangol.com/obt_zhuanti/pages_0" + (i + 1) + ".html";
++i;
} // end while
var i = 0;
while (i < slideNum)
{
var name01 = this["slideMc" + i];
name01.i = i;
name01.onRelease = function ()
{
getURL(url[this.i], "_blank");
};
++i;
} // end while
回复 更多评论