Hi,
I’m working on a short flash movie where I want to mask the background picture with a script. Basically I want the movie maskbg of 30x30 pix scaled to fullscreen (the whole screen).
I already tried several thing, but nothing seems to be working.
Below you can see the AS I’ve used
Stage.scaleMode = "noScale";
Stage.align = "TL";
stageResize = function () {
background_mc._x = 0;
background_mc._y = 0;
background_mc._width = Stage.width;
background_mc._height = Stage.height;
footer._y = Stage.height - footer._height
footer._x = 0
footer._width = Stage.width
maskbg._y = Stage.height / 2 - maskbg._height / 2;
maskbg._x = Stage.width / 2 - maskbg._width / 2;
};
stageResize();
var stageListener:Object = new Object();
stageListener.onResize = function() {
stageResize();
};
Stage.addListener(stageListener);
import mx.transitions.Tween ;
import mx.transitions.easing.*;
var xscaleT:Tween = new Tween(maskbg, "_xscale", Strong.easeOut, 0, 100, 5, true);
var yscaleT:Tween = new Tween(maskbg, "_yscale", Strong.easeOut, 0, 100, 5, true);
Thanks
Marvin