# Some programing Help please

**URL:** https://forum.kirupa.com/t/some-programing-help-please/64839
**Category:** flash
**Created:** [September 20, 2004, 6:02pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839 "2004-09-20T18:02:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![VersusMG](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@VersusMG](https://forum.kirupa.com/u/VersusMG)
#### Post date: [September 20, 2004, 6:02pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/1 "2004-09-20T18:02:37Z")

</div>

I’m using external SWF files in my site and using multiple files at once…Our main file is calling 2 swf’s at once with no problem but then one of the external swf files “portfolio” is calling on its own external files “Webdesign.swf”, “photography.swf” and so on. everyhing works right when you click the first button, but when you click the second button it just reloads the previous one you clicked? i know this may sound confusing so here is the test site.

[www.versusmediagroup.com/test](http://www.versusmediagroup.com/test)

the first box is portfolio and you can see what i’m talking about…hopefully.

Thanks  
Seth

---

<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 20, 2004, 6:23pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/2 "2004-09-20T18:23:13Z")

</div>

you will probably need to post your fla so we can see the code to figure out what is going on

---

<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 20, 2004, 7:37pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/3 "2004-09-20T19:37:07Z")

</div>

The files can be found at

[www.versusmediagroup.com/test/flafiles](http://www.versusmediagroup.com/test/flafiles)

---

<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 21, 2004, 5:40am UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/4 "2004-09-21T05:40:03Z")

</div>

Well, here ya go… this is what you had in your code for the portfolio:

```auto
// This code is for the changing swf files.
on (release) { 
if (_root.currMovie3 == undefined) { 
_root.currMovie3 = "printmedia"; 
portfolio_files.loadMovie("printmedia.swf"); 
} else if (_root.currMovie3 != "printmedia") { 
if (portfolio_files._currentframe >= portfolio_files.midframe) { 
_root.currMovie3 = "printmedia"; 
portfolio_files.play(); 
} 
} 
}
on (rollOver) {
	// slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.
	slider.xMove = button_3._y;
}

```

And Here’s the problem line:

```auto
portfolio_files.loadMovie("printmedia.swf");

```

It needs to be changed to:

```auto
_root.container.portfolio_files.loadMovie("photography.swf");

```

You were not correctly labeling where to load your section swf’s (considering their levels within each one. Any time you are loading external swf’s into other movies, the best way to make sure your targeting is still cool, is to just put one of these on a clip:

```auto
onClipEvent(load){
trace (this);
}

```

I wasn’t able to COMPLETELY make sure everything loads and populates because you didn’t include your XML files inside that directory 😛

Rocksteady,  
Danno~

---

<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 21, 2004, 2:54pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/5 "2004-09-21T14:54:12Z")

</div>

I tried the code you gave and i’m still having the same problem, do i change it everywhere or just in the one line you put up?

Thanks

---

<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 21, 2004, 3:57pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/6 "2004-09-21T15:57:30Z")

</div>

just as a design note, you need to watch the buttons at the bottom because they go off thwe screen once they’ve moved from their original position

---

<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 21, 2004, 4:07pm UTC](https://forum.kirupa.com/t/some-programing-help-please/64839/7 "2004-09-21T16:07:17Z")

</div>

Were still in the very early stages of the site…but thank you for letting me know.
