# Loading External Movies (under same domain)

**URL:** https://forum.kirupa.com/t/loading-external-movies-under-same-domain/322872
**Category:** flash
**Created:** [June 7, 2011, 5:37am UTC](https://forum.kirupa.com/t/loading-external-movies-under-same-domain/322872 "2011-06-07T05:37:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BUroKHUli](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/burokhuli/32/190_2.png) [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)
#### Post date: [June 7, 2011, 5:37am UTC](https://forum.kirupa.com/t/loading-external-movies-under-same-domain/322872/1 "2011-06-07T05:37:53Z")

</div>

I have three (3) buttons in my main movie. And I just realized that everytime I press the “about me” button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.

What I did was, on the first frame of my movie, I declared 3 variables; namely:

```php
var portfolio = false;
var aboutme = false;
var contact = false;

```

now for the ABOUT ME button, I placed this AS

```php
btn_aboutme.onRelease = function() {
	if (aboutme == false) {
		gotoAndStop("firststop");
		movieTarget.loadMovie("swf/random01.swf");
	} else {
		var aboutme = true;
	}
};

```

But I think I missed something along the lines because evertime I click on ABOUT ME, I still get the movie to load. My point here is that once I have CLICKED one button and the designated movie for that button is loaded, I can not reload it again 'cause it’s already there.

What am I missing? I hope someone can push me at the right direction here 🙂  
Here is the FLASH MOVIE I am trying to developing.  
[http://www.allanrestauro.com/index2.htm](http://www.allanrestauro.com/index2.htm)

Thank you
