# Access MovieClip instance on Stage within other class

**URL:** https://forum.kirupa.com/t/access-movieclip-instance-on-stage-within-other-class/329140
**Category:** Uncategorized
**Created:** [July 25, 2012, 6:25am UTC](https://forum.kirupa.com/t/access-movieclip-instance-on-stage-within-other-class/329140 "2012-07-25T06:25:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![QatiL](https://avatars.discourse-cdn.com/v4/letter/q/ccd318/32.png) [@QatiL](https://forum.kirupa.com/u/QatiL)
#### Post date: [July 25, 2012, 6:25am UTC](https://forum.kirupa.com/t/access-movieclip-instance-on-stage-within-other-class/329140/1 "2012-07-25T06:25:24Z")

</div>

Hi.  
i have movieclip instance on stage. Instance name _ **qwe** _ type of _ **Ship** _.  
I want to access it within other class _ **EnemyShip.as** _.  
i tried this.

```auto
MovieClip(this.parent).getChildByName("qwe")

```

.  
but got

_ **TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@26d03041 to flash.display.MovieClip.** _

I have not any document class.  
On publish settings checked on **Automatically declare stage instances.**

is there any way access _ **qwe** _ within EnemyShip.as?

And here is link to my flash project:

> **[testGame.zip](http://www.mediafire.com/file/kf6uiunys20cyzz/testGame.zip)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
