# SubClass Variables

**URL:** <https://forum.kirupa.com/t/subclass-variables/225134>\
**Category:** flash\
**Created:** [May 9, 2007, 2:24am UTC](https://forum.kirupa.com/t/subclass-variables/225134 "2007-05-09T02:24:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingofnukes](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kingofnukes](https://forum.kirupa.com/u/kingofnukes)\
**Post date:** [May 9, 2007, 2:24am UTC](https://forum.kirupa.com/t/subclass-variables/225134/1 "2007-05-09T02:24:19Z")

</div>

1: Is there a way to set superclass variables from within a subclass?  
I can’t seem to accomplish it.

2: Also, why does it seem when I call a function, the superclass version is called instead of the sub? I construct the class using the sub, so whats the matter?

3: In one of the classes, I want to push a MovieClip it creates into an array, it works, but I get an undefined, then the value. :pa:

4: I have 3 levels of inheritance in my classes Specials -\> Human -\> Player, who do i call each one correctly from one another?

Thanks for any and all help, I really appreciate it 😛
