# Problem containing 4 .SWF's on site

**URL:** https://forum.kirupa.com/t/problem-containing-4-swfs-on-site/292559
**Category:** flash
**Created:** [July 15, 2009, 7:30pm UTC](https://forum.kirupa.com/t/problem-containing-4-swfs-on-site/292559 "2009-07-15T19:30:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chrisdegrote](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chrisdegrote](https://forum.kirupa.com/u/chrisdegrote)
#### Post date: [July 15, 2009, 7:30pm UTC](https://forum.kirupa.com/t/problem-containing-4-swfs-on-site/292559/1 "2009-07-15T19:30:31Z")

</div>

Hey all,

I’ve got a problem with containing properly the .swf on my (main menu) site. Because the external .SWF’s got a parralax effect it overlaps the swf above also the .swf is not nicely stretched out. This is the effect on my site that I want [www.seniorict.com](http://www.seniorict.com) but as you look at the zip/fla(menu test) you see the complete file and how the effects are not working well.

code is

[AS] stop();  
var swfs:Array = new Array(“home”, “kandidaten”, “opdrachtgevers”, “contact”);  
var loaders:Array = new Array();  
function setLoaderSize(i:uint):void {  
loaders\*.y = stage.stageHeight / swfs.length \* i;  
loaders\*.scaleY = 1 / swfs.length;  
}  
for (var i:uint = 0; i \< swfs.length; i++) {  
loaders\* = new Loader();  
loaders\*.load(new URLRequest(swfs\* + “.swf”));  
setLoaderSize(i);  
addChild(loaders\*);  
}  
stage.align = StageAlign.TOP\_LEFT;  
stage.addEventListener(Event.RESIZE, resizeHandle);  
function resizeHandle(e:Event):void {  
for (var i:uint = 0; i \< swfs.length; i++) {  
setLoaderSize(i);  
}  
}  
[/AS]  
Any help is greatly appreciated!😉
