# Transitions and levels?

**URL:** https://forum.kirupa.com/t/transitions-and-levels/101833
**Category:** Uncategorized
**Created:** [February 14, 2004, 6:47pm UTC](https://forum.kirupa.com/t/transitions-and-levels/101833 "2004-02-14T18:47:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brintonwhite](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brintonwhite](https://forum.kirupa.com/u/brintonwhite)
#### Post date: [February 14, 2004, 6:47pm UTC](https://forum.kirupa.com/t/transitions-and-levels/101833/1 "2004-02-14T18:47:23Z")

</div>

Hello, I’m back.

Ok, I can make transitions work using a loaded movie into an empty movie clip on the stage with an instance name of container. I am using the following actionscript on my guestbook button to load in my guestbook page:

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

All well and good. my actual guestbook movie uses a midframe action, i’ll post this as well so you can see what I mean. the actionscript on my frames is the guestbook fla is as follows

on frame 1:

midframe = 23;

on frame 23:

stop();

on frame 44:

\_root.container.loadMovie(\_root.currMovie+".swf");

Ok, suppose I don’t want to load into an empty movie clip and wish to use levels instead (all my movies load into level 1 for example) What should I do to the actionscript above to allow this to work?

If you would like more info I would be delighted to send in anything required.

I thought to replace container with level1 but it didn’t seem to work.

Many thanks.
