Solved

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

Posted on 2004-09-30
7
189 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now