以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML源码及示例(仅原创和转载) 』  (http://bbs.xml.org.cn/list.asp?boardid=32)
----  [求助]大家帮我看下这段代码是什么意思?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=84084)


--  作者:hanker110
--  发布时间:3/31/2010 10:55:00 AM

--  [求助]大家帮我看下这段代码是什么意思?
stop ();
Stage.scaleMode = "noScale";
Stage.align = "TL";
_mc._lockroot = true;
_mc._alpha = 0;
movie = "flashindex.swf";
_mc.loadMovie(movie);
var iBytes = 0;
onEnterFrame = function ()
{
    iBytes = _mc.getBytesLoaded() / _mc.getBytesTotal() * 100;
    if (isNaN(iBytes))
    {
        _loader._loadbar.Wpos = 0;
        iBytes = 0;
    } // end if
    iBytes = Math.round(iBytes);
    _loader._loadbar.Wpos = iBytes;
    _loader._txt = Math.round(_loader._loadbar._width) + "%";
    _loader._txtT.autoSize = "Center";
    if (Math.round(_loader._loadbar._width) == 100)
    {
        onEnterFrame = null;
        new mx.transitions.Tween(_loader, "_alpha", normal, _loader._alpha, 0, 2.000000E-001, true);
        _mc._alpha = 100;
        _mc.play();
    } // end if
};
setStage = function ()
{
    new mx.transitions.Tween(_loader, "_x", normal, _loader._x, (Stage.width - 150) / 2, 3.000000E-001, true);
    new mx.transitions.Tween(_loader, "_y", normal, _loader._y, (Stage.height - 150) / 2, 3.000000E-001, true);
};
var myListener = new Object();
myListener.onResize = setStage;
Stage.addListener(myListener);
setStage();
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
39.063ms