Clearing variables

Hi,

I have a form made up in flash, with various input fields. Once the user has entered values, it goes off down the timeline doing various things with them. Thing is, at the end I want a reset button which sends the playhead back to the start so the user can start again afresh. Problem is the values that the variables hold are obviously still displayed in the text box’s from the previous calculations.

How do I clear them, like it’s running anew ??

Thanks in advance if you can help.

Hi,

On your reset button your just need to reset values:

resetButton.onRelease = function() {
firstName.text = “”;
lastName.text = “”;
emailId.text = “”;

};


aShIsH

Thats…it

! Blatently obvious… but thanks. I just had a mental block because they were integers and not strings and therefore had no quotes to begin with !