Sounds in folder

TimNedvyga

  • Posts: 70
Hi,

I'm working now with music/sound and my composer ask for some... sounds plugs or something like that, in folder(like jump.mp3,walk.mp3 etc.). So he was able to change them(*.mp3) and see result
WebSite - respiregames.com
Twitter - @RespireGames

zerosimms

  • Posts: 710
Sorry, what's your question?

djip123

  • Posts: 987
Are you looking for a converter or what ? O.o
Go check out my website: http://gamecow.net

TimNedvyga

  • Posts: 70
my composer ask for some... sounds plugs or something like that, in folder(like jump.mp3,walk.mp3 etc.). So he was able to change them(*.mp3) and see result

How i can load stream sound from my folder with .swf file?
WebSite - respiregames.com
Twitter - @RespireGames

djip123

  • Posts: 987
I still dont understand what you want, do you want to get sound from a .swf file ? :)
Go check out my website: http://gamecow.net

TimNedvyga

  • Posts: 70
I still dont understand what you want, do you want to get sound from a .swf file ? :)

No, i need to get sound from folder where situated .swf file  :)
WebSite - respiregames.com
Twitter - @RespireGames

djip123

  • Posts: 987
I am so looost in this, hope another can help, because i dont understand anything xD
Go check out my website: http://gamecow.net

zerosimms

  • Posts: 710
Do you want to know the actual location of your mp3's that you have imported into your game?


TimNedvyga

  • Posts: 70
Do you want to know the actual location of your mp3's that you have imported into your game?

No, I need to play sound in my game from folder where situated this .swf... so if composer changed jump.mp3 to another sound, but with the same name(jump.mp3) then game catch this and will play a new one.
WebSite - respiregames.com
Twitter - @RespireGames

zerosimms

  • Posts: 710
Well you cant do that "out of the box" with Stencyl. The sounds are complied into the swf.

You would need to do something like make an tracks.xml and reference that from within your swf. How that is done I don't know but there are plenty of free flash mp3 players that do it so your best bet would be to look at one of those, or search for a tutorial.

 

captaincomic

  • *
  • Posts: 6108
If you just want to replace the sound files, you can look for them in the <stencyl-working-directory>/games/resources/ folder. Then you can edit/overwrite the mp3 files there.

If you really want to stream them (to keep the swf file size low) then like zerosimms said, it can't be done with Stencyl's blocks, you would need to use AS3 code.