View Full Version: Sound on the Web in LassieAS. Possible?

lassie >>Technical support >>Sound on the Web in LassieAS. Possible?


<< Prev | Next >>

lightbender- 09-28-2007
Sound on the Web in LassieAS. Possible?
Is it possible to have sound play when the project is hosted on a web server using Lassie AS? I read elsewhere that it has to be embedded in a flash document. But which Flash document? I tried a swf in the _sound directory, which didn't work. Maybe I have to have the mp3 in the stage and not just in the library? Thank you in advance for any help.

bigmac- 09-28-2007

Aaagh yes.... sound. Ho boy... well, after many tireless evenings of plotting and scheming and racking my brain to come up with a sound model, I reveled in brilliance as I worked feverishly on a great sound manager class. When all was said an done, I posted an online demo and discovered that it didn't do squat when running from a web server. I still have no idea why (I was disheartened enough that I never went back to investigate). So, MP3s will play locally off your system using the LassieAS sound engine, but the AS player won't load them online. Good thing it's Friday and time for company happy-hour... otherwise I'd be stressing again over the reminder of that horrific audio class. :D BTW, welcome!

lightbender- 10-01-2007
Source then?
So, would that mean that I would have to edit the source (the launcher .fla) and get sound working from there? I don't have access to the source at the moment but we did license it.

bigmac- 10-01-2007

Getting sound together will depend on what you're doing. There are popular work arounds for most sound-related development. Background music can be embedded into the room's background SWF, and sound effects can be placed in the timelines of the animations they correspond with. Really the only thing that hasn't been worked around is talkie sound files, which I've thought of an easy way to hack (in source) if necessary. Do this: set up your talkie sound files on frames in a swf (as event sounds). Label the frames with the names you insert into the Lassie editor. Then, go into the Dialogue class. Where it dispatches an event over to the audio class, just take the reference that it is sending and make it set the audio swf's frame to that value.

lightbender- 10-01-2007
Background SWF
Does each room have to have it's own SWF or can they be all packaged into one? I can't seem to find any info or examples...

bigmac- 10-01-2007

That's up to you. You can contain all room assets in one SWF and give each object a frame to use, or you can use a separate SWF for each sprite.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.