flash : liauid layout อันนี้ดีที่สุด

อ่านทู้เก่าก่อน
อันที่ 1 : Tile BG full browser
อันที่ 2 : Center Center full browser

ทำเหมือนทู้ 2 นะคะ เพียงแต่เปลี่ยน code

*************************************************

// 1: import the Delegate class to deal with event function scope
import mx.utils.Delegate;

// 2: set the Stage class params
Stage.scaleMode = "noScale";
Stage.align = "C"; // to centre the stage

// 3: Assign the dimensions of the document
// to the Movie object (same as FLA):
var noscale_mc:Object = new Object();
/*noscale_mc.width = 1000;
noscale_mc.height = 600;*/

// 4: create function to position your MC at the top-left of
// the stage
function positionStageMC():Void {
/* note: because we are using Delegate, the scope of this
function is mcStage, and not "slistener"
*/
// position mcStage (this)
scale_mc._x = (Movie.width/2)-(Stage.width/2);
scale_mc._y = (Movie.height/2)-(Stage.height/2);
/*size mcStage
this._width = Stage.width;
this._height = Stage.height;*/
// position & size background
this.scale_mc._width = Stage.width;
this.scale_mc._height = Stage.height;
}

// 5: initialize mcStage position
positionStageMC();

// 6: create an onResize event which calls positionStageMC()
// when the stage is resized.
var slistener:Object = new Object();
slistener.onResize = Delegate.create(this, positionStageMC);
Stage.addListener(slistener);
*************************************************

DL : source code ที่ MEDIAFIRE

***ต้องใช้ Flash CS3 หรือ version สูงกว่านั้นขึ้นไปเปิดนะจ๊ะ ***

ขอบคุณ : Community MX