IDE :: System - Capabilites ScreenresolutionX - Get The Size Of My Screen
Feb 21, 2009I'm working within flash, and I'm just trying to get the size of my screen, apparently simply:
[Code]...
I'm working within flash, and I'm just trying to get the size of my screen, apparently simply:
[Code]...
i am currently developing a standalone video application that will interact with our backend database and display the proper video, video title, video description and color scheme that you choose.Everything's working hunky dory, until I asked some of cohorts to see if they could break it before I show it off to the world. On the very first try, when my colleague went to full screen, the video was distorted, cut off by the bounds of the monitor, and not perfectly centered as it has been performing on my monitor.
And then it hit me... He was opening the browser in one of his computer's monitors, bringing the browser to the other monitor (we all have a dual monitor thing going on here), and THEN clicking the full screen button.I noticed that when you refresh the page, the variables I get to determine the fullscreen dimensions are being set, but NOT on EnterFrame.
After quickly changing this little glitch, I saw that the variables are still not being changed when you drag your browser window from one monitor to the other (hopefully they are set at two different resolutions, otherwise it defeats the purpose of even checking for this)how I can get my Flash application to recognize when it has entered into a new resolution.
I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.
View 2 RepliesI've been trying to work with the 'capabilites' function to the OS and here's my code:
ActionScript Code:import flash.system.Capabilities;AIR_ver_txt.text = "AIR Version: " + Capabilities.version;
[Code]...
I just want to get this instance "AIR_ver_txt" on a TextField to show the versions and other capabilites.What did i do wrong? And how can I fix it? should i just Re-Convert to Symbol (i had to do this 2 times now)
So ive been asked to build a page for a real state company and the guy told me it should be similar to these [URL] Ive been trying a couple of weeks so far, but i dont seem to find a way to do somthing similar, i mean, i want to have the welcome screen as those two:
- the gradient background
- flash occupies whole screen no matter what size it is
- gradient expands sideways infinately
- no matter what height my explorer window is, gradient is always in the same position relative to top, and if i keep expanding downwards the background keeps last colour of the gradient.
- the brand logo looks as if it had top, left and right anchors, and it also limitates the minimum width of the explorer window
i though of addind a 3000 x 3000px square with the gradient and centering it, but i know there has to be a professional way of achieving that.
I am developing an AS3 application (not a Flex one) using Flash Builder 4.5. My application can set its graphical components automatically according to stageWidth/stageHeight. My problem is with the actual application size. If I do not specify width/height in the SWF meta tag, my application is compiled according to the default (550x400?). If I do specify (for example 800x480), I won't be able to support other resolutions correctly.
Is there a way to tell the compiler to see the application size according to the device's/stage's sizes?
Actaully I am running a cards game. While running the game in between if I change the style portrait to landscape. then how can I detect the screen size and run the game according the screen style (Portrait or Landscape).
Actaully I have written the code to detect the screen as portrait and landscape. But in between if I change the game portrait into landscape, no more it works.
I'm creating a flash site. I want the flash movie to fill the entire browser window. What size should I make the canvas, I've been experimenting with sizes and a canvas size of 750*370 fills my browser well on a resolution of 800*600
How do you accomodate different resolution settings? What's the most commonly used canvas size for this type of project.
I have following issue: System.capabilities.screenResolutionX and System.capabilities.screenResolutionY doesnt seem to refresh realtime while the movie is playing and user changes the resolution of the desktop.Although this is somehow unprobable - that user will change resolution of the desktop while viewing websites - i would like to detect this user's action and resize the website content accordingly.
[Code]...
Each system - whether it is win, mac, or linux - displays (desktop) icons at a
user selected size (e.g., 16x16, 32x32, 48x48, etc.)How can I find which size is being used by the local system from within Flex or ActionScript3?
How do you find out the size of the system chrome so that I can specify the window size to achieve the stage size I want?
If my main window is set at 800 x 600 (stage), and I create a second window as below, it will be smaller.
public function Main():void
{
var windowOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
windowOptions.systemChrome = NativeWindowSystemChrome.STANDARD;
[Code].....
I assume you increase both newWindow.width = 800; and newWindow.height = 600;to account for the chrome, but how do you find this value?
I'm new to flash and I cant find any tutorials on how to make the screen fallow a character when you come up to the left or right edge of the stage so the map will continue on a platform game and adding scoring system in action script 3
View 17 RepliesMaking an Flex App. Just wondering if anyone has created something that fits automatically to the users' screen size and how I go about doing this? One of the principle things is that I need an background image, which is obviously going to have to scale / resize to match the users screen.
View 1 RepliesA friend of mine says that he cannot see the links at the bottom of my page but for me I can. Can you see the links? [URL]
View 3 RepliesIn AS3 code for Air, how can I get the screen width and height of the mobile device its running on?
View 2 RepliesI currently have some code that displays an image in a pop up and just takes the width and height of the image. My problem is that some of the images are larger then my screen. How can I get the size of my screen and then readjust the width and height of the image based on that?
View 5 RepliesMy application is built in Flash Builder. I want to embed a small Flash login form inside an HTML page. The login form is in the 'login' state of code and is a few hundred pizxels wide/ tall. The 'default' state is set to height and width of 100%. I have a resize function that is executed once the login receives the appropriate credentials.
private function resizeApplication():void {
if(ExternalInterface.available) {
ExternalInterface.call("resizeApplication");
[Code]....
#app is the div and overflow is set to auto in the body. This works just fine except that I am left with some visable portion of the webpage near the bottom. I want to be able to either resize the webpage to match the swf or hide everything except the swf. I have tried a few different things with the js including setting the bottom attribute to 0 and using variations of the document.body.clientHeight.
I'm trying to make an swf that resizes to the browser's size at initialization and when the stage is resized... but it seems to initialize at the original stage width (which is 800 * 600) and then when the stage is resized, it works... the swf is currently nothing but an image that says the site is under construction... but I'd like to resize it to screen size... here are my AS 3.0 and HTML code...
[Code]...
I'm sure there are a million posts on this, but I cannot for the life of me figure out the wording under which they are classified.I am trying to get my site to scale so that the width is 100% the width of the screen, and the height, if there's more than can be viewed, is cut off. No scrolling. If I simply use the 100% width property, it seems to also give height at 100% value, so this way the whole site fits on the screen, but there is empty space on the right and left which is not what I want. Does this make sense how I've worded it?
View 5 RepliesI want to know which is the best stage size for a 1024 x 768 screen resolution.i see site for example in thefwa.com that are full screen in any resolution, but the need to set a stage size for their app.
View 3 RepliesI have a website with a large .swf file. However when people with smaller screens view the website, I would like the .swf (which takes up the entire screen) to resize to fit on exactly. Just like how on most flash sites when viewed they fit the screen perfectly, however also then when viewed on computers with smaller screens they resize and still fit perfectly again.
View 2 RepliesI want users to be able to locate objects ,say rectangles, freely on the screen. Each Rectangle will have width, height, x, y.
I want that when users resize browser window, the rectangles change location and size relative to the window while maintaining proportion.
I noticed I could do something width="20%" height="20%" and then object will resize but if the aspect ration is diffenent the rectangles will look distorted. Also I wasn't sure what's the best way to locate object relatively as I noticed I couldn't bind Flexglobals.toplevelapplication.width/Flexglobals.toplevelapplication.height to x/y.
I want to create a flash flip-book.How do i set the flash size to be according to screen resolution?Because i want to strech an image to fill the entire sreen.
View 1 RepliesI'm having the weirdest problem. I have a fullscreen function and it works great except when I try to make the current video playing the same size as my screen. Oddly enough it reports that the swfStage.width is 1280 but the videoScreen.width is 852? [code]
View 3 RepliesIf Im going to create a full screen flash website what size should my stage document be?
View 1 RepliesI'm having a conundrum. I am trying to duplicate the link effect: http:[url]....The thing about that is that I am trying to create this for an HTML site as link transitions for a client. My issue is that the swf has to maintain size on ALL browsers and sizes. I've tried setting the html object sizes to 100%, but the video is smaller. Is there something I'm doing wrong?
View 3 RepliesI currently have some code that displays an image in a pop up and just takes the width and height of the image. My problem is that some of the images are larger then my screen. How can I get the size of my screen and then readjust the width and height of the image based on that?
View 2 RepliesIs there a way to resize our file to the size of the computer we're watching it?
View 2 Repliesi have exported my swf's with fetch, however my index file isappearing to be encapsulated in a white boarder inside the browser screen. How can I change this soit fitts the whole screen.?
View 5 RepliesI'm tring to make the swf full screen. I published it with scale of 100%.I wish to have some movie clips like text or buttons in fixed size.first, I don't get Event.RESIZE when the stage changed its size second, I try to set their size , but their size is changed according to the stage size and do not stay in the height width values
View 7 Replies