# Flash MX Question for linking URLs

**URL:** https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834
**Category:** flash
**Created:** [January 8, 2003, 2:37am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834 "2003-01-08T02:37:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![DaveA](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DaveA](https://forum.kirupa.com/u/DaveA)
#### Post date: [January 8, 2003, 2:37am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/1 "2003-01-08T02:37:14Z")

</div>

Value= “/about\_us.htm”

…One of my links is a dynamic drop down menu , how can I open this URL in the same browser window?

Right now the link works fine but always in a new browser.

Thanks in advance if you help

Dave

---

<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 8, 2003, 2:47am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/2 "2003-01-08T02:47:09Z")

</div>

getURL(“file.html”, “\_self”)

It usually defaults to load in itself though. If you are testing inside Flash itself (preview movie) then of course it will open in a new window, because Flash isn’t a browser, so it has to open your browser. Try publishing your movie to an html file and testing it that 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: [January 8, 2003, 5:22am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/3 "2003-01-08T05:22:08Z")

</div>

Here is my messsage again…

Thanks! I did test in a browser dozens of times, each with a slight variation in the code for testing. I wish I could paste a sample of the code but the file is at work. Let me say that the flash frame that contains all the URL’s has 3 seperate references.

1 the text name of each item in the main menu selection  
2 the text names of each sub menu beneath the main (appears when 1 main menu item is clicked)  
3 the url’s that each sub menu points to.

The url section appear as:

Link(0) = “/about\_us”;  
Link(1) = “http://www.tech\_example.com”;  
Link(2) = “/our\_offerings”;

…an so on. Will your proposed “get” comand work in this type of string? If so, where would it go? I have Flash MX here at home but I cannot simulate the file easily. Can you still help?

Thanks a Mil,

Dave

---

<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 8, 2003, 5:31am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/4 "2003-01-08T05:31:09Z")

</div>

Ok, wouldn’t it be

link[0]  
link[1]  
link[2]

??? Since they are stored in arrays (it seems like your saying)

If so, then on the button you are using to launch the URL it would go like this…

```auto
on (release){
getURL(_root.link[1], "_self");
}

```

That way your getURL command (the one that calls links in Flash) will take the URL from your array link[1] and open it in the same browser window.

Does that help any?

---

<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 8, 2003, 8:17am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/5 "2003-01-08T08:17:26Z")

</div>

Your are correct with the …

link[0]  
link[1]  
link[2]

… sequence. I was tying to remember what it looked like. The code you provided looks right on and I think I will be in better shape. The only thing that puzzles me is that there really isn’t a physical button, everything is dynamic and referred to by it’s “link” location #. Should I be looking for something that serves a button?

I’m still learning but I think that the current script for the menu item automatically points down to the corresponding link # and is expecting to see something that follows the "link[X] = " command like a URL. If I’m way off let me know. I hope you are on tomorrow so I can send you actual code and replace my nonsense withsomething real. You’ve been great!

---

<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 8, 2003, 8:20am UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/6 "2003-01-08T08:20:43Z")

</div>

Well then what do you press on to go to a location?

There has to be a button of some sort to press on to go to a location. The only way I know of inside flash to change the browser location is the getURL command.

And unfortunately I will not be on tomorrow. I will be on earlier in the day, but not for the latter half ☹

---

<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 8, 2003, 7:27pm UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/7 "2003-01-08T19:27:21Z")

</div>

I’m sure your are right and I am just a Padowan Learner. Hopefully you will be on soon. I am going to attach the file that I mentioned, please let me know what you think.

Dave

---

<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 8, 2003, 7:39pm UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/8 "2003-01-08T19:39:09Z")

</div>

Yeah, that was easy. Your getURL is set to \_blank, it should be set to \_self.

Here is how to find it. On your stage you have the orange rectangle movie clip. Double click that to open it for editing. Inside that you have a button and a text field. Right click on the orange part (which is your button) and choose “Actions” to open the actions panel. In there you will see a getURL action at and the end it says “\_BLANK”, and you will want to change that to “\_self” and then it works great 🙂

Ok… now I have to ask, where did you get this menu? I love it!

---

<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 8, 2003, 8:02pm UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/9 "2003-01-08T20:02:34Z")

</div>

Thanks!!! I can’t wait to make the change. I believe I found it on [Flashkit.com](http://Flashkit.com) (lost’s of cool stuff). I either go there or Kirupa. I think my criteria on the search was Flash MX, with either dropdown or pulldown in the keyword. I have customized the menu just a bit, but it can get messy fast. This is all I have on the author, maybe it is based in Italy:

//  
// Copyright© 2002 FALCAO.  
// [alessandroministeri@libero.it](mailto:alessandroministeri@libero.it)  
//  
// Please contact me if you use this menù, i will add a link to  
// U on my website in future!  
//  
// ist’s all that i want…  
//  
// CUSTOMIZE THIS PAGE ONLY and HAVE FUN!!!  
//  
// LABEL OF SECTION

Thanks again LostinBeta, I’ll see if I can send you a link when I get this corporate site up. My site (fairly basic - no scripting yet) is [www.creativedetailer.com](http://www.creativedetailer.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 8, 2003, 8:04pm UTC](https://forum.kirupa.com/t/flash-mx-question-for-linking-urls/10834/10 "2003-01-08T20:04:59Z")

</div>

No problem man. Thanks for that info too 🙂
