Stage.align = "TL";
Stage.scaleMode = "noscale";
sizeListener = new Object();
sizeListener.onResize = function()
{
fullsize();
};
Stage.addListener(sizeListener);
_global.fullsize = function()
{
navBar._width = Stage.width;
boxOne._x = Stage.width/2 - boxOne._width/2
boxOne._y = Stage.height/2 -boxOne._height/2
buttons._x = Stage.width/2 - buttons._width/2
game._x = Stage.width/2 - game._width/2
fox._x = Stage.width-30 - fox._width/2
fox._y = Stage.height-50 -fox._height/2
fokk._x = Stage.width-90 - fokk._width/2
fokk._y = Stage.height-50 -fokk._height/2
};
fullsize();
//----------BUTTONS----------\\
buttons.herp.onPress = function(){
boxOne.gotoAndStop(1);
}
buttons.ahh.onPress = function(){
boxOne.gotoAndStop(2);
}
buttons.derp.onPress = function(){
boxOne.gotoAndStop(3);
}
Today, we learned some stuff, and then this happened. So, here it is.
Starting to learn how to use align and such. Stuff be cool.