Hi everybody, hope someone else here has encountered this same problem and solved it - because I've tried just about everything.
I made a swf (movie#2) with sound functions. When I play that swf by itself, sound functions work fine, no problems. Here's an example of one of my sound functions (placed on 1st frame, 1st layer). I use Flash MX,
function BopSound(){
bop = new Sound();
bop.attachSound("Bopmusic");
bop.start(0,999)}
And then I call the function wherever by _root.BopSound();
But .. when I load that same swf into a another swf (Move#1) via loadMovieNum("movie#2.swf", 1),
the sound functions don't work anymore. Do I maybe have to specify a level (_level1 something or other?) when calling the function? Is it a shared resource matter or something? I am guessing at this point
If I redo my souond nctions in the _level0 swf (movie#1) and reimport those same sound files also into that movie then the sound functions within what is now _level1 work. There has to be a way around this.
Why on earth would a sound function in a swf work fine, but not when you load that swf into another movie? Does the swf lose all track of what's in its library, what's for export, etc, just because it's loaded into another swf? Doesn't make sense.
Any advice or comments how to solve this would be most appreciated, thank you
I want to Learn !!
I made a swf (movie#2) with sound functions. When I play that swf by itself, sound functions work fine, no problems. Here's an example of one of my sound functions (placed on 1st frame, 1st layer). I use Flash MX,
function BopSound(){
bop = new Sound();
bop.attachSound("Bopmusic");
bop.start(0,999)}
And then I call the function wherever by _root.BopSound();
But .. when I load that same swf into a another swf (Move#1) via loadMovieNum("movie#2.swf", 1),
the sound functions don't work anymore. Do I maybe have to specify a level (_level1 something or other?) when calling the function? Is it a shared resource matter or something? I am guessing at this point
If I redo my souond nctions in the _level0 swf (movie#1) and reimport those same sound files also into that movie then the sound functions within what is now _level1 work. There has to be a way around this.
Why on earth would a sound function in a swf work fine, but not when you load that swf into another movie? Does the swf lose all track of what's in its library, what's for export, etc, just because it's loaded into another swf? Doesn't make sense.
Any advice or comments how to solve this would be most appreciated, thank you
I want to Learn !!