# Linking different swf files

**URL:** <https://forum.kirupa.com/t/linking-different-swf-files/35207>\
**Category:** flash\
**Created:** [November 11, 2003, 5:09pm UTC](https://forum.kirupa.com/t/linking-different-swf-files/35207 "2003-11-11T17:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rc74](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rc74](https://forum.kirupa.com/u/rc74)\
**Post date:** [November 11, 2003, 5:09pm UTC](https://forum.kirupa.com/t/linking-different-swf-files/35207/1 "2003-11-11T17:09:46Z")

</div>

Hi,

Im still fairly new to Flash and im trying to link different .swf files together…

Heres the problem - ive got a swf animation which acts as my ‘home page’ - it contains a small intro and then my 4 buttons which link to other documents appear.

I’m using the loadmovie action on each button to link to a different swf file - each swf file contains all the same layers as used in my opening movie (ie : an image and navigation) but there is no animation - the pages will be static but just containing the extra layer of text they need. This seems to work fine but… when i click on the link ‘home’ to take me back to my original swf file it loads ok but keeps repeating… I had already unticked the ‘loop’ command in the publish preview section… Has anyone got any ideas?

The code or actionscript i am using for this is :

on (release) {  
loadMovie(“myfile.swf”, “\_root”);  
}

Ive taken some tips from Kirupas page on creating a full flash site but ive not seen any ideas withthis problem?? Anyone?!!

Cheers … :cool:

---

<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:** [November 11, 2003, 5:56pm UTC](https://forum.kirupa.com/t/linking-different-swf-files/35207/2 "2003-11-11T17:56:03Z")

</div>

throw a stop command in the homepage Action Script… and Voila!! if not post ya file here and someone’ll have a crack at it for ya!!

---

<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:** [November 12, 2003, 4:44pm UTC](https://forum.kirupa.com/t/linking-different-swf-files/35207/3 "2003-11-12T16:44:49Z")

</div>

Thanks for that - it worked!

Only problem now is … i want the files to load smoothly (ie: with all images staying ‘still’ and only the text changing… - im not sure ive made too good a job of it - ive uploaded my files to my website here - [www.rc74web.co.uk](http://www.rc74web.co.uk)

i tried to attach my .fla files but they are too big!

Any ideas anyone?

Thanks 😉
