Solved

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

Posted on 2004-09-30
7
194 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
[X]
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
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 495
FLV versus SWF 11 295
Video sharing with user login 3 221
Adobe Flash Player - Active X vs NPAPI vs PPAPI 10 139
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

752 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