请问flash中的loading怎么编写?怎么测试下载了多少?请问flash中的loading怎么编写?怎么测试下载了多少?如果是as,请问怎么样编写?

热心网友

1。完成你的主动画后,插入一个场景(Insert/Scene),命名为load。2。选择Windows/Inspectors/Scene 将load设为主场景。3。作一个能表示进度条的movie clip。现在以下面的效果为例子,动画的长度为100帧(必要),在第一帧上双击,在action上加上"stop"。4。把这个表示进度条的movie clip拖到load场景上的第一帧,在场景上双击这个movie clip,在instance name上填"loader"。然后在时间线的第一帧上双击,在action里加上如下语句。Set Variable: "FrameLoad" = Int ((100 / _totalframes )* _framesloaded)Set Variable: "FrameLoad1" = FrameLoad&"%"Begin Tell Target ("/loader")Go to and Stop (/:FrameLoad)End Tell TargetIf (Frameload = 100)Go to and Play (主动画所在的场景名,1)End If。