flash进度条的制作!!!!!
在网上下了个进度条源代码,想添加到自己的flsh中。。。本地测试好像成功了,可传到网上一看,进度条根本起不了作用。(进度条的没有和实际下载情况相联系起来)主场景第二帧:p...
在网上下了个进度条源代码,想添加到自己的flsh中。。。
本地测试好像成功了,可传到网上一看,进度条根本起不了作用。(进度条的没有和实际下载情况相联系起来)
主场景第二帧:play():
mc代码:
n = 12;
stop ();
_parent.stop();
onEnterFrame = function ()
{
oMcE = "pl" + ((n + 1) % 12 + 1);
oMcD = "pl" + ((n + 2) % 12 + 1);
oMcC = "pl" + ((n + 3) % 12 + 1);
oMcB = "pl" + ((n + 4) % 12 + 1);
oMcA = "pl" + ((n + 5) % 12 + 1);
cycle[oMcA]._alpha = 100;
cycle[oMcB]._alpha = 85;
cycle[oMcC]._alpha = 70;
cycle[oMcD]._alpha = 55;
cycle[oMcE]._alpha = 40;
cycle2[oMcA]._alpha = 50;
cycle2[oMcB]._alpha = 42;
cycle2[oMcC]._alpha = 35;
cycle2[oMcD]._alpha = 27;
cycle2[oMcE]._alpha = 20;
++n;
percentLoaded = Math.round(_parent.getBytesLoaded() / _parent.getBytesTotal() * 100);
perc = int(n / 2);
cycle._rotation = 10;
cycle2._rotation = cycle2._rotation - 2;
if (perc >= 100)
{
_parent.gotoAndStop(2);
} // end if
}; 展开
本地测试好像成功了,可传到网上一看,进度条根本起不了作用。(进度条的没有和实际下载情况相联系起来)
主场景第二帧:play():
mc代码:
n = 12;
stop ();
_parent.stop();
onEnterFrame = function ()
{
oMcE = "pl" + ((n + 1) % 12 + 1);
oMcD = "pl" + ((n + 2) % 12 + 1);
oMcC = "pl" + ((n + 3) % 12 + 1);
oMcB = "pl" + ((n + 4) % 12 + 1);
oMcA = "pl" + ((n + 5) % 12 + 1);
cycle[oMcA]._alpha = 100;
cycle[oMcB]._alpha = 85;
cycle[oMcC]._alpha = 70;
cycle[oMcD]._alpha = 55;
cycle[oMcE]._alpha = 40;
cycle2[oMcA]._alpha = 50;
cycle2[oMcB]._alpha = 42;
cycle2[oMcC]._alpha = 35;
cycle2[oMcD]._alpha = 27;
cycle2[oMcE]._alpha = 20;
++n;
percentLoaded = Math.round(_parent.getBytesLoaded() / _parent.getBytesTotal() * 100);
perc = int(n / 2);
cycle._rotation = 10;
cycle2._rotation = cycle2._rotation - 2;
if (perc >= 100)
{
_parent.gotoAndStop(2);
} // end if
}; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询