# Targeting object on main timeline from script within MC timeline

**URL:** https://forum.kirupa.com/t/targeting-object-on-main-timeline-from-script-within-mc-timeline/300086
**Category:** flash
**Created:** [November 16, 2009, 5:31am UTC](https://forum.kirupa.com/t/targeting-object-on-main-timeline-from-script-within-mc-timeline/300086 "2009-11-16T05:31:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)
#### Post date: [November 16, 2009, 5:31am UTC](https://forum.kirupa.com/t/targeting-object-on-main-timeline-from-script-within-mc-timeline/300086/1 "2009-11-16T05:31:11Z")

</div>

I’m trying to add functionality to a 3D carousel. There’s a movie clip that has a script on the first frame of its timeline, and I would like to add some code to target a textfield back on the main timeline. I’ve tried using “parent” but I get the following error:

```auto
1119: Access of possibly undefined property mcVideoControls through a reference with static type flash.display:DisplayObjectContainer.

```

The line of code looks like this:

```auto
parent.mcVideoControls.desc_tb.text = vidText;

```

“mcVideoControls” is the instance name of the clip and “desc\_tb” the name of the textfield within it. Given that I can’t move all this code from its timeline, how do I go about targeting the clip/textfield on the main timeline?
