PDA

View Full Version : BASIC flash problem



MrPinkPanther
12-12-2008, 05:43 PM
I have a Button and some text with the Variable for it set as engine. I want it so when you type in Google it goes to Google and when you type in Yahoo it goes to Yahoo.

Have I just gone insane or should this be working!?!?



on (release){
if (_root.engine == "Google" or "google"){
getURL("http://www.google.com/");
}
else if (_root.engine == "Yahoo" or "yahoo"){
getURL("http://search.yahoo.com/");
}
}


They button and text is even in the same layer, I've got no clue whats going on and why its going on because it always goes to google, never yahoo. Any ideas?

Want to hide these adverts? Register an account for free!