# Newbie: How to access class instance from childSWF

**URL:** <https://forum.kirupa.com/t/newbie-how-to-access-class-instance-from-childswf/331521>\
**Category:** flash\
**Created:** [August 18, 2013, 3:46pm UTC](https://forum.kirupa.com/t/newbie-how-to-access-class-instance-from-childswf/331521 "2013-08-18T15:46:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squadjot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/squadjot/32/3479_2.png) [@squadjot](https://forum.kirupa.com/u/squadjot)\
**Post date:** [August 18, 2013, 3:46pm UTC](https://forum.kirupa.com/t/newbie-how-to-access-class-instance-from-childswf/331521/1 "2013-08-18T15:46:22Z")

</div>

Hi  
I got a child swf that needs to access a public static function in my “main” class, in parent swf.  
When i compile the child SWF with code myApp.myFunction() it says it does not know what myApp is (logically)  
I guess i need to check if parent exist, then “find” the class instance in the parent swf? I’m not sure exactly how…

Edit: I know i could include the class in the child SWF, but that is not what i’m looking for.
