I don't think the previous answers helped you much.

If you want to dynamically increase your HTML div, you must use the
ExternalInterface object.

In the HTML side :
<script language="JavaScript" type="text/javascript">
        function myJavascriptResizeFunction(height) {
                document.getElementById("myDiv").style.height = 
parseInt(height)+"px";
        }
</script>

In the FLEX side :

private function resizeApp():void{
  if (ExternalInterface.available) {
  try{
    var myErr:Object =
ExternalInterface.call("myJavascriptResizeFunction", this.height);
  }
  catch(myErr:Error){
    Alert.show("exception : " + myErr.toString());
  }
                                        
  }
}

Note that your swf is inside the div tag with id "myDiv".


--- In [email protected], "helix206" <[EMAIL PROTECTED]> wrote:
>
> I saw a fiew flash sites that act as normal HTML/CSS sites. By that i 
> meen they resize the browser window acording to the content in flash, 
> so if you click a link in a site and new content is much bigger then 
> the old one, the flash SWF width and height changes and browser adopts.
> 
> Can anyone here explain how is that done?
> 
> Thank you in advanced.
>


Reply via email to