PDA

View Full Version : Calling a swf issues (action script 2)


Chapo
01-27-2010, 04:17 PM
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);