Scale Flex Application When Screen Resolution Is Too Small?
Mar 18, 2011
I'm developing a Flex application that is designed for screen resolutions of 1280x1024 and more. In the rare case that a projector is used (which usually has a maximum of 1024x768 pixels) I'd like to scale down the application (currently I get lots of scrollbars and clipping).
I've already experimented with the application's properties scaleX and scaleY as well as stage.scaleMode. However, I couldn't quite figure out a way to
render the application without scaling when the application's width and height are larger than certain values use scaling when the width or height are smaller than certain values
View 5 Replies
Similar Posts:
Jun 10, 2006
I have been playing with this code for a couple of days and I am getting "decent" results but not consistent. Basically I want to get the users resolution and divide it by the optimum resolution and scale the page. What I am trying to attempt is that items stay the same size regardless of resolution. I realize that I will get some distortion but when testing the distortion doesn't seem to effect the overall look of the page. If I stay away from really small fonts I seem ok. Regardless you get some distortion in lower resolution anyways.
Here is the code.
var userResX:Number = System.capabilities.screenResolutionX;
var noXScaleRes:Number = 1440;
var swfXSize:Number = 1000;//stage width
var thisXRes:Number = ((userResX / noXScaleRes) * 100);
var xCntr:Number = (swfXSize / 2) - (((thisXRes * swfXSize) / 100) / 2);
[Code] .....
Now when I test on resolutions with similar aspect ratios 1.7 as the optimum resolution the content scales to respectable "result". But when the aspect ratio is closer to 1 to 1 I don't it squares my content. Since I am handling the x and y separate I am not sure why it would?
View 1 Replies
May 9, 2010
Is there any way to scale up stage according to user's screen resolution?
because:
stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE;
and width: 100% in html document
doesn't work when screen is widther than flash site.
I managed to size up stage in AS2 but I have no idea how to do that in AS3.
View 3 Replies
Jul 3, 2010
I have been looking on google and couldn't find a answer. I have a application I created in adobe flex and I need it to scale to the users screen and fill the entire browser window no matter what.
View 1 Replies
Oct 23, 2009
How can i detect my client's screen resolution .. in Flex??
View 2 Replies
Mar 7, 2011
I want to make an application with an image that only bounces to the users screen resolution. How can I go by detecting the users screen resolution in flex 4? (If you can that is.)
View 2 Replies
Nov 30, 2010
I checked this link Flex Cross Resolution Applications and it did Infact,the display varies from browser to browser, (for eg. chrome vs ie8) Chrome has bigger browser window. How to develop flex applications in this case ? I am using values in percentages.However,panel which displays properly in IE8, appears big in chrome with text and buttons having same size. How to solve this problem
View 1 Replies
Sep 27, 2010
Screen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime.
is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when machine display is connected to projector/high resolution monitor and then switched back to normal.
View 1 Replies
Apr 3, 2011
We are building a flash based product (coded in flash builder) and need to ensure that the font size is readable for all standard screen resolutions- we coded fontsize to be a fraction of screen dimensions... still we find that it looks smaller on low resolution and larger on higher resolution
we dont have this problem with other assets like containers/images etc
why this happens? Any thoughts on how we can make it uniform across screen resolutions?
View 1 Replies
Dec 6, 2010
I have two views in viewstack. One has a VRule extending from top of screen to bottom. Another view has a big accordion. If I give viewstack percent height=100%, first view works fine and second view gets clipped or has a vertical scroll bar inside view stack. If I dont mention viewstack height and set resizeToContent to true, second view works fine and first view takes up only small part of screen. If I mention viewstack height and set resizeToContent to true, first view works fine and second view gets clipped or has a vertical scroll bar inside view stack. I want vertical scrollbar but for entire window, not just for viewstack. How to accomplish this ?
View 1 Replies
Jun 10, 2011
We have recently made a new Flash website for our company (URL...). The Flash module itself is 800 pixels tall. We have CSS that centers a div horizontally and vertically that's wrapped around the Flash module (you can see the source of URL...) and when someone is on a browser on a netbook or a smaller laptop (sub 15-inch, generally), they don't have enough vertical resolution (after the real estate used by the Windows start bar and browser toolbars) to see the entire site.Whether you view the html page I've made (again, at URL...) or you view the Flash module itself (URL...) the top of the Flash module clips off the top of the browser. (To see the problem if you don't have a small laptop, just don't maximize your browser window and shrink it's vertical height.)I understand why my CSS is behaving the way it is, due to the nature of the negative top margin, but is there any way to solve this issue?
View 1 Replies
Oct 13, 2003
The problem that I'm facing is in regards to the width of a sliding menu that I've created. The menu slides based on mouse x position and width of the movie. I would like the menu to fit to the entire screen regardless of the users resolution. I wanted to know if there's a way to detect a users screen width and then adjust the variable for screen width within my actionscript .fla if necessary.
View 10 Replies
Mar 10, 2010
Fullscreen mode and I have been battling for a while in this Flex application, and I'm coming up short on Google results to end my woes. I have no problem going into fullscreen mode by doing a Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;, but the rest of the content just sits there in the top, left corner at it's original size.
All right, says I, I'll just do a stage.scaleMode = StageScaleMode.SHOW_ALL and make it figure out how to pull this off. And it looks like it does. Except that when you mouse over the individual checkboxes and buttons and various components, they all fidget slightly. Just a slight jump up or down as they resize...on mouse over. Well, this is frustrating, but bearable. I can always just invoke invalidateSize() explicitly for all of them.
But for the comboboxes. The ones at the bottom have their menus go off the bottom of the screen, and when I pop out of fullscreen mode, their drop downs cut off half way. I have no idea how to fix that. Can someone step in here, and put me out of my misery?
What is the right way to scale a Flex application up to fullscreen?[code]...
View 2 Replies
Jun 22, 2010
if I create a simple app with stratus tecnology and I get millions of users, then how can I scale the application ? How chatroulette have resolved the scaling issue ?
View 1 Replies
Feb 28, 2008
Regarding System.capabilities.screenResolutionX in FMX, how would I achieve a movie clip on my stage to automatically alight to the left of the screen/browser depending on the viewers screen resolution?
View 1 Replies
Mar 16, 2009
Is there a way that I can find out the screen resolution of a users screen? I want to add scroll bars for users with a resolution lower than 1440X900 and if u have 1440x900 or greater it wont show the scroll bars.
View 5 Replies
Oct 18, 2011
I have a quite different problem with resizing. I have a Flexbook component which uses the middle part of screen (center) with a html header menu and footer. The problem: The scaling works perfectly when we run in the local machine ( Flexbuilder). But when we deploy it to the server its like scaling never existed.. The requirement: when user maximizes the window or minimizes it, the Flexbook should be resized to fit the screen.
[Code]....
View 1 Replies
Jan 13, 2012
I am still struggling with transforming my app build in Java/Eclipse to Flex/Actionscript with Flashbuilder.Now I can not find how I should implement an image to cover the hole screen.[code]...
View 1 Replies
Oct 13, 2010
I want to create a fairly large-scale Flex web application that has a similar interface style to Grooveshark.
When it comes to web development, I have always used the common PHP/HTML/JavaScript technologies. Now, I want to try something new and develop a RIA using Flex.
Using PHP/HTML/JavaScript, I am able to develop my entire website with free tools. Now, I'm wondering if I am able to do the same thing with a Flex web application?
Is it possible/feasible to develop a Flex web application for free? If not, what would be the lowest cost I would need to spend? And, whatever the option, what are the tools that would be needed?
View 2 Replies
Jan 23, 2010
My swf size is approximately 1000x700. If the browser size is smaller than this it needs to scale down but if it is larger I don't want it to scale. Just like this [url]...
I've tried publishing the Flash settings at Scaleefault(Show All) which scales it but I need to stop the scaling upwards at 1000x700.
I'd have thought that I could say in the html if (width<1024){scale;} and if(height<700){scale;}. But it's not working. Should it all be done in the html?
View 3 Replies
Aug 5, 2009
I am developing a flash website that will dynamically fit to the size of the end-users' browser and screen resolution. I have a 2100 X 1400 Background I'd like scaled to 100% of the screen size.
So if the user's resolution is 1680 X 1050, the image would scale to that size.
However, another problem arises - I do not want the image to "stretch" or lose quality, and that it must maintain the same aspect ratio. How can I do this?
View 1 Replies
Aug 5, 2010
How do you publish some movies like this. When you resize your browser, an alert message would say that "THE RESOLUTION IS TOO SMALL" something like that.
View 2 Replies
Jan 20, 2009
[ X ] Problem solved I just came up with something i have some trouble to handle I've tried a couple of solution but none seems to work perfectly
What I'm trying to do is simple, get my flash to go full screen, but whatever resolution the user has, my flash must centers itself with the biggest proportion possible, and two movie clips goes right and left of it, as if they were borders.
I've been able to do this with a simple png, but i was not able with a movieclip where his dimension changes through time. ( i have a tween, so the mc gets really big even though just my stage is displayed)
View 1 Replies
Sep 2, 2009
I have an Air Application in Flex designed for 1280x800 which I would like to stretch to work full screen on a 1920x1200 monitor.
I've read this article: [URL] and tried it, but it only zooms the upper left corner (as mentioned in the article).
I work with a WindowedApplication (shown below) which holds a View (called MasterView) that contains all different lay-out elements.
My application (in brief) looks like this:
<mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
[Code].....
View 4 Replies
Jun 11, 2010
I have researched this and found lots of information but I am fairly new to actionscript and scripting in general. Here is what I am trying to do. I am working on a site that is already setup and ready to go. What I am creating is a very basic 15 second flash intro/flyer that will show up and eventually redirect to the main site. Like I said this is a very basic flash with basic tweening however my main issue is that we want this one picture to fill up the entire browser window without getting cut off no matter what resolution. I don't care how it is accomplished whether it is actionscript, java,
View 5 Replies
Oct 20, 2009
I want full screen view(through code,without pressing F11) of my flex application.
View 1 Replies
Apr 27, 2011
I have an application with webcam, chat and more, and i need to record the screen aplication in server, for the client not have to upload the result. What I want is to know how to record the images shown in the Flex application (only inside the swf).
View 1 Replies
Jul 31, 2011
I have an AIR application. It should be moved around the screen with the mouse. In order to achieve this I use the event: this.stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, true,-2);
It should be activated with the lowest priority compared to inserted elements for example those that should be scrolled, clicked, etc. I tried the solution shown below with the event priority set to -1 because there might happen 2 different events and my moving application event should be the last one to be serviced or shouldn't be serviced at all.
[Code]...
View 1 Replies
Mar 2, 2011
I'd like to know where to look for documentation on how to make elements that adjust to the site resolution, or what this technique is called.
Like in here (the floating clip on the left upper corner, there is a menu divided into 2 parts like float:left and :right (like I would make this in css))
[URL]
Basically I'd need a menu always aligned to the bottom-center of the page that won't change the size, but the background always stretched proportionally to the width of the page upon resizing.
View 1 Replies
Sep 9, 2010
I have published my Flash site to the web server but I notice that it doesn't display correctly in smaller resolutions (I think the smallest it looks best in is 1024 x 768)... the bottom keeps getting cut off when viewed in any small resolution. I figure this is something that can be corrected in the HTML file so if someone can show me what exactly I need to put into that file, that would be great. My site is here if you need to reference it:[URL]..
View 17 Replies