# Really quick easy question

**URL:** <https://forum.kirupa.com/t/really-quick-easy-question/6281>\
**Category:** Uncategorized\
**Created:** [October 3, 2002, 9:38am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281 "2002-10-03T09:38:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hobbes](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@Hobbes](https://forum.kirupa.com/u/Hobbes)\
**Post date:** [October 3, 2002, 9:38am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/1 "2002-10-03T09:38:04Z")

</div>

How do I add a variable name to the tick boxes within the flash MX components?

---

<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:** [October 3, 2002, 11:37am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/2 "2002-10-03T11:37:45Z")

</div>

Can you give an example, I don’t understand what you’re talking about.

pom :asian:

---

<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:** [October 3, 2002, 12:07pm UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/3 "2002-10-03T12:07:28Z")

</div>

okay.

Im creating a form. On the form I have a number of ‘input text’ boxes, and at the bottom I can assign these text boxes a variable, that can then be picked up by a “cgi bin thingie” (which i didnt design). (this works fine).

My “cgi bin thingie” designer is now wanting to know how to put a variable on a tick box in flash. I used the components that come with flash, but the properties box at the bottom doesnt give the option to assign a variable…

☹

any ideas?

Cheers,

Obz

---

<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:** [October 3, 2002, 1:29pm UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/4 "2002-10-03T13:29:56Z")

</div>

Try this I did for someone here - it traces “checked” but instead of tracing check you can change the code to assign a variable

---

<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:** [October 3, 2002, 3:47pm UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/5 "2002-10-03T15:47:21Z")

</div>

You can also look at the tutorials here, there’s one about creating a whole form, and there’s something about checkboxes.

pom :cyclops:

---

<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:** [October 4, 2002, 8:14am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/6 "2002-10-04T08:14:48Z")

</div>

to assign a variable i use:

set (); ?

Im sure ive seen an assignVariable bit of code before… but i cant seem to find it in the boxes.

---

<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:** [October 4, 2002, 8:19am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/7 "2002-10-04T08:19:42Z")

</div>

actually you can just name the variable, place an equal sign and then whatever you want it set to.

ie

myVariable=“this string of characters”;  
or  
myOtherVariable=Math.sin(Math.PI\*something/2);  
or  
stillAnotherVariable=4;

---

<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:** [October 4, 2002, 8:20am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/8 "2002-10-04T08:20:55Z")

</div>

```php
function checked() {
if (checkBox.getValue()) {
theVariable = whatever // <--- store a variable when checked
}
}

```

---

<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:** [October 4, 2002, 10:17am UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/9 "2002-10-04T10:17:26Z")

</div>

thanks guys. 🙂

[swf=“[http://web.tmb.uk.com/AUDITEL/resources/obz.swf](http://web.tmb.uk.com/AUDITEL/resources/obz.swf) height=50 width=200”][/swf]

---

<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:** [October 4, 2002, 12:16pm UTC](https://forum.kirupa.com/t/really-quick-easy-question/6281/10 "2002-10-04T12:16:40Z")

</div>

just testing my signature 🙂
