Skip to main content
Aug 12, 2011 9:53 PM UTC
Answered

Asset placement on stage

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 is closed to new replies. Start a new post to keep the conversation going.
Joe ... WardCorrect answer
Participating Frequently
Aug 12, 2011 10:12 PM UTC

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).

2 replies

Joe ... WardCorrect answer
Participating Frequently
Aug 12, 2011 10:12 PM UTC

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).

Translate
Aug 12, 2011 10:53 PM UTC

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

Translate