Centering The content on the stage
We are going to do everything via code. Although on your end you can build many things directly on the timeline to keep things very dynamic we will try to avoid having content on the stage limited to our logo. What we really want to do first is set our applications registration point to the top left corner we do that using the StageAlign.TOP_LEFT property and set our application not to scale as well.
Once we have an application that doesn't automatically scale we are ready to start adding logic into our application. As such we will start off by listening to the Orientation event and we will recent our logo each time to remain in the center of the screen.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!