# Application wrapper and access to stage

**URL:** <https://forum.kirupa.com/t/application-wrapper-and-access-to-stage/260493>\
**Category:** flash\
**Created:** [May 16, 2008, 7:54am UTC](https://forum.kirupa.com/t/application-wrapper-and-access-to-stage/260493 "2008-05-16T07:54:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethernal](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@ethernal](https://forum.kirupa.com/u/ethernal)\
**Post date:** [May 16, 2008, 7:54am UTC](https://forum.kirupa.com/t/application-wrapper-and-access-to-stage/260493/1 "2008-05-16T07:54:33Z")

</div>

Hi,

I have my application swf with its document class **Application**. I made a wrapper swf in order to preload the application, so the entire project has the following structure:

**wrapper.swf** -\> Document class: **TopLevel.as**  
**main.swf** -\> Document class: **Application.as**

The problem is that I cannot access the stage when I publish the main.swf file, so it gives compiling errors.

_Note: Application and other classes used in the project try to access the stage through static methods (i.e. Application.showPreload() )._

What am I doing wrong?
