15 Replies Latest reply on Sep 10, 2007 5:56 PM by kglad

    Sound from External swf

    flashjen
      I have a main movie (index.swf) that preloads my external SWF that is a menu button 4.swf
      My index.swf has background music (song1) that plays on load. I also have background music (song2) that plays on my 4.swf
      It works fine when I test 4.swf directly however when I load my main index.swf I do not hear the song2.
      I used stopAllSounds(); in my4.swf to stop the background music (song1) and then load my song2

      stopAllSounds();

      my_sound = new Sound(sound_loop);
      my_sound.loadSound("4.mp3",true);
      my_sound.start(0,100);

      This has gotten me to get both songs to play when the site is loaded and when I click on my menu for 4 button all the sound stops and my song2 never plays.
      My actionscript is not very good so any details you can give would be greatly appreciated.
      Thanks much!