Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Flash site resolution
Topic Started: Mar 25 2006, 06:07 AM (240 Views)
killer-q
Brackenwood Member
hello,

i was wondering how you can make a flash site wich detects the screenresolution of the viewer and adapts to it.
Any of you guys know how tot do this?
i am not sure if this is action script, sry if i'm posting in the wrong threath.

thx
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
hi killer this lines will return the actual screen resolution of the viewer:

Code:
 

resx = System.capabilities.screenResolutionX;
resy = System.capabilities.screenResolutionY;


Are you trying to publish it at a webpage? :worry:

if you are then you have to remember that a webpage does not cover all the screen but if you are not this line can do the trick

Code:
 
fscommand("fullscreen", "true");
Offline Profile Quote Post Goto Top
 
killer-q
Brackenwood Member
well, i didn't think of a full screen before you said it.
That's a good idea.
But can i do a full screen site WITH the top bar still on it?
(For closing and minamalising)
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
As far as I know you cannot change the height and width of the Stage you can get the values with Stage.width and Stage.height but these are read only properties ;)

what you can do is get a fullscreen and then draw a menu so you can quit it at any time:

Code:
 
on (release){
fscommand("quit");
}


Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply