Hello…I am trying to make my background movie clip(bg) scale to the size of the browser window (or whatever size that might change to) while the rest of the content is at it’s normal size.
on the key frame where the background clip is i have:
private function initStagelistener(){
var bg = this;
_stageListener.onResize = function() {
bg.drawTileGrid();
bg.resizeGridCloud();
bg.centerMap();
bg.centerSection();
bg.centerHeaderFooter();
};
Stage.scaleMode = "noScale";
Stage.addListener(_stageListener);
}
- an issue is that i get an error message back, saying:
[COLOR=“Red”]Error Scene=Scene 1, layer=background, frame=2:Line 1: Attribute used outside class.
private function initStagelistener(){[/COLOR]
but i don’t what else i can do to rid of that.
once the error is fixed, shouldn’t this code work?
in my html i have:
<param name="scale" value="noscale" />
so the swf file doesn’t scale.
please let me know what you think.