# FL8: Form Variable Woes

**URL:** <https://forum.kirupa.com/t/fl8-form-variable-woes/189868>\
**Category:** flash\
**Created:** [June 6, 2006, 8:22pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868 "2006-06-06T20:22:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleutuna](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bleutuna](https://forum.kirupa.com/u/bleutuna)\
**Post date:** [June 6, 2006, 8:22pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868/1 "2006-06-06T20:22:35Z")

</div>

I’ve got a simple form, you change the text, hit ANSWER and it’s supposed to use a VERY simple “If…Else” to give you results.

The problem, however, is that it never seems to work for the positive answer, only the negative. After running a simple trace, the form variable (“babyText”) was not just the word, but instead, tons of HTML formatting and whatnot.

Obviously, this could be the issue - how can a variable confirm if what it’s reading from isn’t the same?

Here’s the .FLA  
[http://www.bleutuna.com/babyblues/bbf\_flash\_site\_old.fla](http://www.bleutuna.com/babyblues/bbf_flash_site_old.fla)

Here’s the code I’m using for the “If…else:”

if(babyText == “god”) {  
trace(babyText);   
} else {  
gotoAndStop(1);  
}

And here’s the trace results:

```auto
<p align="left"><font face="disgusting behavior" size="37" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>(guess)</b></font></p>

```

Please help me 😃

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 6, 2006, 8:53pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868/2 "2006-06-06T20:53:57Z")

</div>

```auto

trace(babyText.text);

```

---

<div class="post-metadata">

**Author:** ![bleutuna](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bleutuna](https://forum.kirupa.com/u/bleutuna)\
**Post date:** [June 6, 2006, 9:02pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868/3 "2006-06-06T21:02:32Z")

</div>

> [@Digitalosophy](#):
>
> ```auto
> 
> trace(babyText.text);
> 
> ```

This gave me the message:

undefined

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 6, 2006, 9:11pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868/4 "2006-06-06T21:11:59Z")

</div>

i don’t have flash 8 here so i cant open your file.

give your babyText textbox the instance name babyText and clear your variable name.

then on some event use

```auto

trace(babyText.text);

```

---

<div class="post-metadata">

**Author:** ![bleutuna](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bleutuna](https://forum.kirupa.com/u/bleutuna)\
**Post date:** [June 6, 2006, 11:50pm UTC](https://forum.kirupa.com/t/fl8-form-variable-woes/189868/5 "2006-06-06T23:50:36Z")

</div>

HAHA! Yay for Google Groups!

THe problem…Auto Kern. Flash 8 allows for it, other versions didn’t, but when you have Auto Kern, Flash adds in all this HTML formatting to make that happen. So, uncheck autokerning, and you can get your variables 😃

Oh, happy day!
