View Full Version : how to get user resolution??
bluemagica
03-02-2008, 07:17 AM
i saw a tutorial somewhere on this but cant find it anymore, so i am asking here:
How do i make my movie resize according to the user's screen resolution?
how to get user resolution??
i saw a tutorial somewhere on this but cant find it anymore, so i am asking here. How do i make my movie resize according to the user's screen resolution?
In a web browser of an offline projector swf ?
For a projector app (and not in a swf in the browser)
you will want to look at FSCommand:
1.) fscommand function (http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001727.html) - fscommand("fullscreen", true);
2.) Using FSCommand in Macromedia Flash projectors (http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14280&sliceId=2)
For in a web browser you can look into these
http://blog.deconcept.com/swfobject/fullpage.html (look at page source)
then download from here - http://blog.deconcept.com/swfobject/#download
http://theflashblog.com/?p=133 (video trutorial)
http://www.kirupa.com/developer/mx2004/fullscreen.htm (written tutorial)
If all you trully want is the "user resolution" as your
title says then look into the - System.capabilities (object)
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary705.html
System.capabilities.screenResolutionX
System.capabilities.screenResolutionY
That should cover all the areas to get you started ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.