# checkBoxes within a ScrollPane

**URL:** <https://forum.kirupa.com/t/checkboxes-within-a-scrollpane/285320>\
**Category:** flash\
**Created:** [March 30, 2009, 2:26pm UTC](https://forum.kirupa.com/t/checkboxes-within-a-scrollpane/285320 "2009-03-30T14:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cre8onamac](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@cre8onamac](https://forum.kirupa.com/u/cre8onamac)\
**Post date:** [March 30, 2009, 2:26pm UTC](https://forum.kirupa.com/t/checkboxes-within-a-scrollpane/285320/1 "2009-03-30T14:26:31Z")

</div>

I’m stumped.

I have checkBoxes within a scrollPane on the main stage.  
The buttons associated with those checkBoxes are also on the main stage (can’t be withing the scrollPane). But I can’t get the actionscript to work.

Can somone point out what I’ve overlooked, please??

Checkbox for Blue (placed on main stage) work’s fine  
Checkbox for Red is the problem one  
Instance = the instance name of the scrollPane  
Identifier = the Identifier name of the content within the scollPane

```auto
button.onRelease=function(){
 
 if (chbox_BLUE.selected) {
  BLUE._visible = true
 } 
 
 if (Instance.Identifier.CheckBox_RED.selected) {
  RED._visible = true 
 } 
}

```

sample: [http://www.actionscript.org/forums/attachment.php3?attachmentid=32146&d=1238428130](http://www.actionscript.org/forums/attachment.php3?attachmentid=32146&d=1238428130)
