On 12/14/15, 9:11 AM, "Marcus Fritze" <marcus.fri...@googlemail.com> wrote:
>Oh, I have forgot. Is there a possibility to get the device-with in my >js:Application? So that I can set the layout specific for the device >which is using my page? We don't have that today. If you can code it up for us, that would be great. > >I found something like this: > ><meta name="viewport" content="width=device-width, initial-scale=1.0, >user-scalable=no“> > >or this > >var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; > >Bit it seems that, window or screen is not a valid variable in flexJS or >can I even set meta tag >from the js:Application preinitialize function? FlexJS works on the principle of replaceable abstractions. The Flash equivalent of this meta tag is some properties on Stage. Very different implementations between the browser vs Flash, but you could create a class called something like "ApplicationWindow" and write both implementations. Right now, that involves writing both an .AS file and a .JS file, but I think we are going to merge in the branch that lets you do all of this in one file, so if you are interested, you might want to wait until after the merge. -Alex