HELP! Button To Open New Web Window

Im making a button for my friend for his web site, so when it is clicked. It will take the clicker to the index of the page. What is the code, or what steps do I do to make it do that. Also, if you can in flash. Can I make it so the window opens in the current one with the button?

NEW WINDOW

on(release){
getURL(“http://www.yoursite.com”,"_blank")
}

SAME WINDOW

on(release){
getURL(“http://www.yoursite.com”,"_self")
}

^THANKS!! Now If I click this in my window after hitting CTRL+Enter will it screw it up??

BTW: Do U Have AIM/AOL ?

No it will not. I just tested it to make sure and I recieved no error.

It wont screw anything up, but it may not have an immediate effect when tested that way. I think in test mode it will open a new window regardless of the option you picked though.

not entirely sure to tell the truth… test it out… worst case senario you have to task manager your flash program closed… but I doubt that it would even be that bad.

You are right david, it opens in a new window if you view it from CTRL+Enter, but if you view it on your HTML page it will give you the effect you want.

It doesn’t effect the program in any way.

Yea it messed it up lol. Thanks tho.

PS: Can you guys give me the code for HTML to have ya flash ish show up… You can give me fake Dimensions and www.yoursite.com for the URL to be easier… thanks

I have added a little page for you to view on my company site that will show you the coding for adding a .SWF file to your site :wink:

Hope it helps!

Click here to go to the page.

It really shouldn’t have messed anything up… Here I will copy and paste my the code I have…

NEW WINDOW

on (release) {
	getURL("http://www.yoursite.com", "_blank");
}

SAME WINDOW

on (release) {
	getURL("http://www.yoursite.com", "_self");
}

Both of these were tried, tested and true. They both work no problem.