# Problems with AS i think...?

**URL:** https://forum.kirupa.com/t/problems-with-as-i-think/65238
**Category:** flash
**Created:** [September 24, 2004, 8:41am UTC](https://forum.kirupa.com/t/problems-with-as-i-think/65238 "2004-09-24T08:41:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![imbuez](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imbuez/32/645_2.png) [@imbuez](https://forum.kirupa.com/u/imbuez)
#### Post date: [September 24, 2004, 8:41am UTC](https://forum.kirupa.com/t/problems-with-as-i-think/65238/1 "2004-09-24T08:41:13Z")

</div>

Hi peeps  
Could someone please take a look at my actionscript. Im having trouble loading another movie into an empty MC.

```auto
 
_root.menu.home_btn.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "home";
_root.empty.loadMovie("home.swf");
} else if (_root.currMovie != "home") {
if (_root.empty._currentframe>=empty.midframe) {
_root.currMovie = "home";
_root.empty.play();
}
}
};
_root.menu.private_btn.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "private";
_root.empty.loadMovie("private.swf");
} else if (_root.currMovie != "private") {
if (_root.empty._currentframe>=empty.midframe) {
_root.currMovie = "private";
_root.empty.play();
}
}
};

```

This is fine as i have used this script before on a prevoius website i have made. Its just doesnt want to work today! ☹

[http://www.propcomm.co.uk/kirupa/template.zip](http://www.propcomm.co.uk/kirupa/template.zip)

The problems seems to be it loads a movie in and can load a movie out but struggles to load the next movie … im i making sense?

I will post a link to my fla here, aleways makethings alittle clearer!  
Thanks for any feedback in advance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 24, 2004, 10:35am UTC](https://forum.kirupa.com/t/problems-with-as-i-think/65238/2 "2004-09-24T10:35:47Z")

</div>

No worriesi have sorted the problem now, it was a problem with a variable  
Thanks for looking

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 28, 2004, 6:01am UTC](https://forum.kirupa.com/t/problems-with-as-i-think/65238/3 "2004-09-28T06:01:25Z")

</div>

yeah, i know the feeling, i’ve spent days on a problem only to find a semi colon out of place et-cetera
