changing window size

Monkey Targets Forums/Flash/changing window size

dave.h(Posted 2012) [#1]
im using v56b and was wondering how do i change the screen size to 480x800.Everything ive tried always ends up in a 640x480 screen.


Volker(Posted 2012) [#2]
Edit the MonkeyGame.html in your .build folder.
Perhaps you have to edit your MonkeyGame.as too.
[SWF(width="480",height="800")]


Gerry Quinn(Posted 2012) [#3]
Just change it in the HTML and ActionScript in your build directory and it will persist between builds.


Gerry Quinn(Posted 2012) [#4]
Yes, like Volker I'm not sure whether it will do to edit just one.


dave.h(Posted 2012) [#5]
yes that was it i was forgetting to alter the MonkeyGame.as.Thanks guys it works fine now.


Paul - Taiphoz(Posted 2012) [#6]
I'm having issues with this, I change the html and the top of the .as file to reflect the window size I want to use but when I run it in chrome the screen is messed up, it like centers the screen and crops half the bottom of it right off.


dave.h(Posted 2012) [#7]
have you changed both the MonkeyGame.html and the MonkeyGame.as. When i only changed the MonkeyGame.html i got the same results as youve just described.