View Full Version : Full Screen Window/SWF Object
RichardSDavies
March 25th, 2009, 06:34 PM
Just starting my first project using AS3 and using SWFObject to embed in HTML to get a full 100% width/height flash (photography site so needs to fill entire window, especially with widescreen).
Is using SWFObject the best way, and what do you think the best width/height stage dimensions are?
Thanks for any help!
Rich
MurtenSaerbi
March 25th, 2009, 07:28 PM
swfObject is definately the best way. Check out a post I made about it on my blog (http://www.murtensaerbi.be/blog/index.php/2008/12/05/swfobject-2-swffit-2/) or read the essentials here:
swfobject.embedSWF("flash.swf", "divname", "100%", "100%", "9.0.0");
html, body{ height:100%; }
body { margin:0; padding:0; overflow:hidden;
The best dimensions are the ones that the user has. Make yourself a resizeHandler that scales accordingly.
Perhaps when you reach a certain width and/or height stop the scaling.
I would use swffit too, that way you can easily set a minimal browser width/height.
Give a shout if you need help on the resizeHandler.
RichardSDavies
March 26th, 2009, 11:36 AM
Cheers Murten, had a good read on your blog and it was just what I am looking for!
I was trying to figure out the problem with Firefox last night, but i'll try that fix.
I'm going to have a go tonight at building the layout, I want to keep the logo/menu in the top left, like VaryWell (http://www.varywell.com/).
Found a good resource on the Adobe website with some downloads that look pretty good on first glance (http://www.adobe.com/devnet/flash/articles/liquid_gui.html), so i'll give it a go,
Thanks again!
MurtenSaerbi
March 26th, 2009, 07:30 PM
Glad to be of service, RichardSDavies.
The link about the liquid gui's looks like a good base to start, let me know if you need help with anything. If you would like me to create an example or a small tutorial on something please don't hesitate to ask. Good luck and keep on going. ;)
viceversarohan
March 27th, 2009, 12:12 AM
I stopped using swfObject a while ago. I use Mootools' swiff class now. Its so much nicer!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.