■ 図形を描画するには
サンプル1
//メインタイムラインのフレームアクション
this.lineStyle(3,0xFF0000);
this.moveTo(80,60);
this.lineTo(240,180);
--------
サンプル2
//メインタイムラインのフレームアクション
this._mc
= this.createEmptyMovieClip("draw_mc",
10);
with (this._mc) {
color_array = [0xFF0000,
0x00FF00, 0xFFFF00];
alpha_array = [100, 50,
100];
ratio_array = [0, 128,
255];
matrix_obj = {matrixType:"box",
x:100, y:60, w:120, h:120,
r:0};
moveTo(100, 120);
beginGradientFill("radial",
color_array, alpha_array,
ratio_array, matrix_obj);
curveTo(100, 60, 160,
60);
curveTo(220, 60, 220,
120);
curveTo(220, 180, 160,
180);
curveTo(100, 180, 100,
120);
endFill();
}
this._mc.onRelease =
function() {
this.clear();
};

