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
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
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.
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
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…
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?
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!
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
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
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!
Thanks!!! I can’t wait to make the change. I believe I found it on 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
//
// 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.
No problem man. Thanks for that info too