
flash花瓣飘落一直落个不停,要怎么改代码才能让它飘落一段时间后停止 30
functiononEnterFrame(){BouncerIndex++;if(BouncerIndex%2==0){this.attachMovie("Bouncer...
function onEnterFrame()
{
BouncerIndex++;
if (BouncerIndex % 2 == 0)
{
this.attachMovie("Bouncer", "Bouncer" + BouncerIndex, BouncerIndex);
} // end if
if (BouncerIndex >= MaxBouncer)
{
BouncerIndex = 0;
} // end if
} // End of the function
MaxBouncer = 60;
BouncerIndex = 0;
//
该在哪里加帧啊? 展开
{
BouncerIndex++;
if (BouncerIndex % 2 == 0)
{
this.attachMovie("Bouncer", "Bouncer" + BouncerIndex, BouncerIndex);
} // end if
if (BouncerIndex >= MaxBouncer)
{
BouncerIndex = 0;
} // end if
} // End of the function
MaxBouncer = 60;
BouncerIndex = 0;
//
该在哪里加帧啊? 展开
展开全部
setTimeout(functionname,1000);
这个是过1秒钟执行函数functioname.
写个全局变量b,初始值为true,functioname里写b=false;
你在下落的函数里判断一下b的值,是true 就执行。否则停止。
这个是过1秒钟执行函数functioname.
写个全局变量b,初始值为true,functioname里写b=false;
你在下落的函数里判断一下b的值,是true 就执行。否则停止。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询