# A question on movieclips

**URL:** https://forum.kirupa.com/t/a-question-on-movieclips/291704
**Category:** flash
**Created:** [July 3, 2009, 1:26pm UTC](https://forum.kirupa.com/t/a-question-on-movieclips/291704 "2009-07-03T13:26:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![farban](https://avatars.discourse-cdn.com/v4/letter/f/d07c76/32.png) [@farban](https://forum.kirupa.com/u/farban)
#### Post date: [July 3, 2009, 1:26pm UTC](https://forum.kirupa.com/t/a-question-on-movieclips/291704/1 "2009-07-03T13:26:58Z")

</div>

Just a curious question on trying to understand why this happens.

setting a position of movieclip called red x and y position within a movieclip called background

```auto
background.redsquare.x = 300;
            background.redsquare.y = 300;

```

comes up with TypeError: Error #1010: A term is undefined and has no properties.

setting a position of movieclip called red x and y position withen a movieclip called background

```auto
redsquare.x = 300;
            redsquare.y = 300;

```

This works fine but how can that be when surely you must access the red withen the background rather then just accessing red?

Just wondering if anyone has a answer to this.
