I'm creating something like incredibox, Need Help

Im trying to build an flash application like >Incredibox< It allow user to drag and drop to play music, and all the music synchronizing together, but it is possible to build with AC3, the only question I wanted to ask is the recording and saving function. How to make the record feature to record the background music which follow by user’s sequence? And how to allow user to save the sequence as a .mp3 output? Do it need something like MySQL database to achieve it? Or all the feature like Incredibox can totally done within Adobe Flash?

Comment and opinion are welcome.

While I am not directly familiar with this, Flash provides a lot of advanced functionality for working with audio: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html You can merge the audio streams together into one output that you can then save.

For the saving part of it, do you want to leave a copy of the songs on the server (tied to a user’s account)? Or do you want just give users the option of downloading the song once they’ve created it?

For the first choice where you leave songs on the server, something like a database is probably the right thing. For the second choice, you don’t need anything like that.

:slight_smile:

Thanks for your explanation, in this case i would like to build this application for entertain purpose, so this is basically “offline” thing, and no server site require. But i have no idea how to implement the recording and save function. Because i need to capture the sequence input by user, for example:

1 - user choose drum beat
2 - user choose guitar (while the drum beat still playing)
3 - user choose piano ( while drum and guitar still playing)

so the recording output will be exactly following the order that user input. From my opinion, is that use bytearray to capture the mix playing, and simply use file-reference function to save it locally?

Please correct me if i’m in the wrong side of thinking.

That sounds reasonable to me, but I haven’t played with the Sound classes in a long time to know if there is a better way to do this. Maybe @senocular or @krilnon may know more :smile:

It’s the right approach.

Thanks! So thats mean i can get it done within ActionScript itself? and no need other programming language to support?

Yup!

1 Like

Thank you guys so much! Appreciate !