# Making links to pages with flash movieclips, the problem is... (PLEASE HELP)

**URL:** <https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547>\
**Category:** flash\
**Created:** [July 14, 2004, 3:58am UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547 "2004-07-14T03:58:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlkedave](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mlkedave](https://forum.kirupa.com/u/mlkedave)\
**Post date:** [July 14, 2004, 3:58am UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/1 "2004-07-14T03:58:41Z")

</div>

Ok, i have a flash menu i want to use. I want to make the buttons go to pages like a regular hyperlink. The thing is i dont have my site registered (or uploaded) yet but I know there is a way to link to a page, just by using the name of the website and somehow linking it to the same directory as the current page…

Its hard to explain but its like in FrontPage, how you can link to sites and when you preview it, you can follow the links even though they aren’t uploaded on the internet.

Can someone give me the AS i should use? Thanks

Mike

---

<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:** [July 14, 2004, 7:39am UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/2 "2004-07-14T07:39:20Z")

</div>

so to open up an HTML page? something like this:

```auto

//for local files that load from the same DIR
my_button.onRelease = function() {
     getURL("whatever.htm", _self)
}

//for local files that load from a different DIR
my_button.onRelease = function() {
     getURL("/whatever/whatever.htm", _self)
}
//OR for external files
my_button.onRelease = function() {
     getURL("http://www.whatever.com/whatever.htm", _self)
}

```

not sure if that’s what you mean…

---

<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:** [July 14, 2004, 6:50pm UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/3 "2004-07-14T18:50:04Z")

</div>

So if i use

[AS]  
//for local files that load from the same DIR  
my\_button.onRelease = function() {  
getURL(“whatever.htm”, \_self)  
}  
[/AS]  
But upload all the files to my webserver (and keep them in the same directory), will the link still work or will i have to add the full web address (ie [www.msn.com/whatever.htm](http://www.msn.com/whatever.htm)) to the link? THanks for all the help

Mike

---

<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:** [July 14, 2004, 9:15pm UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/4 "2004-07-14T21:15:25Z")

</div>

no, it should work if they are all in the same directory. 😃

Just leave the address off and it will reference the directory it exists in.

---

<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:** [July 14, 2004, 11:15pm UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/5 "2004-07-14T23:15:34Z")

</div>

cool 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:** [July 17, 2004, 1:46am UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/6 "2004-07-17T01:46:40Z")

</div>

ok well i actually tried it out and i didnt get any errors but it just dosn’t go to any site. i am using AS 2.0 if that matters…

---

<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:** [July 17, 2004, 2:52am UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/7 "2004-07-17T02:52:32Z")

</div>

I’m using AS2.0 aswell (this is the FMX2004 forum). Post your FLAs…

---

<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:** [July 17, 2004, 7:07pm UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/8 "2004-07-17T19:07:27Z")

</div>

i got it working now but it opens up a new window… Do you know how to stop that?

---

<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:** [July 17, 2004, 11:30pm UTC](https://forum.kirupa.com/t/making-links-to-pages-with-flash-movieclips-the-problem-is-please-help/57547/9 "2004-07-17T23:30:31Z")

</div>

ANYONE, i am using disco’s code and instead of just changing websites it opens up a new window…
