473,320 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

2
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
3 9479
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
prom19
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
3,237 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

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

Similar topics

3
by: Juggernath | last post by:
I have upload form for uploading swf file and then I should get true dimensions of that flash. Any ideas how to do it?
3
by: Laphan | last post by:
Hi All This sounds such a simple request, but doesn't seem to work. Basically I'm allowing the user to upload their own SWF files to their web site via a web browser (ASPupload). I don't...
2
by: Mark | last post by:
Hi all, This is what I'm trying to do. I'm trying to load a flash movie transparently over my existing html page (not covering the full screen, but 75% of it), so it is kind of similar to a...
115
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
6
by: eddiewireless | last post by:
I need help figuring out what dimensions to use for a flash site, I have a site that I finished not long ago; I set the dimensions to 1028*960. Now when I view it on my pc at home it looks great, but...
3
by: rhansen22365 | last post by:
Hi Everyone, I've developed a site in Flash MX which is 720x560 pixels in size. I was wondering if anyone knew of a way to save the file so that it would't adjust to the size of the screen of any...
1
by: akir | last post by:
Before I begin, I would like to highlight that I'm a fairly novice Flash User. I've recently used the website building tool many of you may of heard of called Cabanova. I decided that I wanted to...
7
nathj
by: nathj | last post by:
Hi, I'm stuck. Obviously I'm stuck or I wouldn't be posting a new question. I have a php script that takes information from a database and outputs it to the screen. The information in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.