You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Deepak MS <me...@gmail.com> on 2016/08/19 05:12:13 UTC
Flex Mobile App To Desktop App
Hi there,
We have a SQLite based flex mobile app(for iPads), which users would like
to have on their desktops and surface pro devices(for ex: Dell XPS which
runs on Windows 8). Hence I created a flex desktop application project and
released a native installer (.exe) which can be installed as an
application. Application works as expected, but only problem is the
display.
By default, the device has screenDPI of 72 and hence application takes 160
as it's default applicationDPI.
This is how it looks with default 160:
http://pasteboard.co/aogfHDLCJ.png
It covers entire screen, but its too big overall.
I changed the applicationDPI to 240 and now it shows up as expected
(smaller\scaled down components), but it doesn't cover the entire screen,
even though the application has the width and height set to 100%.
Screenshot:
http://pasteboard.co/12qHLLdhj.png
I have no idea why it's not covering entire screen. Has it got to do
anything with applicationDPI? Kindly let me know if there is something I
can try to make it cover entire screen.
Cheers!
Deepak
Re: Flex Mobile App To Desktop App
Posted by Clint M <cm...@gmail.com>.
try setting it to NaN
On Fri, Aug 19, 2016 at 5:04 AM, Deepak MS <me...@gmail.com> wrote:
> Yeah, tried that too. Still same behaviour : (
>
> stage.scaleMode = StageScaleMode.NO_SCALE;
>
> stage.align = StageAlign.TOP_LEFT;
>
> *var* deviceSize:Rectangle = *new* Rectangle(0, 0, stage.fullScreenWidth,
> stage.fullScreenHeight);
>
> scrollRect = deviceSize; //not working
>
> stage.stageWidth = stage.fullScreenWidth; // not working
>
> stage.stageHeight = stage.fullScreenHeight; // not working
>
>
> I don't want the application to set applicationDPI value by itself. Right
> now it's setting the value to 160. And this is what is scaling the
> application(making components look big), but it fits the screen. I want to
> shrink the component scaling and I want to set the width and height
> manually. I hard coded application's width and height, stage's width and
> height. But it doesn't seem to work.
>
> How can I get this application work the way iPad application works on
> windows simulator (width \ height \ scaling)?
>
>
>
> On Fri, Aug 19, 2016 at 1:56 PM, OK <po...@olafkrueger.net> wrote:
>
> > Maybe this could help?:
> >
> > http://www.adobe.com/devnet/air/articles/multiple-screen-sizes.html
> >
> > Olaf
> >
> >
> >
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13348.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
Yeah, tried that too. Still same behaviour : (
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
*var* deviceSize:Rectangle = *new* Rectangle(0, 0, stage.fullScreenWidth,
stage.fullScreenHeight);
scrollRect = deviceSize; //not working
stage.stageWidth = stage.fullScreenWidth; // not working
stage.stageHeight = stage.fullScreenHeight; // not working
I don't want the application to set applicationDPI value by itself. Right
now it's setting the value to 160. And this is what is scaling the
application(making components look big), but it fits the screen. I want to
shrink the component scaling and I want to set the width and height
manually. I hard coded application's width and height, stage's width and
height. But it doesn't seem to work.
How can I get this application work the way iPad application works on
windows simulator (width \ height \ scaling)?
On Fri, Aug 19, 2016 at 1:56 PM, OK <po...@olafkrueger.net> wrote:
> Maybe this could help?:
>
> http://www.adobe.com/devnet/air/articles/multiple-screen-sizes.html
>
> Olaf
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13348.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Re: Flex Mobile App To Desktop App
Posted by OK <po...@olafkrueger.net>.
Maybe this could help?:
http://www.adobe.com/devnet/air/articles/multiple-screen-sizes.html
Olaf
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13348.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
Hi Alex,
Yes, I did try that, but no luck.
*protected* *function*
windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
{
maximize();
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
I also happened to set 'fullScreen' to true in app xml.
<initialWindow>
....
....
<fullScreen>true</fullScreen>
</initialWindow>
It shows the application in full screen, but doesn't cover the
empty spaces at right and at the bottom.
Screenshot:
http://pasteboard.co/apdO45GCn.png
On Fri, Aug 19, 2016 at 11:03 AM, Alex Harui <ah...@adobe.com> wrote:
> Did you try this?
>
> http://help.adobe.com/en_US/ActionScript/3.0_
> ProgrammingAS3/WS2E9C7F3B-6A7C
> -4c5d-8ADD-5B23446FBEEB.html
>
> HTH,
> -Alex
>
> On 8/18/16, 10:12 PM, "Deepak MS" <me...@gmail.com> wrote:
>
> >Hi there,
> >We have a SQLite based flex mobile app(for iPads), which users would like
> >to have on their desktops and surface pro devices(for ex: Dell XPS which
> >runs on Windows 8). Hence I created a flex desktop application project and
> >released a native installer (.exe) which can be installed as an
> >application. Application works as expected, but only problem is the
> >display.
> >
> >By default, the device has screenDPI of 72 and hence application takes 160
> >as it's default applicationDPI.
> >
> >This is how it looks with default 160:
> >http://pasteboard.co/aogfHDLCJ.png
> >It covers entire screen, but its too big overall.
> >
> >I changed the applicationDPI to 240 and now it shows up as expected
> >(smaller\scaled down components), but it doesn't cover the entire screen,
> >even though the application has the width and height set to 100%.
> >Screenshot:
> >http://pasteboard.co/12qHLLdhj.png
> >
> >I have no idea why it's not covering entire screen. Has it got to do
> >anything with applicationDPI? Kindly let me know if there is something I
> >can try to make it cover entire screen.
> >
> >Cheers!
> >Deepak
>
>
Re: Flex Mobile App To Desktop App
Posted by Alex Harui <ah...@adobe.com>.
Did you try this?
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS2E9C7F3B-6A7C
-4c5d-8ADD-5B23446FBEEB.html
HTH,
-Alex
On 8/18/16, 10:12 PM, "Deepak MS" <me...@gmail.com> wrote:
>Hi there,
>We have a SQLite based flex mobile app(for iPads), which users would like
>to have on their desktops and surface pro devices(for ex: Dell XPS which
>runs on Windows 8). Hence I created a flex desktop application project and
>released a native installer (.exe) which can be installed as an
>application. Application works as expected, but only problem is the
>display.
>
>By default, the device has screenDPI of 72 and hence application takes 160
>as it's default applicationDPI.
>
>This is how it looks with default 160:
>http://pasteboard.co/aogfHDLCJ.png
>It covers entire screen, but its too big overall.
>
>I changed the applicationDPI to 240 and now it shows up as expected
>(smaller\scaled down components), but it doesn't cover the entire screen,
>even though the application has the width and height set to 100%.
>Screenshot:
>http://pasteboard.co/12qHLLdhj.png
>
>I have no idea why it's not covering entire screen. Has it got to do
>anything with applicationDPI? Kindly let me know if there is something I
>can try to make it cover entire screen.
>
>Cheers!
>Deepak
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
I have uploaded a test fxp project with all the styles, skins and libraries
used, in JIRA.
Under windowsCreationComplete method, i have tried few things which we had
discussed on this email chain, which haven't worked out.
JIRA Link:
https://issues.apache.org/jira/browse/FLEX-35121
On Sat, Aug 20, 2016 at 12:13 AM, Alex Harui <ah...@adobe.com> wrote:
> Maybe the next step is to build a small test app with a few controls and
> see if you have the same problem. If you do, then you can post the app in
> a JIRA issue and we can dig deeper.
>
> -Alex
>
> On 8/19/16, 11:12 AM, "Deepak MS" <me...@gmail.com> wrote:
>
> >I am using Flex 4.15 AIR 21.
> >Actually the device has very crisp and HD display(like retina display on
> >ipad). But unfortunately capabilities.screenDPI always returns 72 for any
> >windows machines. Hence i am manually setting the app dpi to 240, which
> >makes components look fine(properly scaled)
> >
> >Only issue I have is to set the width and height of the app. I think
> >bounds
> >isnt getting set properly. I even tried to give left, right, top and
> >bottom
> >as 0.
> >
> >I thought it would be a cake walk, but now this looks like a walk in
> >jungle : |
> >
> >On 19 Aug 2016 10:45 pm, "OmPrakash Muppirala" <bi...@gmail.com>
> >wrote:
> >
> >> Which version of Flex SDK? We added support for 120dpi in one of the
> >>newer
> >> versions. Which would be closer to 72dpi. Unless there is something
> >>else
> >> going wrong.
> >>
> >> Thanks,
> >> Om
> >>
> >> On Aug 19, 2016 6:33 AM, "Clint M" <cm...@gmail.com> wrote:
> >>
> >> > applicationDPI="{NaN}"
> >> >
> >> > On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <me...@gmail.com>
> >> > wrote:
> >> >
> >> > > Yeah, I tried that.
> >> > >
> >> > > *protected* *function* addedToStageHandler(event:Event):*void*
> >> > >
> >> > > {
> >> > >
> >> > > stage.align = StageAlign.TOP_LEFT;
> >> > >
> >> > > stage.scaleMode = StageScaleMode.NO_SCALE;
> >> > >
> >> > > }
> >> > >
> >> > >
> >> > > *protected* *function*
> >> > > windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
> >> > >
> >> > >
> >> > > {
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > nativeWindow.width = stage.fullScreenWidth;
> >> > >
> >> > >
> >> > > nativeWindow.height = stage.fullScreenHeight;
> >> > >
> >> > >
> >> > >
> >> > > }
> >> > > It scales up even bigger:
> >> > > http://pasteboard.co/awmrv9D4C.png
> >> > >
> >> > >
> >> > > Clint, Can't set it to NaN, as it expects string or null. I tried
> >>both.
> >> > >
> >> > >
> >> > >
> >> > > stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay.
> >> Application
> >> > > doesn't get scaled in anyway.
> >> > >
> >> > > Only thing is the width and height of the application \ stage is not
> >> > > getting setup properly:
> >> > >
> >> > > http://pasteboard.co/awwye9fCj.png
> >> > >
> >> > > On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
> >> > >
> >> > > > Did you try scaling your app to fit the screen, then change
> >> > NativeWindow
> >> > > > dimensions so it fits/wraps app ?
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > View this message in context: http://apache-flex-users.
> >> > > > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-
> >> > tp13344p13351.html
> >> > > > Sent from the Apache Flex Users mailing list archive at
> >>Nabble.com.
> >> > > >
> >> > >
> >> >
> >>
>
>
Re: Flex Mobile App To Desktop App
Posted by Alex Harui <ah...@adobe.com>.
Maybe the next step is to build a small test app with a few controls and
see if you have the same problem. If you do, then you can post the app in
a JIRA issue and we can dig deeper.
-Alex
On 8/19/16, 11:12 AM, "Deepak MS" <me...@gmail.com> wrote:
>I am using Flex 4.15 AIR 21.
>Actually the device has very crisp and HD display(like retina display on
>ipad). But unfortunately capabilities.screenDPI always returns 72 for any
>windows machines. Hence i am manually setting the app dpi to 240, which
>makes components look fine(properly scaled)
>
>Only issue I have is to set the width and height of the app. I think
>bounds
>isnt getting set properly. I even tried to give left, right, top and
>bottom
>as 0.
>
>I thought it would be a cake walk, but now this looks like a walk in
>jungle : |
>
>On 19 Aug 2016 10:45 pm, "OmPrakash Muppirala" <bi...@gmail.com>
>wrote:
>
>> Which version of Flex SDK? We added support for 120dpi in one of the
>>newer
>> versions. Which would be closer to 72dpi. Unless there is something
>>else
>> going wrong.
>>
>> Thanks,
>> Om
>>
>> On Aug 19, 2016 6:33 AM, "Clint M" <cm...@gmail.com> wrote:
>>
>> > applicationDPI="{NaN}"
>> >
>> > On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <me...@gmail.com>
>> > wrote:
>> >
>> > > Yeah, I tried that.
>> > >
>> > > *protected* *function* addedToStageHandler(event:Event):*void*
>> > >
>> > > {
>> > >
>> > > stage.align = StageAlign.TOP_LEFT;
>> > >
>> > > stage.scaleMode = StageScaleMode.NO_SCALE;
>> > >
>> > > }
>> > >
>> > >
>> > > *protected* *function*
>> > > windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
>> > >
>> > >
>> > > {
>> > >
>> > >
>> > >
>> > >
>> > > nativeWindow.width = stage.fullScreenWidth;
>> > >
>> > >
>> > > nativeWindow.height = stage.fullScreenHeight;
>> > >
>> > >
>> > >
>> > > }
>> > > It scales up even bigger:
>> > > http://pasteboard.co/awmrv9D4C.png
>> > >
>> > >
>> > > Clint, Can't set it to NaN, as it expects string or null. I tried
>>both.
>> > >
>> > >
>> > >
>> > > stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay.
>> Application
>> > > doesn't get scaled in anyway.
>> > >
>> > > Only thing is the width and height of the application \ stage is not
>> > > getting setup properly:
>> > >
>> > > http://pasteboard.co/awwye9fCj.png
>> > >
>> > > On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
>> > >
>> > > > Did you try scaling your app to fit the screen, then change
>> > NativeWindow
>> > > > dimensions so it fits/wraps app ?
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > View this message in context: http://apache-flex-users.
>> > > > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-
>> > tp13344p13351.html
>> > > > Sent from the Apache Flex Users mailing list archive at
>>Nabble.com.
>> > > >
>> > >
>> >
>>
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
I am using Flex 4.15 AIR 21.
Actually the device has very crisp and HD display(like retina display on
ipad). But unfortunately capabilities.screenDPI always returns 72 for any
windows machines. Hence i am manually setting the app dpi to 240, which
makes components look fine(properly scaled)
Only issue I have is to set the width and height of the app. I think bounds
isnt getting set properly. I even tried to give left, right, top and bottom
as 0.
I thought it would be a cake walk, but now this looks like a walk in
jungle : |
On 19 Aug 2016 10:45 pm, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
> Which version of Flex SDK? We added support for 120dpi in one of the newer
> versions. Which would be closer to 72dpi. Unless there is something else
> going wrong.
>
> Thanks,
> Om
>
> On Aug 19, 2016 6:33 AM, "Clint M" <cm...@gmail.com> wrote:
>
> > applicationDPI="{NaN}"
> >
> > On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <me...@gmail.com>
> > wrote:
> >
> > > Yeah, I tried that.
> > >
> > > *protected* *function* addedToStageHandler(event:Event):*void*
> > >
> > > {
> > >
> > > stage.align = StageAlign.TOP_LEFT;
> > >
> > > stage.scaleMode = StageScaleMode.NO_SCALE;
> > >
> > > }
> > >
> > >
> > > *protected* *function*
> > > windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
> > >
> > >
> > > {
> > >
> > >
> > >
> > >
> > > nativeWindow.width = stage.fullScreenWidth;
> > >
> > >
> > > nativeWindow.height = stage.fullScreenHeight;
> > >
> > >
> > >
> > > }
> > > It scales up even bigger:
> > > http://pasteboard.co/awmrv9D4C.png
> > >
> > >
> > > Clint, Can't set it to NaN, as it expects string or null. I tried both.
> > >
> > >
> > >
> > > stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay.
> Application
> > > doesn't get scaled in anyway.
> > >
> > > Only thing is the width and height of the application \ stage is not
> > > getting setup properly:
> > >
> > > http://pasteboard.co/awwye9fCj.png
> > >
> > > On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
> > >
> > > > Did you try scaling your app to fit the screen, then change
> > NativeWindow
> > > > dimensions so it fits/wraps app ?
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context: http://apache-flex-users.
> > > > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-
> > tp13344p13351.html
> > > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > > >
> > >
> >
>
Re: Flex Mobile App To Desktop App
Posted by OmPrakash Muppirala <bi...@gmail.com>.
Which version of Flex SDK? We added support for 120dpi in one of the newer
versions. Which would be closer to 72dpi. Unless there is something else
going wrong.
Thanks,
Om
On Aug 19, 2016 6:33 AM, "Clint M" <cm...@gmail.com> wrote:
> applicationDPI="{NaN}"
>
> On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <me...@gmail.com>
> wrote:
>
> > Yeah, I tried that.
> >
> > *protected* *function* addedToStageHandler(event:Event):*void*
> >
> > {
> >
> > stage.align = StageAlign.TOP_LEFT;
> >
> > stage.scaleMode = StageScaleMode.NO_SCALE;
> >
> > }
> >
> >
> > *protected* *function*
> > windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
> >
> >
> > {
> >
> >
> >
> >
> > nativeWindow.width = stage.fullScreenWidth;
> >
> >
> > nativeWindow.height = stage.fullScreenHeight;
> >
> >
> >
> > }
> > It scales up even bigger:
> > http://pasteboard.co/awmrv9D4C.png
> >
> >
> > Clint, Can't set it to NaN, as it expects string or null. I tried both.
> >
> >
> >
> > stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay. Application
> > doesn't get scaled in anyway.
> >
> > Only thing is the width and height of the application \ stage is not
> > getting setup properly:
> >
> > http://pasteboard.co/awwye9fCj.png
> >
> > On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
> >
> > > Did you try scaling your app to fit the screen, then change
> NativeWindow
> > > dimensions so it fits/wraps app ?
> > >
> > >
> > >
> > > --
> > > View this message in context: http://apache-flex-users.
> > > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-
> tp13344p13351.html
> > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > >
> >
>
Re: Flex Mobile App To Desktop App
Posted by Clint M <cm...@gmail.com>.
applicationDPI="{NaN}"
On Fri, Aug 19, 2016 at 5:59 AM, Deepak MS <me...@gmail.com> wrote:
> Yeah, I tried that.
>
> *protected* *function* addedToStageHandler(event:Event):*void*
>
> {
>
> stage.align = StageAlign.TOP_LEFT;
>
> stage.scaleMode = StageScaleMode.NO_SCALE;
>
> }
>
>
> *protected* *function*
> windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
>
>
> {
>
>
>
>
> nativeWindow.width = stage.fullScreenWidth;
>
>
> nativeWindow.height = stage.fullScreenHeight;
>
>
>
> }
> It scales up even bigger:
> http://pasteboard.co/awmrv9D4C.png
>
>
> Clint, Can't set it to NaN, as it expects string or null. I tried both.
>
>
>
> stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay. Application
> doesn't get scaled in anyway.
>
> Only thing is the width and height of the application \ stage is not
> getting setup properly:
>
> http://pasteboard.co/awwye9fCj.png
>
> On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
>
> > Did you try scaling your app to fit the screen, then change NativeWindow
> > dimensions so it fits/wraps app ?
> >
> >
> >
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13351.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
Yup, i set the bounds to desired width and height(
stage.fullScreenWidth and stage.fullScreenHeight have 1920 x 1080 which are
right values). Still no change.
On 19 Aug 2016 6:45 pm, "Nemi" <ne...@gmail.com> wrote:
> So, if I understand, dimension of app with NO_SCALE is good for you, and in
> that case you only want that window chrome fits your app borders?
> Did you try setting window.nativeWindow.bounds = new Rectangle(...)
> I am not sure for stage.fullScreenWidth having correct values you need..
> Have in mind window.width and nativeWindow.width are different thing.
>
> Check how you get OS's window default chrome dimensions:
> var chromeWidth:int = stage.nativeWindow.width – stage.stageWidth;
> var chromeHeight:int = stage.nativeWindow.height – stage.stageHeight;
>
> Check NativeWindow.bounds
> <http://help.adobe.com/en_US/FlashPlatform/reference/
> actionscript/3/flash/display/NativeWindow.html#bounds>
>
> Check Sizing AIR NativeWindow to Stage
> <https://tedpatrick.com/2009/12/23/sizing-air-nativewindow-to-stage/>
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13355.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Re: Flex Mobile App To Desktop App
Posted by Nemi <ne...@gmail.com>.
So, if I understand, dimension of app with NO_SCALE is good for you, and in
that case you only want that window chrome fits your app borders?
Did you try setting window.nativeWindow.bounds = new Rectangle(...)
I am not sure for stage.fullScreenWidth having correct values you need..
Have in mind window.width and nativeWindow.width are different thing.
Check how you get OS's window default chrome dimensions:
var chromeWidth:int = stage.nativeWindow.width – stage.stageWidth;
var chromeHeight:int = stage.nativeWindow.height – stage.stageHeight;
Check NativeWindow.bounds
<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/NativeWindow.html#bounds>
Check Sizing AIR NativeWindow to Stage
<https://tedpatrick.com/2009/12/23/sizing-air-nativewindow-to-stage/>
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13355.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Flex Mobile App To Desktop App
Posted by Deepak MS <me...@gmail.com>.
Yeah, I tried that.
*protected* *function* addedToStageHandler(event:Event):*void*
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
}
*protected* *function*
windowedapplication1_windowCompleteHandler(event:AIREvent):*void*
{
nativeWindow.width = stage.fullScreenWidth;
nativeWindow.height = stage.fullScreenHeight;
}
It scales up even bigger:
http://pasteboard.co/awmrv9D4C.png
Clint, Can't set it to NaN, as it expects string or null. I tried both.
stage.scaleMode = StageScaleMode.NO_SCALE; seems to be okay. Application
doesn't get scaled in anyway.
Only thing is the width and height of the application \ stage is not
getting setup properly:
http://pasteboard.co/awwye9fCj.png
On Fri, Aug 19, 2016 at 5:56 PM, Nemi <ne...@gmail.com> wrote:
> Did you try scaling your app to fit the screen, then change NativeWindow
> dimensions so it fits/wraps app ?
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13351.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Re: Flex Mobile App To Desktop App
Posted by Nemi <ne...@gmail.com>.
Did you try scaling your app to fit the screen, then change NativeWindow
dimensions so it fits/wraps app ?
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-Mobile-App-To-Desktop-App-tp13344p13351.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.