# AS3: How to check if a movieclip already exists?

**URL:** https://forum.kirupa.com/t/as3-how-to-check-if-a-movieclip-already-exists/244791
**Category:** flash
**Created:** [November 21, 2007, 7:33pm UTC](https://forum.kirupa.com/t/as3-how-to-check-if-a-movieclip-already-exists/244791 "2007-11-21T19:33:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)
#### Post date: [November 21, 2007, 7:33pm UTC](https://forum.kirupa.com/t/as3-how-to-check-if-a-movieclip-already-exists/244791/1 "2007-11-21T19:33:55Z")

</div>

In AS2, I’d create a movieclip and give it an instance name. Then all I’d have to do for example is, check if \_root[“myinstance”+i] == undefined

but in AS3, if i’m dynamically creating 10 movieclips, how do i check to see if it already exists?

sorry if the question is dumb.
