PDA

View Full Version : Help with hotel website


3dmagicaldesigns
06-08-2009, 08:39 PM
Hi to all members, I am new at the forum and I am really needing help:

I am developing the following flash intro:

http://www.3dmagicaldesigns.com/3dmd_webdesign/customers/lashuacas/index.html

Right now the flash intro is too heavy since the music is inserted in the swf file, I was told there is a way to code it in a way the flash file plays the music from an mp3 file external to the swf. Is this possible? if so, can someone tell me how can I do it? I am not an expert with actionscript.

Thanks a lot for your support

Arif-sama
06-09-2009, 02:18 PM
shortly its like this:

var req:URLReqest = new URLRequest("filename.mp3");
var sound:Sound = new Sound;

function soundLoaded(event:Event):void
{
sound.play();
}

sound.addEventListener(Event.COMPLETE);
sound.load(req);

kkbbcute
06-09-2009, 02:34 PM
From personal experience, that isn't a good idea either, as the streamed music would just sound really laggy, with awkward starts and stops, and it wouldn't sync properly with the rest of the intro. My suggestion? Try and reduce the size of the music file as much as possible (32kbps with stereo sounds good enough) and if the music really isn't very special, just get rid of it altogether.

Just suggestions you could take, because the way I see it, your solution wouldn't be helping much. ;)