you can try this flash for the sound in your game: http://code.google.com/p/js-blaster/source/browse/trunk/js-blaster/src/game/DynaSound.swf [http://code.google.com/p/js-blaster/source/browse/trunk/js-blaster/src/game/DynaSound.as - the source]. here you can see howi use it: http://code.google.com/p/js-blaster/source/browse/trunk/js-blaster/src/game/js/common/util.js - check the DynaSound class line 74. if you want to see it in action play my bomberman game here: http://www.e-forum.ro/bomberman/dynagame.html
hope it helps On Tue, Jun 29, 2010 at 6:54 AM, Trevor Orr <[email protected]> wrote: > Not sure if you know how to play cribbage but during the play of the cards, > the total starts 0 and each in turn plays card and add the value to the > total until the total reaches 31, if the player does not have a card to play > that would be 31 or less the next player goes, once the total reaches 31 or > no players can play a card then the total goes back to 0 and play starts all > over again until all players have played all their cards. > > So the sounds play as a player plays a card, I play a sound file saying the > total of the cards, so there is sound play about every second or so that is > about 1/2 a second long for about 30 - 45 seconds (that is about how long it > takes to play out all cards) > > Also at the end of the play depending on the points in the human players > hand I play a different random sound (different ranges of cheering or booing > for a bad hand which is about 1-2 seconds long). > > Also there is a random card shuffle played at when the cards are dealt to > each player which is also about 1-2 seconds long. > > Maybe I will need to RTFM for MooSound very closely to see if I am doing > something stupid but from what I saw from examples and docs I think I am > using it correctly. > > > > On Mon, Jun 28, 2010 at 1:59 PM, Marc Weber <[email protected]> wrote: >> >> > I guess I could take MooSound out but I really like the audio during the >> > game, my problem now I guess is that I know very little about flash and >> > have >> > no idea about where to begin debugging this. >> > >> > Any suggestions? >> Without knowing anything about MooSound you should tell more about your >> usage (eg how often do you play how many sounds etc).. >> >> If it does not work using the same MooSound object over and over again >> you may want to replace it or such. I don't know much about it. >> >> It shouldn't be too hard to create some test cases to see which usage >> causes the problems. >> >> Marc Weber > > -- jgabios http://bash.editia.info
