Trying to Load my Sound

Hi Everyone

I feel as dumb as a box-of-hammers but I just can’t seem to get my sound file to play. I hope you can help me. I’ve been to http://www.aspirin99.com/tutorials/sound/ and also to [url=“http://kennybellew.com/tutorial/”]http://kennybellew.com/tutorial/ and they are excellent but there must be something else I’m doing wrong.

Here’s my set up:

I have a main Flash website (lets call it jim.fla) and I code everything with ActionScript in the first frame (within a layer called “actions”) and in it I do the following:

// MovieClipLoader - Used to Load MainImage.
var MCL:MovieClipLoader = new MovieClipLoader();

// MovieClip - Main Body Image - Size 400 x 360
this.createEmptyMovieClip(“MainImage”,0);
MainImage._x = 240;
MainImage._y = 85;

I use the above mainly for loading images into the main section of my Flash website. Simple stuff and it works great. Now then, I also use the above to load external swf files which also works great except when the external swf file has a sound file in it.

To load the external swf file the jim.fla code does this:

MCL.loadClip(“h t t p://my-url.com/bob.swf”,MainImage);

I use the loadClip statement so that I can use the built-in functions to display the load progress and that works great. Also, the new swf file loaded does play nicely but without any sound.

The mp3 sound file is part of bob.swf file. It’s linkage identifier is “VowsSong”. The source code within for bob.fla (within a layer called “wedding”) for the sound logic looks like this.

WeddingSong = new Sound();
WeddingSong.attachSound(“VowsSong”);
WeddingSong.start();

My guess is that I do not have the object path correctly coded for the “.start()” statement but I’m not sure what to code there. I’ve tried the following:

_root.WeddingSong.start();

_root.MainImage.WeddingSong.start();

_root.MCL.WeddingSong.start();

None of the above statements work. Does anyone have any ideas? Any help would be greatly appreicated.

Thank You!

JimVision