PDA

View Full Version : no sound when I load SWF into another SWF


Flippie124
03-06-2005, 07:33 PM
hello,

I have one main SWF that preloads another SWF. In the loaded swf is music and sound. If I play this swf seperately i can hear all sounds but when I load the swf into the other main SWF I have no sound at all :( ... any ideas?

//this is in the loaded swf (wallball_start_mod.swf)
var music = new Sound();
this.music.attachSound("moby");
this.music.start();

// in the main swf:
var mcloader = new MovieClipLoader();
var myListener = new Object();
mcloader.addListener(myListener);
mcloader.loadClip("wallball_start_mod.swf",2);
...

burnedalive
03-11-2005, 03:21 AM
I was having this same problem as well with a similar situation.

Found the solution on this thread (http://www.actionscript.org/forums/showthread.php3?t=56904&highlight=sound+load+SWF6904&highlight=sound+load+SWF)

Try adding the 'this':

var music = new Sound(this);