# Make object from class that extend MovieClip

**URL:** <https://forum.kirupa.com/t/make-object-from-class-that-extend-movieclip/295869>\
**Category:** Uncategorized\
**Created:** [September 6, 2009, 8:33am UTC](https://forum.kirupa.com/t/make-object-from-class-that-extend-movieclip/295869 "2009-09-06T08:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samroni](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@samroni](https://forum.kirupa.com/u/samroni)\
**Post date:** [September 6, 2009, 8:33am UTC](https://forum.kirupa.com/t/make-object-from-class-that-extend-movieclip/295869/1 "2009-09-06T08:33:58Z")

</div>

Hi guys,

googled it and hardly found any answer(seriously)

need a quick solution for this:

- How to create object from class that extends MovieClip

Say i have a class name MC

```auto
package {
    import flash.display.MovieClip;
    
    public class MC extends MovieClip {
    
        public function MC() {
        }
    }
}

```

and in main timeline, i create variable from MC Class, and make an object id:

```auto
var mc = new MC();
mc.id = 1;
trace(mc.id);

```

strangely enough, it gave me this error:  
Error #1056: Cannot create property id on MC.

how do i fix this issue? why it can’t make any object since it is a MovieClip?

Thanks ya people 😃
