Skip to main content
Inspiring
April 7, 2007
Question

CheckBox within MovieClip will not select

  • April 7, 2007
  • 1 reply
  • 213 views
I have a CheckBox within a MovieClip, and I'm simply trying to set the selected property to true.

my movie clip's instance name is "data" and my CheckBox component's instance name is "opt1".

My code is:

data.opt1.selected = true;

Anybody know why this code doesn't work???

I only have trouble with the CheckBoxes within the movie clips, all other checkbox.select properties work fine.

//thanks 🙂 !!!

This topic has been closed for replies.

1 reply

Participating Frequently
April 7, 2007
This works fine.

Test example was a movieclip with instance name data on frame 1. It contains a checkbox named opt1. The code you posted in the frame.
data.opt1.selected = true;

Perhaps where you have the code the reference is inappropriate. You have the code inside a child or the data clip or a sibling of the data or somewhere other than the timeline to which data is attached.