# New to Flash help with attaching SWF

**URL:** https://forum.kirupa.com/t/new-to-flash-help-with-attaching-swf/206845
**Category:** flash
**Created:** [November 12, 2006, 4:50am UTC](https://forum.kirupa.com/t/new-to-flash-help-with-attaching-swf/206845 "2006-11-12T04:50:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mr\_Ocean](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Mr\_Ocean](https://forum.kirupa.com/u/Mr_Ocean)
#### Post date: [November 12, 2006, 4:50am UTC](https://forum.kirupa.com/t/new-to-flash-help-with-attaching-swf/206845/1 "2006-11-12T04:50:26Z")

</div>

Hello,

I am new to flash and I am working on my first big site. What I am wanting to do to keep the file size down is take my basic swf and load other swf’s (top links, bottom links, and center where text appears from different places on the site like from about us, etc)

- How do I attach a swf within a swf or is this possible.

I have tried this AS code but when I test the movie it loads but it continues to loop. I have put a stop on both swf’s at the end of the frames?

//on the frame action in the main timeline  
this.createEmptyMovieClip(“container”,2);  
//positioning the emptyMovieClip named container  
container.\_x =0;  
container.\_y =0;  
//attach the swf file which is in the same folder  
container.loadMovie(“Top Links.swf”);  
//that’s it
