# Externally Loading SWFs....HELP!

**URL:** https://forum.kirupa.com/t/externally-loading-swfs-help/196056
**Category:** flash
**Created:** [August 5, 2006, 12:26am UTC](https://forum.kirupa.com/t/externally-loading-swfs-help/196056 "2006-08-05T00:26:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Butters](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Butters](https://forum.kirupa.com/u/Butters)
#### Post date: [August 5, 2006, 12:26am UTC](https://forum.kirupa.com/t/externally-loading-swfs-help/196056/1 "2006-08-05T00:26:41Z")

</div>

Ok here’s the dealio, i’m re-building my site, fullscreen this time etc.

The portfolio section is gonna be better, but I have a prob with externally loading my swfs:

Basically I have a main file. There are buttons in it which, when clicked, load the sections (about, portfolio, services, contact). I’m basically trying to externally load files into the externally loaded portfolio section. I’v kinda managed to do it, but when you click on the buttons it just re-loads the swf!

Heres the code I used:

For each button:

```auto
on (release) {

if (currMovie == undefined) {

currMovie = "portfolio_ngdlondon";
container2.loadMovie("portfolio_ngdlondon.swf");
} else if (currMovie != "portfolio_ngdlondon") {
if (container2._currentframe >= container2.midframe) {

currMovie = "portfolio_ngdlondon";
container2.play();

}

}

}

```

At the end of each swf, this is there:

```auto
container2.loadMovie(currMovie+".swf");

```

In the main file, there’s \_root. before some of the stuff so I took it out for the portfolio section otherwise it would load it into the wrong container…

Why the crapola dosen’t it work?
