# Website with multiple SWF files

**URL:** <https://forum.kirupa.com/t/website-with-multiple-swf-files/321010>\
**Category:** flash\
**Created:** [April 7, 2011, 8:56pm UTC](https://forum.kirupa.com/t/website-with-multiple-swf-files/321010 "2011-04-07T20:56:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shelleyh](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shelleyh](https://forum.kirupa.com/u/shelleyh)\
**Post date:** [April 7, 2011, 8:56pm UTC](https://forum.kirupa.com/t/website-with-multiple-swf-files/321010/1 "2011-04-07T20:56:29Z")

</div>

Basically, I am developing a portfolio page. There will be 4 main SWF files. One which is the home page (with a few keyframes for some navigation to an about page and contact page) and 3 pages each a different skill page. Each skill page displays 3 examples of work that I coded using keyframe navigation. I want to be able to click on one of the skill pages from " home" and have it load the new SWF created from the “webdesign” fla…

I can’t find any answer anywhere for 3.0 actionscript.

I have this code so far, but it just writes the new SWF over the old one.

```auto
var loader = new Loader
addChild(loader)
loader.x=0;
loader.y=0;

page1.addEventListener(MouseEvent.CLICK, function(){
         loader.load(new URLRequest("page1.swf"));
});

page2.addEventListener(MouseEvent.CLICK, function(){
         loader.load(new URLRequest("page2.swf"));
});

page3.addEventListener(MouseEvent.CLICK, function(){
         loader.load(new URLRequest("page3.swf"));
});

```

In addition, once that works, and I publish to HTML, how will I keep it all in the same HTML file?

Can anyone help me please?

Thanks to anyone who can…
