
ARGH! Hey guys, i'm kinda stuck here. Anyone know FlashMX well enough to help me? I've added a bunch of bgsound (background sound to those who care enough to ask!!) in flash but the SWF file became rather big (1.32MB). So, since the sound wont play unless u click the specific buttons i was attempting to have the .mp3 files outside the swf file and have the flash movie "stream" the music when a button is clicked.
So far, the results have been a total failure. I dont know what i'm doing wrong. Can anyone rescue me or u gonna let me figure this out eventually? :evil:
Please post any comments, or even sites that deal with this topic!
Insert this into the first frame on the time line
//this is what will attach the sound to the movie
_root.sound.onLoad = function(success) {
//this is what will play the sound
Sound.loadSound("your file.mp3",true);
};
Now creat a blank movie clip by pressing the + sign in the library (crtl+L)
Go back to scene 1 and place the blank movie clip onto the stage
Select the blank movie clip and give it the instance name of "sound"
It should work but I am not sure, I will have to debug it later.
copy the instance name above exactly as seen, it is case sensitive :evil:
Peace
Thanx for that Voldron. This post is quiet old, although i'm managed to get my method workin in the end, it still far from perfect. You can see in in action over at http://biomutation.gfxdiary.com
Every time you have the sound on, and switch to a page it stops, so at the moment i'm trying to get the bg sound to continue playing during the navigation of the site without using hidden frames, or other unneccessary tricks!
Just put your mp3 in a seperate swf, then use the load movie command on layer 0, you should be fine
My mp3s are already on a separate swf and being called/loaded as an external movie. But since Biomutation is not fully done using flash (not a flash movie) when you switch from one page to another it loads everything again including the html and all the flash objects.
well the thing is you shouldn't load a new page each time, just call the different parts of your table. I.E. Link to "http://www.google.com target = "your frame", you will need to make the part you are calling a name. So just put 'name="whatever you want" that will load the page in that frame because you targeted it with the link. Then you should have no problem. Otherwise you will have to use java and that would be a pain