Flashkit Members,
Help me out here... ive been toying with this for an hour now...
i have a game im working on, so when you hit NEW GAME it asks
you to put a name in a text entry field called 'savename'.
so im now trying to make it so if theres nothing in the box when you hit ok... itll say something like...
"If you dont enter a save name, your game will not be saved. Is this ok?" with a yes or no button, yes SKIPPING the save feature... no just making it go back so you can enter a name.
now i already have the message box ready and everything... but i cant get it to where if anything else is entered it just goes forward in the save process....
am i making sense? i hope so.. heres the button code.
----------------------------------------
on (release, keyPress "<Enter>") {
if (savename == "") {
message.gotoAndStop(2);
stop();
}
if (savename == " ") {
message.gotoAndStop(2);
stop();
}
}
----------------------------------------
So from here you can see how if NOTHING is entered or just a space..
itll bring up my error message giving the warning...
NOW how do i use ELSE? to make it bypass the error and just continue normally if there IS SOMETHING IN THE TEXT BOX... anything i try.. when the error comes up it plays the scene out as well...
thanks for your time in looking
and thanks again
-Clint Remley-