AIR Android fullscreen masked background -- plz help
Hi,
I got the follow basic code making my backgound reszie to the stage dimentions:
public function main() {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
sw = stage.stageWidth
sh = stage.stageHeight
setPosition();
stage.addEventListener(Event.RESIZE, resizeLayout);
}
private function setPosition():void {
bg.width = stage.stageWidth;
bg.height = stage.stageHeight;
bg.x = 0
bg.y = 0
}
private function resizeLayout(e:Event):void {
setPosition();
}
The problem is if the bg movieclip is a has a mask inside of it, the dimentions are not of the masked area but of the total size.
Any ideas how i can get around that will be appriciated.
Thx Pavel
