all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

Weird problem with Sound


Weird problem with Sound Egui
8/27/2005 12:00:00 AM
flash actionscript:
I have a movie with attached sounds from the library (linked). It runs perfect
alone. But when I load this movie into another movie sound cannot be heard.
The sounds are ativated via the button component I dont know if thats the
problem. Any ideas??
Re: Weird problem with Sound kglad
8/27/2005 12:00:00 AM
your swf looks in the _root timeline's library for the sound. when you run
your swf alone, the _root timeline's libary is the library with the sound.
when you load your swf the movie containing the loadMovie() statement contains
the _root timeline.

to remedy, in your loaded swf use:

yourSound=new Sound(this);

instead of

yourSound=new Sound();
Re: Weird problem with Sound Egui
8/27/2005 12:00:00 AM
That did the job THANK YOU THANK YOU
Is this the case for other loaded assets or is it only the sound object?
Great

Re: Weird problem with Sound kglad
8/28/2005 12:00:00 AM
all linked items are problematic when they are contained in a library that's
loaded into another swf.

usually, you have to use shared assets to remedy. i can't think of any other
situation where you can access the loaded movie's library without using shared
assets, except for the Sound() class.
AddThis Social Bookmark Button