Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-09-30
7
Medium Priority
?
198 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
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!

 
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 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
Suggested Courses

721 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