# Forms in Flash

**URL:** <https://forum.kirupa.com/t/forms-in-flash/21587>\
**Category:** flash\
**Created:** [May 23, 2003, 1:56pm UTC](https://forum.kirupa.com/t/forms-in-flash/21587 "2003-05-23T13:56:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brockus](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@brockus](https://forum.kirupa.com/u/brockus)\
**Post date:** [May 23, 2003, 1:56pm UTC](https://forum.kirupa.com/t/forms-in-flash/21587/1 "2003-05-23T13:56:03Z")

</div>

I’m having some problems making forms work in Flash. Basically I’m using the code from a tutorial I found on Kirupa, but here is the issue. I’ve created a couple of Radio Buttons that are labeled “yes” and “no”. This is the code that I have placed in an action layer above:

function customQuestion(component) {  
custom = component.getValue();  
}

custom.setChangeHandler(“customQuestion”);

When I click “yes” or “no”, my variable “custom” takes on yes or no, as it should. When I go to another frame and then come back to this one, the radio buttons are empty. If I then click on “no” my variable is still registered to yes. I need to figure out how I can go back to the frame and have the radio button display what was clicked before and also change values if the user wants to change his mind.

Please help, a dead line is looming!

-Brock

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 23, 2003, 4:23pm UTC](https://forum.kirupa.com/t/forms-in-flash/21587/2 "2003-05-23T16:23:50Z")

</div>

I did some messing around figured that I couldn’t have the same name “custom” listed twice. So I basically am not having a problem getting the myCustom variable to equal yes or no, but when I leave that frame and then go back the radio button doesn’t stay checked.
