# Transition

**URL:** <https://forum.kirupa.com/t/transition/74248>\
**Category:** Uncategorized\
**Created:** [December 26, 2004, 8:25pm UTC](https://forum.kirupa.com/t/transition/74248 "2004-12-26T20:25:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitostyle](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nitostyle](https://forum.kirupa.com/u/nitostyle)\
**Post date:** [December 26, 2004, 8:25pm UTC](https://forum.kirupa.com/t/transition/74248/1 "2004-12-26T20:25:06Z")

</div>

Hello I’m following the transtion tutorial from kirupa

[click here to see](http://www.kirupa.com/developer/mx2004/transitions.htm)

however my goal is to have this transition occur within movie clips on the main time line so when they clip that movie clip it works etc…

what changes do i need to make the code to achieve this

I did the following i named the movie clip instance i want transition for “lake” and did the following

[COLOR=royalblue]  
on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “work”;  
container.loadMovie(“work.swf”);  
} else if (\_root.currMovie != “work”) {  
if (container.\_currentframe \>= container.midframe) {  
\_root.currMovie = “work”;  
container.play();  
}  
}  
}[/COLOR]

i changed that code to this

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

Then I changed the code on the last swf that i want from this

[COLOR=royalblue]\_root.container.loadMovie(\_root.currMovie+".swf"); [/COLOR]

to this  
lake.container.loadMovie(lake.currMovie+".swf");

When I did this it loads the clips with the transition but when i click another clip it does not transtion out just goes to next swf transtion in

Thanks in advance
