# AS2 OOP Reference to parent class?

**URL:** <https://forum.kirupa.com/t/as2-oop-reference-to-parent-class/255346>\
**Category:** flash\
**Created:** [March 21, 2008, 1:59pm UTC](https://forum.kirupa.com/t/as2-oop-reference-to-parent-class/255346 "2008-03-21T13:59:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitech](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitech/32/2542_2.png) [@nitech](https://forum.kirupa.com/u/nitech)\
**Post date:** [March 21, 2008, 1:59pm UTC](https://forum.kirupa.com/t/as2-oop-reference-to-parent-class/255346/1 "2008-03-21T13:59:16Z")

</div>

Hi,

I am quite new at OOP in AS2, so please excuse me if the answer to my question seems obvious.

I have a site class with different properties. The site class creates a Background class. I want the background class to use the Site class’ stylesheet object. How can this be done?

At first I thought about passing the site object to the Background class’ constructor, but maybe there is a way to reference to the calling class?

I am really looking for best practice advice here 🙂

Kind regards,  
nitech
