# How to adapt game resolution to a device

**URL:** <https://forum.kirupa.com/t/how-to-adapt-game-resolution-to-a-device/531867>\
**Category:** flash\
**Created:** [February 9, 2015, 9:45pm UTC](https://forum.kirupa.com/t/how-to-adapt-game-resolution-to-a-device/531867 "2015-02-09T21:45:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cress](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Cress](https://forum.kirupa.com/u/Cress)\
**Post date:** [February 9, 2015, 9:45pm UTC](https://forum.kirupa.com/t/how-to-adapt-game-resolution-to-a-device/531867/1 "2015-02-09T21:45:06Z")

</div>

Hi everybody, I’m wondering how to adapt the resolution of a flash game to a device in order to publish it on different phones or tablets. I have already seen some kind of tutorials but cannot understand how it works and I still haven’t managed to do it.

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [February 9, 2015, 10:42pm UTC](https://forum.kirupa.com/t/how-to-adapt-game-resolution-to-a-device/531867/2 "2015-02-09T22:42:03Z")

</div>

Do you have an existing game that you’re trying to adapt? If so, you will likely have made some assumptions about device resolution and stage resolution in your code. Adapting a game depends heavily on those assumptions, so it’s hard to give general-purpose advice about quickly fixing things.

For instance, it would be useful to know which stage scaling mode you’re using, and if you ever refer to `stage.stageWidth` or similar within your code. Same for `root`.

If you’re just looking for tutorials, I wouldn’t be able to do much better than yourself in terms of searching the web for good ones. I know this site doesn’t have any on the topic.
