# Resize external

**URL:** https://forum.kirupa.com/t/resize-external/297590
**Category:** Uncategorized
**Created:** [October 5, 2009, 6:30pm UTC](https://forum.kirupa.com/t/resize-external/297590 "2009-10-05T18:30:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonas1976](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jonas1976](https://forum.kirupa.com/u/jonas1976)
#### Post date: [October 5, 2009, 6:30pm UTC](https://forum.kirupa.com/t/resize-external/297590/1 "2009-10-05T18:30:08Z")

</div>

hello,  
I have a site with resize  
and how do I resize an external mapa.swf within contactos.swf external?  
I have 4 buttons, and clicking the button contacts, I have another button that calls a mapa.swf, so that is not centered mapa.swf …

my code in main

```auto
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

function resizeHandler(e:Event):void {
    mySampleMC.x = (stage.stageWidth-762)/2;
    mySampleMC.y = (stage.stageHeight-356)/2;
}
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);

stage.dispatchEvent(new Event(Event.RESIZE));

///////movieclip news///////
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, redimensiona);
news.y=stage.stageHeight-news.height;
function redimensiona(event:Event):void {
    news.y=stage.stageHeight-news.height;
}

stop();

```

and a example of my problem

[http://rapidshare.com/files/288941425/exemplo.zip.html](http://rapidshare.com/files/288941425/exemplo.zip.html)

thank you
