SWF vs HTML Scrollbar

Hey everyone,

My question is partially AS2 only, it is mainly HTML, but I’m guessing mostly a Flash developer would come across with this issue.

I have an AS2 .swf file called “sample.swf”
This “sample.swf” contains a proportionally resizable background image.
An external .swf file “content.swf” loads on top of it. The size of “content.swf” is 900x600 px and it is positioned to the absolute center (x and y) of the stage at all times.

So basically you open the page in a browser and resize it, the background image resizes as well and keeps its proportions and the content always stays in the absolute center regardless of the size of the browser.

Here’s my problem, when I resize my browser to smaller than the content size (900x600), the content gets cut off. So what I want is to activate the scrollbars whenever the browser size goes under 900x600 in either directions (x,y) You tell me if it’s possible. I am open to other solutions as well.

Thanks for your time and help!

Here’s my html code.


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7" />
<title>sample</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000" style="margin:0px 0px 0px 0px">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '100%',
            'height', '100%',
            'src', 'proportional_scaling',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'left',
            'play', 'true',
            'loop', 'true',
            'scale', 'noscale',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'proportional_scaling',
            'bgcolor', '#000000',
            'name', 'proportional_scaling',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'proportional_scaling',
            'salign', ''
            ); //end AC code
    }
</script>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="proportional_scaling" align="left">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="sample.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#000000" />    <embed src="sample.swf" quality="high" scale="noscale" bgcolor="#000000" width="100%" height="100%" name="proportional_scaling" align="left" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3983098-1";
urchinTracker();
</script>
</body>
</html>