Test example was a movieclip with instance name data on frame
1. It contains a checkbox named opt1. The code you posted in the
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.