I made a persect fit rectangle for my 720x840 flash, I made it a movieclip with the actionscript
onClipEvent(load)
{
function camControl()
{
parentColor.setTransform(camColor.getTra nsform());
var __reg5 = this._xscale / 100 * 720;
var __reg6 = this._yscale / 100 * 480;
var __reg4 = Math.sqrt(this._x * this._x + this._y * this._y);
var __reg3 = (this._x == 0 ? 1.5708 : Math.atan(this._y / this._x)) - this._rotation * 3.14159 / 180;
var __reg8 = sX / __reg5;
var __reg7 = sY / __reg6;
_parent._x = __reg8 * (__reg5 / 2 - __reg4 * Math.cos(__reg3));
_parent._y = __reg7 * (__reg6 / 2 - __reg4 * Math.sin(__reg3));
_parent._xscale = 100 * __reg8;
_parent._yscale = 100 * __reg7;
_parent._rotation = 0 - this._rotation;
}
function resetStage()
{
_parent._rotation = 0;
var __reg2 = {ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0, aa: 100, ab: 0};
parentColor.setTransform(__reg2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
And it's not working, there are no reported errors, what sould I do?