# Help needed..How to link 2 flash swf files together

**URL:** <https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657>\
**Category:** flash\
**Created:** [January 20, 2003, 7:44pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657 "2003-01-20T19:44:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbzrealm](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sbzrealm](https://forum.kirupa.com/u/sbzrealm)\
**Post date:** [January 20, 2003, 7:44pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/1 "2003-01-20T19:44:17Z")

</div>

Hi  
I am making a flash portfolio which can be seen here [http://members.tripod.com/umairkhan20/portfolio.htm](http://members.tripod.com/umairkhan20/portfolio.htm)  
Only problem I am having is howto link another flash file jus like this one together…for example if u see this link and u see the “About Me” section…I want it that the user clicks that and it opens another .swf file…if someone can help me with this it will be great… if u need me to explain this in more detail plz feel free to email me and I can explain it to u more detailed…  
thanks and take care  
-Umair  
[mdsruff@dbzmail.com](mailto:mdsruff@dbzmail.com)

---

<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:** [January 20, 2003, 8:02pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/2 "2003-01-20T20:02:04Z")

</div>

You can use loadMovie() or loadMovieNum() for that.

A good description can be found in the AS Dictionary…

[http://www.macromedia.com/support/flash/action\_scripts\_dict.html](http://www.macromedia.com/support/flash/action_scripts_dict.html)

---

<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:** [January 20, 2003, 8:06pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/3 "2003-01-20T20:06:20Z")

</div>

Make sure your “about me” title is a button

Make sure the button is selected and open the “actions” panel

put in

on (release) {  
loadMovieNum(“yourmoviehere.swf”, 2);  
}

yourmoviehere = Your movie name of the file you want to load  
2 = is the level to open your file. I would suggest makeing all your movies open on the same level so if someone clicks on about me and then on portfolio - your about me disapears and your portfolio shows up.

One other thing - on your buttons on the top - make sure you give them a hit field - right now you have to touch a part of the text for a button. If you put a box around the text in the “hit” section of your button the whole area you just filled in with colour will be the button.

I hope I explained that well enough

---

<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:** [January 20, 2003, 8:06pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/4 "2003-01-20T20:06:59Z")

</div>

■■■■ you lost 🙂

beat me to the punch hahahaha

You know, there arent’ many questions I can answer!

---

<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:** [January 20, 2003, 8:17pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/5 "2003-01-20T20:17:10Z")

</div>

Hey thanks alot guys for all ur help…  
I really appreciate it…  
thanks again and take care

---

<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:** [January 20, 2003, 11:45pm UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/6 "2003-01-20T23:45:19Z")

</div>

everything u guys said worked perfect… jus that when i click on about me the music from the main page still keeps going…So the new page loads but the backround music from the previous keeps going and a new track from the new page also plays…anyone know how i can fix this error?  
sorry for being a pest…i need to get this done by friday for my college :-  
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:** [January 21, 2003, 12:27am UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/7 "2003-01-21T00:27:40Z")

</div>

well that depends on how you have your music set up.

I guess the sure fire way to do it is have it so when you click on a button it plays the “stop all sounds” command in the actions pannel

Just select the button - and add that. It will stop all sounds playing and let the new one start.

---

<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:** [January 21, 2003, 2:23am UTC](https://forum.kirupa.com/t/help-needed-how-to-link-2-flash-swf-files-together/11657/8 "2003-01-21T02:23:31Z")

</div>

Yeah… so on your button before you load your movie have a stopAllSounds() action.

Then when your movie loads, it will load the new sound.

Should work 🙂
