# \[FMX04\] Transition from child swf - help!

**URL:** <https://forum.kirupa.com/t/fmx04-transition-from-child-swf-help/182129>\
**Category:** flash\
**Created:** [March 15, 2006, 6:03pm UTC](https://forum.kirupa.com/t/fmx04-transition-from-child-swf-help/182129 "2006-03-15T18:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adfox](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@adfox](https://forum.kirupa.com/u/adfox)\
**Post date:** [March 15, 2006, 6:03pm UTC](https://forum.kirupa.com/t/fmx04-transition-from-child-swf-help/182129/1 "2006-03-15T18:03:32Z")

</div>

Hi there!

I’ve just successfully followed the tutorial on transitions [http://www.kirupa.com/developer/mx2004/transitions.htm](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
