# CreateEmptyMovieClip & depth in as3

**URL:** https://forum.kirupa.com/t/createemptymovieclip-depth-in-as3/311954
**Category:** flash
**Created:** [July 21, 2010, 7:03am UTC](https://forum.kirupa.com/t/createemptymovieclip-depth-in-as3/311954 "2010-07-21T07:03:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anand\_as2](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anand\_as2](https://forum.kirupa.com/u/anand_as2)
#### Post date: [July 21, 2010, 7:03am UTC](https://forum.kirupa.com/t/createemptymovieclip-depth-in-as3/311954/1 "2010-07-21T07:03:59Z")

</div>

Hi,

I am new to as3, please help me over this.  
to create empty movie clip

var mystage = stage.getChildAt(0);  
var mc:MovieClip = new MovieClip();  
mystage.addChild(mc);

but, where I have to set depth and the instance name, when I trace the mc.name. It shows as “instance1”.

I need to set depth and to name the mc. please help me.

Thanks in advance.:):ne:
