This content has been marked as final. Show 3 replies
using an onEnterFrame handler to do that probably doesn't make sense.
If you have a 'form' on a frame that you want reset after someone has pressed a submit button for example, then you should just write a reset function that assigns empty/default values to all your input fields/components.
You can then call this function when the clip arrives at that frame (which might be useful for example if you have default values in some fields), and from either the onRelease handler of your submit button or the onLoad handler of your receiving LoadVars if you want to wait until the server responds with a successful submission.
Yep. Just did that with empy value onButtonRelease. Tried it also with onEnterFrame and it has a cool effect. You can't write anything in the inputfield. It keeps it blank.
no problems. Yes using onEnterFrame might cause a usability problem, lol.