LoadMovie: Loaded swf w/ sound not working

LoadMovie: Loaded swf w/ sound not working

Post by blackshee » Mon, 07 Feb 2005 04:53:44


Hello, I've spent 2 days combing thousands of threads and after several
million attempts, I'm stuck on this. I have simple play-stop button loop
player, loading into my main movie. The player movie loads fine on its own,
however loaded into the movie in an MC the buttons aren't functional. I did
come across the script here that noted how to include a 'this' in the line
my_sound = new Sound(this); and I finally got the sound loading in the main
movie, but the buttons are still not linking to each stop and play position. I
know this problem lies within the player code, howver after bleeding my brain
for a few days I'm stuck. My code for the player movie: ActionScript:
my_sound = new Sound(this); my_sound.attachSound('sundancer');
my_sound.start(0,1000); gotoAndStop('stop'); For each button: ActionScript:
on (release) { _root.my_sound.start(0,1000);
_root.gotoAndStop('stop'); } on (release) { _root.my_sound.stop();
_root.gotoAndStop('play'); } I did try using _parent with no success, so
this is what I've been working with originally. My code for the main movie
w/empty MC: ActionScript: this.createEmptyMovieClip('loop_player', 5);
loop_player.loadMovie('loop_player.swf', 'loop_player'); loop_player._x = 100;
loop_player._y = 100; I know someone here can help me! many thanks in advance
claude coleman jr.
 
 
 

LoadMovie: Loaded swf w/ sound not working

Post by blackshee » Mon, 07 Feb 2005 06:33:31

I solved my issue: I changed the script for the buttons in the player swf to
the path name of the MC it was being loaded into - loop_player - being the
residing MC: on (release) { _root.loop_player.my_sound.start(0,1000);
_root.loop_player.gotoAndStop('stop'); } Works! thnx claude