# Input Box

**URL:** <https://forum.kirupa.com/t/input-box/65163>\
**Category:** flash\
**Created:** [September 23, 2004, 2:55pm UTC](https://forum.kirupa.com/t/input-box/65163 "2004-09-23T14:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dane](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@Dane](https://forum.kirupa.com/u/Dane)\
**Post date:** [September 23, 2004, 2:55pm UTC](https://forum.kirupa.com/t/input-box/65163/1 "2004-09-23T14:55:58Z")

</div>

Hey

I have 2 input boxes on the main stage. I have 1 button I have made into a movie clip so the button animation will work. My problem is:  
I want it so that when I click on the button and RELEASE it gets the values in those 2 input boxes.

Input boxes have been assigned VAR

on (release) {  
if (input1VAR != “” && input2VAR != “”) {  
\_root.gotoAndPlay(2);  
}  
else {  
\_root.gotoAndPlay(3);  
}  
}

The problem is no matter what it will get the input values from the main stage… Anyone got a solution??

I did not assign an INSTANCE name for the BUTTON(movie clip)

---

<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:** [September 23, 2004, 3:09pm UTC](https://forum.kirupa.com/t/input-box/65163/2 "2004-09-23T15:09:19Z")

</div>

```auto

on(release){
trace(_root.textfieldName.text);
}

```

Once you have the data you can do whatever you’d like

```auto

on(release){
if(_root.textfieldName.text.==""){
gotoAndPlay(error);
}else{
gotoAndPlay(thanks);
}
}

```

---

<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:** [September 23, 2004, 3:21pm UTC](https://forum.kirupa.com/t/input-box/65163/3 "2004-09-23T15:21:53Z")

</div>

Ok got it working… Thanx man, been annoying me since yesterday 🙂 guess I don’t need to use VAR at all for that.

---

<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:** [September 23, 2004, 3:33pm UTC](https://forum.kirupa.com/t/input-box/65163/4 "2004-09-23T15:33:22Z")

</div>

Ok this is weird… It works great when I test on my computer, as soon as it’s running on server it don’t work… HUH?
