■ ウィンドウサイズの変更に対応するコンテンツを制作するには
//メインタイムラインのフレームアクション
Stage.showMenu
= false;
Stage.scaleMode
= "noScale";
Stage.align
= "LT";
this.onResize
= function(){
this.size_txt.text =
Stage.width + "×" + Stage.height;
this.field_mc._width
= Stage.width;
this.field_mc._height
= Stage.height - this.field_mc._y;
};
Stage.addListener(this);
this.onEnterFrame = function(){
if (this.car_mc._x >=
Stage.width + 30){
this.car_mc._x = -30;
}else{
this.car_mc._x += 5;
}
};
※.HTMLは[ファイル]→[パブリッシュ設定...]の[HTML]タブの[サイズ]で[幅]、[高さ]とも100%にしておきます。

