For clearing the textfield you can just use:
total.text = "";
I am dumbfounded at how simple that was XD
Thanks, you are turning into the goto guy it seems.
Ok, i'm back again, and thanks for all the help so far
Because I plan on having the Enter button check what is in total.text (in the keypad swf) against the random number generated (in the other swf) to see if they match, i figured it'd be a good idea to get the 2 swf files talking first. I'm using localconnection to get the info from one swf to the other and all that works fine, except that it only works if i have a button that does the sending.
I've added a second dynamic text to the keypad (which will be hidden from view once all's said and done) and a button (which i'll remove later) that sends the random number to that text box.
What I need is for the number to be sent whithout having to click the button. Is this even possible? All the examples I can find have a button in one file that sends to the other when pressed.
Once I have this down i'll be making the Enter use an if then code to check and make sure that the 2 text fields in the keypad file are the same, if yes great then open the door, if no try again.