# Loading swf into swf and access vars from level0?

**URL:** <https://forum.kirupa.com/t/loading-swf-into-swf-and-access-vars-from-level0/253859>\
**Category:** Uncategorized\
**Created:** [March 5, 2008, 10:01pm UTC](https://forum.kirupa.com/t/loading-swf-into-swf-and-access-vars-from-level0/253859 "2008-03-05T22:01:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![halfasleeps](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/halfasleeps/32/2856_2.png) [@halfasleeps](https://forum.kirupa.com/u/halfasleeps)\
**Post date:** [March 5, 2008, 10:01pm UTC](https://forum.kirupa.com/t/loading-swf-into-swf-and-access-vars-from-level0/253859/1 "2008-03-05T22:01:16Z")

</div>

I want swf-A to load swf-B but then I want swf-B to call a function defined on swf-A.

in AS2.0 all I would need to do is put **\_level0.functionName(“params”);** inside swf-B

but in AS3.0 there is no \_level0 I have tried:

**MovieClip(root).refreshScroller();**  
and  
**MovieClip(stage).refreshScroller();**

neither work.

basically I am making a shell _ **AIR** _ swf which contains a scrollPane that I want to use to load any other swf and then be able to scroll the content. but I need the loaded swf to be able to tell the shell swf to update the scrollPane when the loaded swf’s content has changed size.

THANKS.
