PDA

View Full Version : ????help!!



mavis
February 3rd, 2003, 06:55 AM
I have created a website 900px by 600px, and need to know how to make the site so that its size is dependant on the users resolution.( I have had complaints of the text being too big in 800 by 600, but too small in 1600px by 1200px)

the site itself is created in flash 5 if that is of any use.(although wouldn't it be something more to do with the html coding?

cheers to anyone that can help!!!!

subquark
February 3rd, 2003, 08:19 AM
sounds like you are allowing your swf to scale so you are at the mercy of the user's browser window. i guess you'll have to use a javasript function that determines the browser resolution and then selects the swf for that size. i think you will have to make multiple swfs.

i would recommend not scaling the swf so that it is always the same size. this way the font and images will stay the same size.

so the swf might fill a 800X600 window and only fill part of a 1024X768, but the swf itself will always be the same size (900X600).

hope this helps and good luck

__FLATLINE__
February 3rd, 2003, 09:02 AM
No no no no no no!! :!:

In the width and height parameters of the swf just put 100%, and it will scale automaticly across the user's window!!
:cool:

kode
February 3rd, 2003, 09:18 AM
No no no no no no!!

In the width and height parameters of the swf just put 100%, and it will scale automaticly across the user's window!!

believe me .. that's a really bad idea :-\


sounds like you are allowing your swf to scale so you are at the mercy of the user's browser window. i guess you'll have to use a javasript function that determines the browser resolution and then selects the swf for that size. i think you will have to make multiple swfs.

i would recommend not scaling the swf so that it is always the same size. this way the font and images will stay the same size.

so the swf might fill a 800X600 window and only fill part of a 1024X768, but the swf itself will always be the same size (900X600).

hope this helps and good luck

that's a good idea :smirk:


you can detect the resolution through this line of code so you can redirect directly from flash

System.capabilities.screenResolutionX
System.capabilities.screenResolutionY