Skip to main content
August 12, 2011
Answered

Asset placement on stage

  • August 12, 2011
  • 1 reply
  • 346 views

Hello all!

I am just getting started with Air 2.7 and Flash Builder 4.5.1. I have a simple Actionscript Mobile Application(for iOS) which loads a few assets from an external swc and places them on the stage. Can someone explain why the assets all appear nudged about a quarter of the way down the screen? It looks like point 0 on the y axis starts lower than it should. I also noticed that the graphics are scaled to fit the screen width.

Is there something I need to be aware of when placing assets on the stage for a mobile app? I would greatly appreciate anyone who can point me in the right direction..

Thanks and have a great weekend!

This topic has been closed for replies.
Correct answer Joe ... Ward

Did you set the stage align and scaleMode properties? These influence the location of the origin, sometimes in surprising ways.

I usually recommend scaleMode = StageScaleMode.NO_SCALE and align = StageAlign.TOP_LEFT (unless you want your graphics scaled to fit the screen, of course).

1 reply

Joe ... WardCorrect answer
Participating Frequently
August 12, 2011

Did you set the stage align and scaleMode properties? These influence the location of the origin, sometimes in surprising ways.

I usually recommend scaleMode = StageScaleMode.NO_SCALE and align = StageAlign.TOP_LEFT (unless you want your graphics scaled to fit the screen, of course).

August 12, 2011

Many thanks. I am embarrassed that I forgot to do that!!