[Flash8 AS2]Flash root Movie Resize Problem

Greetings ladies and gentlemen,

I have been going round and round in circles, trying to solve this annoying little problem, and have just ended up biting myself in the small of the back. I need help from someone who really knows their flash.

My problem is this - I have a parent flash movie of size 900x800. I have a button inside this parent that then loads an external swf (size 300x200) into an empty mc in the parent. My problem is that when the external swf loads, it resizes the parent movie (or repositions it depending on whether I am using IE or Firefox).

I can’t seem to work out why or how it’s happening, and it happens whether I use the standard Flash embedding or the swfobject method for my HTML page that the movie is embedded in.

The actionscript code in the parent is very basic:

but1.onRelease = function() {
	_root.createEmptyMovieClip("mp3_player", getNextHighestDepth());
	mp3_player._x = 240;
	mp3_player._y = 390;
	mp3_player.loadMovie("mp3player.swf");
}

I can’t imagine why the root movie jumps down in size when the button is pressed and the external swf loaded. Please, could anyone shed some light?

I have attached a zip file with all of the relevant files. test.html uses the standard flash embedding. test2.html uses the swfobject method.

The test2.html file has the following embedding:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<!-- saved from url=(0014)about:internet -->
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title>Test</title>
<script type=“text/javascript” src=“swfobject.js”></script>
<STYLE type=“text/css”>
<!–
/* hide from ie on mac */
html {
height: 100%;
overflow: hidden;
}

#flashcontent {
	height: 100%;
}
/* end hide */

body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #FFFFFF;
}

–>
</STYLE>
</head>
<body bgcolor="#CCCCCC">

<div id=“flashcontent”>
<H1 class=“container”>Test<FONT class=“text”>Test</FONT></H1>
<P>This content requires the Macromedia Flash Player. <a href=“http://www.macromedia.com/go/getflash/”>Get Flash</a></P>
</div>

<script type=“text/javascript”>
// <![CDATA[

var so = new SWFObject("test.swf", "movie", "100%", "100%", "7", "#CCCCCC");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
so.addParam("quality", "high");
so.addParam("wmode", "opaque");
so.addParam("scale", "showall");
so.write("flashcontent");

// ]]&gt;

</script>

</body>
</html>