# Checkbox not showing as checked when selected=true

**URL:** <https://forum.kirupa.com/t/checkbox-not-showing-as-checked-when-selected-true/315712>\
**Category:** flash\
**Created:** [November 2, 2010, 5:31pm UTC](https://forum.kirupa.com/t/checkbox-not-showing-as-checked-when-selected-true/315712 "2010-11-02T17:31:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gilgemesh](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@Gilgemesh](https://forum.kirupa.com/u/Gilgemesh)\
**Post date:** [November 2, 2010, 5:31pm UTC](https://forum.kirupa.com/t/checkbox-not-showing-as-checked-when-selected-true/315712/1 "2010-11-02T17:31:33Z")

</div>

I have a preferences option at the beginning of my app. It calls in some values from an XML file and passes them to a static var and to myCheckbox.selected which should display a checked box if the value is true. The values are being passed fine, but the checkbox isn’t showing up as checked.

Here’s the code:

```auto
//static var = checkbox = XML value
HockeyGametracker.showBlockedShots = this.trackBlocks.selected = preferencesXML.Block;
//this returns as true
trace(this.trackBlocks.selected);

```

Does anyone have any ideas? Thanks in advance.

-Gil
