Skip to main content
Inspiring
September 26, 2008
Question

library sound in loaded clip

  • September 26, 2008
  • 3 replies
  • 275 views
I have a container program that has a movie clip that loads some external
content

this.mCONTAINER.loadMovie("sound.swf");

Sound.swf has a sound file in its library that is played with

SOUND_FILE.attachSound("newSound.mp3");
SOUND_FILE.start(0,1000);

sound.swf works fine on its own, but no sound is played when it is loaded
into the container swf

What am i doing wrong?

Many thanks

Dave


This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
September 26, 2008
you're welcome.

it may be documented, but it's not clearly documented in the flash help files.
Inspiring
September 26, 2008
Fantastic! It works

Something undocumented?

Thanks for your help

"kglad" <webforumsuser@macromedia.com> wrote in message
news:gbjfod$85e$1@forums.macromedia.com...
> when you instaniate SOUND_FILE, use:
>
> var SOUND_FILE:Sound=new Sound(this);
>
> instead of
>
> var SOUND_FILE:Sound=new Sound();


kglad
Community Expert
Community Expert
September 26, 2008
when you instaniate SOUND_FILE, use:

var SOUND_FILE:Sound=new Sound(this);

instead of

var SOUND_FILE:Sound=new Sound();