混合闪光灯多个声音 [英] Mix multiple sounds in flash

查看:248
本文介绍了混合闪光灯多个声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个闪光​​的物体的声音,我想在这些声音文件混合不同的点来创建一个单一的杰作,其保存为MP3。
我在网上看到各种各样的混音器的应用,想知道是什么区(县)看看才能够做这自己。

I have several sound objects in flash, I would like to mix different points in these sound files to create a single masterpiece and save it as an mp3. I've seen various "mixer" applications online and would like to know what area(s) to look at to be able to do this myself.

推荐答案

要制造出任何你想创建音乐,或者你有你的WAV和MP3文件导入到库中,并将其拖到电影区域将它们添加到您的时间表。使用多个层来帮助组织他们。为了测试你的歌了,你可以按Enter从任何运行框架上的期待的结束。

To create the music or whatever you're trying to create, you'll have to Import your wav and mp3 files into your library and drag them onto the movie area to add them to your timeline. Use multiple layers to help organize them. To test your song out you can hit Enter to run from whatever frame your on forward to the end.

不要忘了你,如果你在你的时间轴选择的声音可以应用一些效果。此外,还有在属性面板上的编辑按钮(默认在底部),可以使用修剪到任何你需要他们做你的音频剪辑。

Don't forget you have a few effects you can apply if you have the sound selected in your timeline. Also, there's an "Edit" button on the Properties panel (at the bottom by default) you can use to trim your audio clips to whatever you need them to be.

一旦你做,你有你的Flash影片发布到SWF。然后,你必须使用SWF到MP3播放器像这样的:

Once you're done, you'll have to publish your flash movie to a swf. Then you'll have to use a Swf to Mp3 converter like this one:

http://3d2f.com/programs/ 25-187-SWF到MP3转换器,download.shtml

(我不是单证员这个软件,它只是一个例子)

(I'm not vouching for this software, it's just an example)

如果你想做到这一切从code,使用ActionScript 2.0,你将不得不提前艰难的道路。

If you're trying to do all of this from code, with ActionScript 2.0, you're going to have a hard road ahead.

从本质上讲,你就必须建立一个数组满你已经加载到你的电影修剪声音字节。然后在你的onEnterFrame不得不打电话给他们在适当的时间:

Essentially, you'd have to build an array full of trimmed sound bytes you've loaded into your movie. Then in an onEnterFrame you'd have to call them at the appropriate times:

(我根本没有测试这个code,它只是给你一个基本的想法,大声笑)

(I didn't test this code at all, it's just to give you a basic idea, lol)

var sounds = new Array();
var s0 = new Sound(this);
s0.attachSound("someLinkedSound0");
sounds.push({sound : s0, frame : 100});
var s1 = new Sound(this);
s1.attachSound("someLinkedSound1");
sounds.push({sound : s1, frame : 200});
var s2 = new Sound(this);
s2.attachSound("someLinkedSound2");
sounds.push({sound : s2, frame : 300});
var currentSound = 0;

this.onEnterFrame = function(e) {
    if(currentSound < sounds.length && sounds[currentSound].frame == _root.currentFrame) {
        sounds[currentSound].start(0,1);
        currentSound++;
    }
    frame++;
}

我的示例使用导入到您的图书馆和链接的声音,但你可以通过URL加载一个声音带着些许修改。

My example uses sounds that are imported to your library and "linked" but you can load a sounds via url with a little modification.

您也可以完成一个从setInterval的调用,如果由于你的应用程序的结构的onEnterFrame不被调用的方法类似。
我希望帮助。

You could also accomplish something similar with a method called from a setInterval, if due to your application's structure onEnterFrame isn't being called. I hope that helps.

这篇关于混合闪光灯多个声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆