# Can loaded swfs reference static methods of container.swf?

**URL:** <https://forum.kirupa.com/t/can-loaded-swfs-reference-static-methods-of-container-swf/239966>\
**Category:** Uncategorized\
**Created:** [September 27, 2007, 6:55pm UTC](https://forum.kirupa.com/t/can-loaded-swfs-reference-static-methods-of-container-swf/239966 "2007-09-27T18:55:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orangehaze](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/orangehaze/32/4048_2.png) [@orangehaze](https://forum.kirupa.com/u/orangehaze)\
**Post date:** [September 27, 2007, 6:55pm UTC](https://forum.kirupa.com/t/can-loaded-swfs-reference-static-methods-of-container-swf/239966/1 "2007-09-27T18:55:59Z")

</div>

Hello,  
I have a Container.swf that is responsible for loading in other Content.swfs. I defined a Container.as file as the document class for Container.swf, and created a few static methods that I want to have available for the Content.swfs. I figured that after a Content.swf is loaded, I could just reference those methods like so :

Container.myStaticMethod(“var1”, “var2”);

but I am getting a compile time error which I understand fine, but wasn’t expecting it, since it wasn’t thrown with AS2.

1120: Access of undefined property Ground

I also tried Stage.myStaticMethod(“var1”, “var2”); which yields pretty much the same result.

Do I need to import my class Container.as class in each of my content.swfs?

Thanks in advance
