Hi all
I am having headache with it!!! :-(
I am trying to create a flash site that automatically adjust the position
and size when browser is resized.
My problem:
on frame 1
The below code fails when tested in browser but works in Flash test mode.
preloader case
If I use preloader on frame 1 and apply the code on frame 2, then it fails again.
The Code:
code:
fscommand("fullscreen", "true");
fscommand("showMenu", "false");
Stage.scaleMode = "noScale";
Stage.align = "LT";
// create a listener object
stageListener = new Object();
stageListener.onResize = function() {
expandTop();
//expandBodyText();
}
Stage.addListener(stageListener);
expandTop = function() {
Background_mc._width = Stage.width;
Background_mc._height = Stage.height;
logoClip._x = 0;
Main_navigation._x = 0;
colorTab_mc._x = Stage.width - colorTab_mc._width;
content._x = (Stage.width - this.content._width) / 2;
content._y = (Stage.height - this.content._height) / 2;
}
Could somebody tell me why it`s behaving so bad???
the fla file