# Having my AS handed to me

**URL:** <https://forum.kirupa.com/t/having-my-as-handed-to-me/154711>\
**Category:** Uncategorized\
**Created:** [July 12, 2005, 5:44am UTC](https://forum.kirupa.com/t/having-my-as-handed-to-me/154711 "2005-07-12T05:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlafferty123](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jlafferty123](https://forum.kirupa.com/u/jlafferty123)\
**Post date:** [July 12, 2005, 5:44am UTC](https://forum.kirupa.com/t/having-my-as-handed-to-me/154711/1 "2005-07-12T05:44:00Z")

</div>

I’ve thrown in the towel. I can’t for the life of me seem to get this to work. [Here are the reference files](http://ideaspora.net/notworking.zip).

I’m combining a couple of Flash tutorials I’ve seen, one of them the multiple SWFs with transitions tutorial from this site. I’ve got my buttons inside a separate SWF, and I’m trying to use them to affect a container movie on the main timeline. The third swf here is a random dummy file I made just to see if it would load when and where I coded it to.

The “holder.fla” is a bit of a mess now, because I’ve just been moving things around trying to see what does and does not work. You’ll see I’ve been doing a lot of short cuts/hiding of my innexperience, and I hope at the very least you get a good laugh out of it all 😃 Ideally, this “holder.fla” would load a smaller SWF on one of its levels, masked by some of the gradients on other levels – but since I couldn’t get the code in the tutorial to work with levels other than \_root, I gave that up and created a lot of the short cuts you’ll see.

There are, at the moment, no intro or outro animations because I figured I’d save that for last. I’m stuck on making the buttons work.

Specifically this is not working:

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

I’ve got a container movie. I’ve set its instance properly. It’s on the root, or level0 level of the parent SWF. I can load things into it, as seen by the AS on the first frame of holder.fla:

midframe = 30;  
\_root.currMovie = “mainmenu”;  
container.loadMovie(\_root.currMovie+".swf");

But I can’t get any of my buttons to load a .swf into it.

I’m at my wits end and pulling what little hair I’ve got left out…

Thanks to anyone who can help.

- jim
