[FMX04] Transition from child swf - help!

Hi there!

I’ve just successfully followed the tutorial on transitions http://www.kirupa.com/developer/mx2004/transitions.htm

As a bit of a junior at AS I am struggling to work out how to now use this code in one of the child swfs. ie if I wanted to use this code within a loaded child swf how can I modify the code? I have it all set up with a main swf and a few external swfs to load into this parent.

Is it just a case of changing the _root.currMovie to the parent movie?

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “1”;
container.loadMovie(“1.swf”);
} else if (_root.currMovie != “1”) {
if (container._currentframe>= container.midframe) {
_root.currMovie = “1”;
container.play();
}
}
}

Thanks for your help in adv.

Andy