# Calling a swf problems

**URL:** https://forum.kirupa.com/t/calling-a-swf-problems/303819
**Category:** Uncategorized
**Created:** [January 27, 2010, 3:51pm UTC](https://forum.kirupa.com/t/calling-a-swf-problems/303819 "2010-01-27T15:51:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chapo](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@chapo](https://forum.kirupa.com/u/chapo)
#### Post date: [January 27, 2010, 3:51pm UTC](https://forum.kirupa.com/t/calling-a-swf-problems/303819/1 "2010-01-27T15:51:51Z")

</div>

OK… i have a header made in flash, its 950 x 175 px. For every button in the header a swf is called in into a specif frame. The problem is that when the swf loads it does but not full size of 950 x 650 but it loads in the same header size. How can i make this work, hit the button and swf comes in in full size ?

this is the code of one of the buttons in my header:

var container:MovieClip = createEmptyMovieClip(“container”, getNextHighestDepth());

var mcListener:Object = new Object();  
mcListener.onLoadInit = function(target\_mc:MovieClip) {  
trace(“movie loaded”);  
target\_mc.gotoAndStop(155);  
};

var MCL:MovieClipLoader = new MovieClipLoader();  
MCL.addListener(mcListener);

MCL.loadClip(“Diving.swf”, container);
