PDA

View Full Version : Keyword to open new webpage


ktsears
03-12-2003, 09:18 PM
If trying to make a keyword box that will open to specific webpages when users enter the correct keyword. So far I can't get anything to work. I've attached the following code to the "go" button I made.

on (release) {
if (_root.txtKeyword=="red") {
getURL("./redmain.htm");
}
}

So if the word "red" is entered in the input text box (txtKeyword) then the user should be taken to the webpage "redmain", after clicking and releasing the "go" button. I plan on adding more, but I can't get anything to work right now.

Thanks for any help you can provide!

timeliner
03-12-2003, 09:30 PM
Hi there and welcome!
If you searched the tutorials you would have found this:http://www.actionscript.org/tutorials/beginner/Password_protected_pages/index.shtml ;)