Controlling a loaded swf

:te:

hi everyone!

well, i have this loaded swf, which i got into a specific layer by loading it right into a movieclip, and it’s a voice guided tutorial movie. what i’m finding is that when i navigate to another part of the flash website i’m creating, i’ve still got the audio narrative from that laoded swf playing.

so pretty much i just want to make it so that when you click the button to go to another part of the website, it makes the movie either completely disappear or stop playing. i guess disappear would be prefferable, although it would be good to understand either.

i’ve been just reading and reading :book: :book: :book: and it’s so silly : i just can’t find anything that explains how to actually communicate to your loaded swf from the main timeline.

so here’s my loader code :

var loadRequest:URLRequest = new URLRequest("GaiaCraft.swf");
var swfLoader:Loader = new Loader();
swfLoader.load(loadRequest);
load_mc.addChild(swfLoader);

and here’s something i tried off the top of my head to make it work (inside the navigation button function on the main timeline) :


load_mc.swfLoader.stop();

also set up a completely blank swf file and tried :


load_mc.swfLoader.source = "blank.swf";

also tried :


load_mc.removeChild(swfLoader);

it just seems like it should be so simple, but maybe it’s not?