PDA

View Full Version : Path to SWF prob...


sarah_h
11-24-2006, 10:48 AM
Hi All,

I have a fla with a loader (loader) in it (test.fla). This loader will load a swf with a media playback component in it. Works great to play a mp3 within a swf (test_music.swf). I can stop it playing by including a button in test_music.swf

on (release) {

song.stop();

}

Song is the media playback component instance name. Works good to stop the song playing from within this swf. Now if I want a button to do the same from the main fla (test.fla) I can't get it to work. I've tried:

on (release) {

loader.song.stop(); (loader is instance name of loader comp.)

}

and I've tried adding _rot, _parent to loader.song.stop(); but nothing.

Can anyone help with the targeting path for this if it's possible.

Sarah

thatblokemike
11-24-2006, 11:17 PM
_level1.song.stop();

or whatever level your loading it on on..