Solved

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

Posted on 2004-09-30
7
193 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
Industry Leaders: 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!

 
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

Technology Partners: 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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

763 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