Actionscript Code:
fscommand("allowFullScreen", "true");
fscommand("allowscale", "false");
fscommand("showmenu", "false");
Stage.align = "TL";
Stage.scaleMode = "noscale";
function align() {
square._x = (Stage.width-square._width)/2;
square._y = Stage.height-square._height;
}
var myListener:Object = new Object();
myListener.onResize = function() {
align();
};
Stage.addListener(myListener);
myListener.onResize();
//
var ease = 30;
var panning = 0.35;
var tilting = 0.05;
square.onEnterFrame = function() {
Xcam = square._x-(_level0._xmouse-Stage.width/2)*panning;
//Ycam = square._y -(_level0._ymouse-Stage.height/2)* tilting
square._x += (Xcam-square._x)/ease;
//square._y += (Ycam - square._y)/ease;
};
Doesn't the _y in the align and the _y in the tilting code conflict ultimately? (I moved the code to the main timeline for the easing)