# Buttons as check box in flash

**URL:** <https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780>\
**Category:** Uncategorized\
**Created:** [September 14, 2001, 7:19pm UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780 "2001-09-14T19:19:41Z")\
**Posts on this page:** 6\
**Page:** 1

<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 14, 2001, 7:19pm UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/1 "2001-09-14T19:19:41Z")

</div>

hi  
can we show buttons as check boxes, if so once the mouse is clicked can we have the state remained,as it is.  
i tried…any help in this matter please

thanqs  
skm0911

---

<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 14, 2001, 8:42pm UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/2 "2001-09-14T20:42:48Z")

</div>

ok, as usual there are a thousand ways, here’s a simple one

make a movie with two frames. first frame unchecked, second frame checked.

put a stop action in both frames.

make a button (in the movie) and do this:

on(release){  
play();  
}

that oughta do it. it may need a third frame with a gotoAndStop(1); in it, but hopefully will work without it. try and see i guess.

---

<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 17, 2001, 1:46pm UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/3 "2001-09-17T13:46:21Z")

</div>

thanks, it worked but if i have few( 3 r 4) checkboxes and a user can select only one of them, how should i do it, do i have to write some Actionscript for it…

shiva

---

<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 18, 2001, 4:39am UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/4 "2001-09-18T04:39:19Z")

</div>

make a movie of a check. name it check

make a movie of a box. put a button in box:  
on(release){  
\_parent.check.\_x = this.\_x;  
\_parent.check.\_y = this.\_y;  
\_parent.chose = id;  
}

select the box and write:  
onClipEvent(load){  
id=0;  
}

copy the box and change id in each of them to be unique.

the variable “chose” will be the box where the check is. you may need to adjust the placement:  
\_parent.check.\_x = this.\_x+5;

as usual… there are a thousand ways… hope this one works for you.

---

<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 18, 2001, 7:45pm UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/5 "2001-09-18T19:45:02Z")

</div>

thanks for reply with the sample code, i’m trying it out.  
skm0911

---

<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 19, 2001, 10:47am UTC](https://forum.kirupa.com/t/buttons-as-check-box-in-flash/3780/6 "2001-09-19T10:47:32Z")

</div>

Sweet supra… hadn’t thought of that way of doing that myself. Sounds very efficient.
