PDA

View Full Version : HELP!! Button To Open New Web Window



Sykull
September 13th, 2002, 03:20 AM
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?

lostinbeta
September 13th, 2002, 03:31 AM
NEW WINDOW

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


SAME WINDOW

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

Sykull
September 13th, 2002, 03:44 AM
^THANKS!! Now If I click this in my window after hitting CTRL+Enter will it screw it up??

BTW: Do U Have AIM/AOL ?

lostinbeta
September 13th, 2002, 03:51 AM
No it will not. I just tested it to make sure and I recieved no error.

upuaut
September 13th, 2002, 03:52 AM
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.

lostinbeta
September 13th, 2002, 03:54 AM
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.

Sykull
September 13th, 2002, 04:25 AM
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

Element
September 13th, 2002, 05:10 AM
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 ;)

Hope it helps!

Click here (http://www.gpinteractive.com/flashinput.htm) to go to the page.

lostinbeta
September 13th, 2002, 12:10 PM
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.