# External SWF Disappears on resize

**URL:** https://forum.kirupa.com/t/external-swf-disappears-on-resize/311395
**Category:** flash
**Created:** [July 5, 2010, 3:58pm UTC](https://forum.kirupa.com/t/external-swf-disappears-on-resize/311395 "2010-07-05T15:58:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![siremorgan](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siremorgan](https://forum.kirupa.com/u/siremorgan)
#### Post date: [July 5, 2010, 3:58pm UTC](https://forum.kirupa.com/t/external-swf-disappears-on-resize/311395/1 "2010-07-05T15:58:08Z")

</div>

I am loading external swf’s inside _ **content\_2** _ and when i resize my browser the external content OR content\_2 disappears. Can someone help me as to what I need to do to stop this. I’ve tried adding an onresize function but that does not work. Here my as3 code:

```php

scroll_sb2.scrolling("content_2", "area_2", 0.18); // Range from 0.00 to 1.00
stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event):void
{
 scroll_sb2.x = stage.stageWidth - scroll_sb2.width - 2;
 scroll_sb2.y = 0;
 scroll_sb2.height = stage.stageHeight;
  
 area_2.x = stage.stageWidth/2 - area_2.width/2;
 area_2.y = stage.stageHeight/2 - area_2.height/2;
 area_2.y = 0;
 area_2.height = stage.stageHeight;
 
 content_2.x = stage.stageWidth/2 - content_2.width/2;
 content_2.y = stage.stageHeight - content_2.height; // comment this line if you whant to remove the carrusel affect on resize browser
 
 backgroundMC.x=0;
 backgroundMC.y=0;
 backgroundMC.width=stage.stageWidth;
 backgroundMC.height=stage.stageHeight;
 
 downbg_mc.x = 0;
 downbg_mc.y = 0;
 downbg_mc.width = stage.stageWidth;
}
 

stage.align = StageAlign.TOP_LEFT;      
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.dispatchEvent(new Event(Event.RESIZE));
 
var mem:String = Number ( System.totalMemory / 2048 / 2048 ).toFixed ( 2 ) + 'Mb';
trace ( mem );

```
