Okay, this has been annoying me forever. I've searched but can't find the solution anywhere. It's one of those bugs I could deal with and ignore, but I'd much rather have it resolved.
Okay. So I have a Flash SWF running in an AIR EXE (I need right- and middle-click support), using FlashDevelop. In my Main class I have the following line:
[SWF( backgroundColor = "0xFFFFFF", frameRate = "50", width = "800", height = "600" )]
Here's the first oddity. When I trace( stage.width ), I get 320 back. So... okay? Thought I just set that to 800 but whatever, I guess.
So now here's where it gets annoying. My AIR app makes the window start at 800x600 (this is what I want, as defined in my application.xml file), but the actual stage appears to only takes up the top left 320x240. However, if I resize the window, the stage then scales so that it still takes up the top-left 40% of the window.
What I want it to do: I want the stage to start at 800x600. Mainly though I don't want the stage to scale as the window changes size, like any normal non-game app, so that everything stays the same size when you resize the window but you have more real estate to work in.
Any ideas? Is this even possible? Looking at AIR apps made with Flash/Flex Builder, it seems to be. I've actually achieved this just running a SWF in my browser before (Flash will still display stuff off-stage if you don't set limits in the HTML), but now I need the AIR extras. HALP
edit: the 2x scaling problem was unrelated, but the real problem is still there. Edited the post removing the part about it being scaled 2x.