# Simple Stage Manager

**URL:** <https://forum.kirupa.com/t/simple-stage-manager/230451>\
**Category:** open source\
**Created:** [June 26, 2007, 11:53am UTC](https://forum.kirupa.com/t/simple-stage-manager/230451 "2007-06-26T11:53:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyM103](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andym103/32/2540_2.png) [@AndyM103](https://forum.kirupa.com/u/AndyM103)\
**Post date:** [June 26, 2007, 11:53am UTC](https://forum.kirupa.com/t/simple-stage-manager/230451/1 "2007-06-26T11:53:24Z")

</div>

Hi,

I created a simple stage manager that makes it easier for managing Full Browser Flash.

Here is the class:

```auto
class uk.co.amict.stageManager
{
    function stageManager()
    {
        Stage.scaleMode = "noScale";
        Stage.align = "TL";
        Stage.addListener(this);
    }
    
    function onResize():Void
    {
        //Action to run when the SWF is resized
        //-->NB: The following function MUST exist for this sytem to work
        resizePage();
    }
    
    function resizePage(){}
}

```

To use it:  
[LIST]  
[_]Include the Class  
[_]Create a new instance of StageManager[/LIST][INDENT]

```auto
var sm:stageManager = new stageManager();

```

[/INDENT][LIST]  
[\*]Create a resizer function[/LIST][INDENT]

```auto
sm.resizePage = function()
{
    //Action to perform when resized
}

```

[/INDENT][LIST]  
[\*]Resize the page [this is a Firefox workaround][/LIST][INDENT]

```auto
sm.resizePage()

```

[/INDENT]Enjoy (free to use - completely open source)
