To do this you'll need to find out the height of your Flex app and then pass
that to a JavaScript function in your html page. The JavaScript function
then changes the height of your swf object. This will turn on the scroll
bars when needed.
In your MXML doc (in ActionScript)
//first import the stuff you need to talk to JavaScript
import flash.external.*;
var FlexAppHeight:Number = 1200 //(replace 1200 with your app height)
ExternalInterface.call("changePageHeight",FlexAppHeight);
In your HTML file (where your Flex app is wrapped).
<script language="JavaScript" type="text/javascript">
function changePageHeight(pageHeight) {
pageHeight+= "px";
document.getElementById("myID").style.height = pageHeight;
//replace myID with the id of your swf object. Keep the quotes.)
}
</script>
This is how I solved the problem. It was based partly on this article:
http://www.flashinsider.com/2006/07/14/stop-making-flash-scrollbars/
--
View this message in context:
http://www.nabble.com/Can%27t-get-web-page-to-scroll-large-Flex-app-tp15098685p16811233.html
Sent from the FlexCoders mailing list archive at Nabble.com.