# Linking a button to an internet .swf

**URL:** <https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268>\
**Category:** flash\
**Created:** [February 7, 2004, 12:34am UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268 "2004-02-07T00:34:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.kirupa.com/u/Nick)\
**Post date:** [February 7, 2004, 12:34am UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/1 "2004-02-07T00:34:28Z")

</div>

I’m currently making a mini site on flash. When I click on the home button, I want a .swf from my site to be displayed in the movie box. how can I do this?

this is my script:

on (release) {  
\_root.contents.loadMovie(“ **2.swf** ”);  
}

I want the bold letters to be the link. how can I make it so the button is linked to [http://nick.0catch.com/2.swf](http://nick.0catch.com/2.swf) (the file on my site)? thx in advance.

😃

---

<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:** [February 7, 2004, 10:56am UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/2 "2004-02-07T10:56:29Z")

</div>

[AS]on (release) {  
\_root.contents.loadMovie(“[http://nick.0catch.com/2.swf](http://nick.0catch.com/2.swf)”);  
}

[/AS]

scotty(-:

---

<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:** [February 7, 2004, 2:29pm UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/3 "2004-02-07T14:29:44Z")

</div>

Thanks scotty. I tried that too but I realized that my free web site does not allow hotlinks. :-/

---

<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:** [February 7, 2004, 2:57pm UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/4 "2004-02-07T14:57:43Z")

</div>

Why not make a copy of your “two.swf” load it up to your minisite and use the code in your first post?

scotty(-:

---

<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:** [February 7, 2004, 4:36pm UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/5 "2004-02-07T16:36:54Z")

</div>

yea i did that and it works fine. i just wanted try the other way.

---

<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:** [February 7, 2004, 4:54pm UTC](https://forum.kirupa.com/t/linking-a-button-to-an-internet-swf/42268/6 "2004-02-07T16:54:41Z")

</div>

lol, I’ll say no more;)
