# Subclass parent question

**URL:** <https://forum.kirupa.com/t/subclass-parent-question/268184>\
**Category:** flash\
**Created:** [August 11, 2008, 6:24am UTC](https://forum.kirupa.com/t/subclass-parent-question/268184 "2008-08-11T06:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tedc](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tedc](https://forum.kirupa.com/u/tedc)\
**Post date:** [August 11, 2008, 6:24am UTC](https://forum.kirupa.com/t/subclass-parent-question/268184/1 "2008-08-11T06:24:16Z")

</div>

When instantiating a class from another class, if I want to access the “caller class” as a parent from within the subclass, do I always have to pass “this” as a movieclip to the constructor? I am kind of new to as3 and I am finding that to dispatch events how I want them many times I need access to the parent and this code does not work properly:

```auto

var mc:MovieClip = parent as MovieClip;
mc.method();

```

And if the best way to access the caller is by passing the caller as a movieclip through the constructor of the subclass, then why couldnt they have just made it an inherited property since its used so often?
