467,879 Members | 1,213 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

How do I make the dimensions of my flash site fit the screen on all sreens?

I made my first flash-site, it's based on a top frame that loads the pages and a small bottom frame that doesnt change content. The problem is that the dimensions are fine for my screen (1280X1024), but too big for many other screens, laptops etc. Is there a way to maybe add a line to the index.html that will automatically adapt the dimensions of the flash content in the top frame to make sure that users dont have to scroll to see the whole page? To make it fit into any screen, no matter what the resolutions are, without any changes to the proportions of the individual components.

Help would be much appreciated, thanks!

Roderick.
Feb 12 '07 #1
  • viewed: 9254
Share:
3 Replies
subashini Thiyagarajan
100+
HI,


refer

http://www.thescripts.com/forum/thread591070.html

this might help u.i was also looking for the same.

bye
Feb 12 '07 #2
Yeah, I checked that one already :)
That's how I ended up on this site...

The things is though, if I change the dimensions (proportionate), the quality goes
down and some things smooth first start to look less good and kinda rough...

So I am wondering if there isnt a way to size it down AND keep the smoothness,
you would think it's possible since you are taking something of a high resolution and downscale it, not the other way around (low res-upscaling).

So... I still keep my hopes up, thanks though!
Feb 12 '07 #3
Motoma
Expert 2GB
I made my first flash-site, it's based on a top frame that loads the pages and a small bottom frame that doesnt change content. The problem is that the dimensions are fine for my screen (1280X1024), but too big for many other screens, laptops etc. Is there a way to maybe add a line to the index.html that will automatically adapt the dimensions of the flash content in the top frame to make sure that users dont have to scroll to see the whole page? To make it fit into any screen, no matter what the resolutions are, without any changes to the proportions of the individual components.

Help would be much appreciated, thanks!

Roderick.
You can set the embed width to a percentage, or change the width dynamically with javascript.

To prevent scaling, you need to set the Stage's parameters correctly:
Expand|Select|Wrap|Line Numbers
  1. Stage.scaleMode = "noScale";
  2.  
You can optionally add a listener for resize events:
Expand|Select|Wrap|Line Numbers
  1. sizeListener = new Object();
  2. sizeListener.onResize = function() {
  3. trace (Stage.width)
  4. trace (Stage.height)
  5. };
  6. Stage.addListener(sizeListener);
  7.  
Hope this helps.
Feb 13 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Juggernath | last post: by
115 posts views Thread by post2google | last post: by
1 post views Thread by akir | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.