Q: How can I force a link to open in a new window when a button is clicked?
[A:][/b] First off, make sure that you have the button that you want to work with is selected. From there, make sure the the Behaviors Panel is open. Click on the little plus sign to show the list of available events. The one you want is labeled
Web. In the sub-menu that appears, select
Go to web page. When a dialog box pops up, enter the URL you want to open when the button is clicked and select "_blank" in the
Open in field.
When you are all set, your ActionScript code should look like this
on (release) {
getURL("http://www.someurl.com","_blank");(replace "someurl.com" with a real web address)
}
Explanation of the code: The "_blank" instruction tells Flash to open a web page in a new window when a button is clicked. This is extremely useful since a lot of the time, you don't want the user to go away from the current web page they are on when they open another page.
Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599
-------------------------
http://www.acidplanet.com/artist.asp?AID=290705
"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"