# Help with Component

**URL:** <https://forum.kirupa.com/t/help-with-component/42673>\
**Category:** flash\
**Created:** [February 11, 2004, 7:49pm UTC](https://forum.kirupa.com/t/help-with-component/42673 "2004-02-11T19:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geos](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@geos](https://forum.kirupa.com/u/geos)\
**Post date:** [February 11, 2004, 7:49pm UTC](https://forum.kirupa.com/t/help-with-component/42673/1 "2004-02-11T19:49:07Z")

</div>

Im trying to pass values to a php.

My problem is when I try to pass the value (true / false) of a checkbox. Its set to be false by default but the thing is that I have not found the way to pass the “selected” status to my php.

I have the ckbx inside a movieclip and on a button press I pass the variables (loadVariables) from the movieclip to php (POST)

I would like to know how to obtain the current status of the ckbx and pass it to a variable in Flash to send it to php (the last i know how to do)

I tried using if(check1.selected == true) but it does not work

I do not have much experience in AS so i would appreciate a detail answered

thanks

so that you get the code

one button called submit - does the obvious  
check1 - instance name for the checkbox component  
ck1 - instance name for the var (dyn txt) i am using to get the value

---

<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:** [February 11, 2004, 8:05pm UTC](https://forum.kirupa.com/t/help-with-component/42673/2 "2004-02-11T20:05:26Z")

</div>

//submit button

on (press) {  
if (check1.setValue == true){  
ck1 = “si”;  
} else {  
ck1 = “no”;  
}  
}

not working either

---

<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:** [February 11, 2004, 8:16pm UTC](https://forum.kirupa.com/t/help-with-component/42673/3 "2004-02-11T20:16:20Z")

</div>

solved it thanks any way 🙂
