I’m currently working on my first ever webpage (which will be entirely in flash), I have little knowledge of html and no knowledge of javascript so please keep any responses very simple and clear or I won’t understand!.
I want the swf to automatically resize itself depending on the available height and width inside the browser, taking into account tabs etc. I’m currently using this code to link to html files exported from flash pro 8, which i have edited to resize the swf to fill the usable area (using width=”” & height =””). This allows me to define a size for ie and a size for firefox (by having different figures for object and embed within the highres.html or lowres.html), so I now have four sizes of swf available.
[CODE]<SCRIPT language=”JavaScript”>
<!–
if (screen.width>=1280)
{
window.location=”highres.html”;
}
else
{
window.location=”lowres.html”;
}
//–>
</SCRIPT>
This however can’t take into account the variety of configurations eg. tabs and bookmark toolbars in firefox etc. So what i’m really looking for is to just have a single html file that includes availheight & availwidth information and then applies these figures to the width=”” & height=”” html tags.
As I previously mentioned I have zero understanding of java and would really appreciate it if someone could create this and explain how to implant it into the flash exported html file. It has taken me ages to get this far and now i appear to have hit a brick wall!