返回列表 回复 发帖

比较简单的真实音乐波谱(有源文件)

就这几行

for (i=0; i<=17; i++) {
eval("mc"+i)._height = 0;
}
this.onEnterFrame = function() {
for (i=0; i<=17; i++) {
  eval("mc"+i)._height = Number(this["s"+i])*5;
}
};

哈哈,音频信息是用SwiftMP3得到的。

[ 本帖最后由 螺丝 于 2007-10-19 05:37 编辑 ]

biao.swf (64.43 KB)

biao2.part1.rar (976.56 KB)

biao2.part2.rar (976.56 KB)

biao2.part3.rar (976.56 KB)

biao2.part4.rar (828.09 KB)

完了,源文件5M,传不上去
只能截图了

场景放18个条分别是mc0~17

未命名1.JPG

这是第一针的代码

未命名2.JPG

时间轴,好多代码的那一层就是SwiftMP3的功劳

未命名3.JPG
原帖由 螺丝 于 2007-10-19 12:59 发表
完了,源文件5M,传不上去
可以分卷上传
加强版

for (i=0; i<=17; i++) {
eval("mc"+i)._height = 0;
eval("top"+i)._y = bot._y-5;
this["speed"+i] = 0.3;
}
this.onEnterFrame = function() {
for (i=0; i<=17; i++) {
  eval("mc"+i)._height = Number(this["s"+i])*5;
  if (eval("top"+i)._y>=bot._y-eval("mc"+i)._height-5) {
   eval("top"+i)._y = bot._y-eval("mc"+i)._height-5;
   this["speed"+i] = 0.3;
  } else {
   this["speed"+i] += 0.2;
   eval("top"+i)._y += this["speed"+i];
   if (eval("top"+i)._y>=bot._y-5) {
    eval("top"+i)._y = bot._y-5;
   }
  }
}
};

波形.swf (64.81 KB)

提示: 作者被禁止或删除 内容自动屏蔽
返回列表