actionscript 3 - Adobe Flash Builder 4.7 Full Screening Scaling Problems -


in adobe air application, have room , player can walk around it. set automatically opens in fullscreen, however, when exit fullscreen doesn't scale anything, shows edge of room, can't see player or else. how make when exit fullscreen, scale down windowed version, , again? in adobe flash builder 4.7.

i tried scaling down putting if statement in update function, checks if window full screened or not, , if not, it'll scale x , y down .5, , if full screened again, it'll scale 1. player changes position, , if try make x equal it again if move player, doesn't work. i've tried verticlecenter , horizontalcenter on both player , room, doesn't work.

what i'm wondering if there stage.autoscale line can solve everything, or if have manually way i've tried.

so got 2 options here.

  1. check fullscreen event , in listener function scale according logics. give more control on scaling , visual display of components , graphics. can find working example fullscreen event handling @ http://help.adobe.com/en_us/actionscript/3.0_programmingas3/ws2e9c7f3b-6a7c-4c5d-8add-5b23446fbeeb.html

  2. allow fp scale stage according window size. can achieved setting stage.scale mode. there couple options can find @ http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/flash/display/stagescalemode.html. use 1 best suit application.

i prefer using first method. hope make sense.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -