Hey all... first time posting here, long time lurker. I have a problem with a personal project (home automation) that I have yet to figure out a solution. In essence, I cannot get stageScaleMode EXACT_FIT to work as I would hope. There is just something about the way the stage is handled in Flex that I'm missing. I have searched for a solution to this issue for hours and hours around the web, with very little help being provided. This project has just been in my free time and I have actually gotten so frustrated a number of times at this problem, that it has caused me to give up work on it for a while, however I'm motivated once again to try.
In a nutshell, I have developed a Flex application with a set width and height. What I need is for the application to zoom (scale or whatever) to fit whatever container it is in, allowing distortion to occur, and scaling all components, fonts, images, etc accordingly.
I have tried a number of methods and the only method I have found that works the way I want is to use the Flash debug player, load a wrapper SWF (stub essentially) I created in Flash, which in turns loads the built Flex SWF. Doing that, I can resize the flash player window or even go full screen and the flex app scales to always fit the container... buttons, fonts, everything scales. Essentially, the application looks exactly the same at 640x480 and at 1024x768 (albeit smoother fonts, etc). Understand that this is different that how one would probably develop a Flex app, where the actual UI components expand/contract... I want them to stay the same size, same number of rows, etc... just get bigger... fonts and all.
Loading just the Flex SWF in the debug player without the wrapper, however, doesn't work. I can get it to stick to the defined width and height or sometimes get it to scale to an (unknown) stage size, where all that is visible is essentially the top left quarter of the app and resizing the window does cause the app to scale, however only pretty much that 1/4 of the app is visible in the window. Loading the app directly in a browser (through a page) or even through the stub wrapper SWF provides the same screwy results. It's almost as if the Flex app has no idea what the size of the actual container it is in, unless it is in the debug player. Publishing it as an AIR app does the same thing.
Using the Flash debug player, along with the wrapper, actually gets the job somewhat done for my little project's purposes, however I am really at the point where I need to move this is into either a full on AIR install or be able to run this in the browser (either case scaled correctly), so that I may do other things (launch new windows, possibly interact with the desktop, etc).
I apologize I'm not a Flex/Flash developer for my day job, so I'm not using the correct terminology (however I am a programmer), but I hope my description of what is occurring will suffice. I've seen others online with a similar problem and have heard mentions of using some form of scalex/scaley to accomplish a solution, but couldn't find any actual examples of working code.
Any help would sincerly be appreciated. I would like to finally get past this, so I can go back to having fun working on the actual parts of the application (and not just getting it to fit the dang screen)... haha.