Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

**Urgent**Expand Flash - Full Screen :: Center

Posted on 2004-09-30
7
192 Views
Last Modified: 2010-04-03
I have a flash file that is made to fit 800x600.  But if the user is viewing it at a larger resolution, lets say 1024x768, I have a background image that will fill the rest of the browser, withOUT the main flash piece stretching.  

So my question is how do I have a flash file expand to fit a larger resolution without stretching the flash file. I would like it to be centered and have a background image reveal.

I hope this makes sence.  Below is a link to an example of what Im talking about.

http://www.microsoft.com/mscorp/innovation/yourpotential/main.html

Thanks

MTB007
0
Comment
Question by:mtb007
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:muso120999
ID: 12193189
Go into the publish settings:

set Dimensions to 100% by 100%
set Scale to No Scale
leave Flash alignment at centre

I also edited the generated html to remove the first line (DOCTYPE), this makes the flash fill the browser vertically.

 if you want a sample, let me know

muso
0
 
LVL 10

Expert Comment

by:muso120999
ID: 12193240
Forgot to say, that you can then put the image behind, in the Flash movie - with the centre point of the image at the centre of the document area.
0
 
LVL 1

Author Comment

by:mtb007
ID: 12193369
Can you post an example?  Thanks for the speedy response.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:mtb007
ID: 12193388
I also have another question that I posted.  If you could help me out there too, i'd greatly appreciate it.
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_21151437.html

Thanks
0
 
LVL 10

Accepted Solution

by:
muso120999 earned 200 total points
ID: 12193472
>  Can you post an example?

Okay, it ain't pretty (I just bodged it very quickly), but should give you the idea...

http://www.fusionsite.co.uk/flash/ee/resize/Untitled-1.html
http://www.fusionsite.co.uk/flash/ee/resize/resize.zip

The zip file has the FLA in it (MX 2004 pro).

Also the height fix I mentioned only works in IE, you would need to figure out something else for Mozilla browsers (again, let me know if you want me to look into that) - I can't remember what DOCTYPE it should be, most dont support heights.  Otherwise you could generate the width and height of the movieclip with JavaScript, and keep the NoScale option.

I'll check out the other question too...
0
 
LVL 10

Expert Comment

by:muso120999
ID: 12194491
Are both answers satisfactory, or are you needing something more?
0
 
LVL 1

Author Comment

by:mtb007
ID: 12198851
Perfect, thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where to download Adobe Flash Player 11.9.900.170 5 1,363
Crash with shockwave flash 8 251
Flash Slides/Presnetation 4 77
Adobe Flash Player won't install on Windows 7 3 259
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question