楼梯踏步瓷砖开槽图:问一下FLASH activescript 问题

来源:百度文库 编辑:神马品牌网 时间:2024/04/20 13:09:51
onEnterFrame = function ()
{
var _l5 = _root.getBytesLoaded();
var _l4 = _root.getBytesTotal();
if (_l5 >= _l4)
{
this._visible = 0;
_root.play();
_parent.logo.gotoAndPlay(2);
}
else
{
load_txt = int(_l5 / (_l4 / 100)) + "%";
} // end if
};

很奇怪! FLASH运行后.loading是好使的!只是读出来只显到25% 就不让下进了!不知道为什么

onClipEvent (enterFrame)
{
percentLoaded = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
this.gotoAndStop(percentLoaded);
if (percentLoaded > 99)
{
_parent.gotoAndStop("ready");
}
}
给你个正解尝试一下吧