# Transition of swf frames

**URL:** https://forum.kirupa.com/t/transition-of-swf-frames/126650
**Category:** Uncategorized
**Created:** [October 26, 2004, 4:44am UTC](https://forum.kirupa.com/t/transition-of-swf-frames/126650 "2004-10-26T04:44:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jc58525](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jc58525](https://forum.kirupa.com/u/jc58525)
#### Post date: [October 26, 2004, 4:44am UTC](https://forum.kirupa.com/t/transition-of-swf-frames/126650/1 "2004-10-26T04:44:25Z")

</div>

Bellow is AS to create a transitions between external swfs  
on (release) { if (\_root.currMovie == undefined) { \_root.currMovie = “main”; container.loadMovie(“main.swf”); } else if (\_root.currMovie != “main”) { if (container.\_currentframe \>= container.midframe) { \_root.currMovie = “main”; container.play(); } } } How can i alter this code to instead of calling in external swfs i call in different frames on the same swf?  
I have created 1 swf with 10 animations 5 intros and 5 outros each corresponding to different sections of my page and then i have 5 midframes. how do i use action scripts to make transition between then the section i am in and the section i want to go to.

did that make any sense?  
thanks john
