View Full Version : resize on scale window

03-27-2006, 07:33 PM
I have a flash movie in my HTML file and i want it to scale to the size of the window... but I only want it to go so far...

I want it to be able to scale as low as 1024 x 786 for people that use this setting and I also want it to be able to scale as large as 1280 x 1024. Any idea how the code might look? Because I am clueless.

thank you

Creative Insanity
03-28-2006, 12:41 AM
what about people at 800x600?
Use percentages or a min size of 740px

03-29-2006, 03:45 PM
i have this code to test the size of the users window:

function redirectbyWidth(){
var smallpage = "http://www.yoursite.com/small";
var mediumpage = "http://www.yoursite.com/medium";
var largepage = "http://www.yoursite.com/large";

if (document.all){
if (cW <= 640) {
window.location.href = smallpage;
if (cW > 640 && cW <= 800) {
window.location.href = mediumpage;
} else {
window.location.href = largepage;
if (wW <= 640) {
window.location.href= smallpage;
if (wW > 640 && cW <= 800) {
window.location.href= mediumpage;
} else {
window.location.href= largepage;

<body onload="redirectbyWidth()">

it works in IE but not FireFox.. what is the reason for this ?

03-29-2006, 03:57 PM
That is because document.all is IE only..

03-29-2006, 03:58 PM
i have no idea how to fix it.. can you help ?

Creative Insanity
03-29-2006, 04:06 PM
Just don't use that script and setup a control table and set it up at the percentage you want the page at. Go to the front page and look for a VTM called Control Table.

03-29-2006, 04:17 PM
siphon just set the width of the flash movie to 100% and you should be set.