require"Object.php";
require"TestPrint.php";
require"Matrix.php";
require"Polygon.php";
require"Simple_Universe.php";
ming_useSWFVersion(6);

$m = new SWFMovie();
$A = new Matrix();
$P = new TestPrint();
$Po = new Polygon();
$Uni  = new SimpleUniverse(); 

$m->setDimension(800, 600);

$N = $m->add($P->Layer());
$N->setName("Print");

$N = $m->add($A->Layer());
$N->setName("Matrix");

$N = $m->add($Po->Layer());
$N->setName("Polygon");

$N = $m->add($Uni->Layer());
$N->setName("Uni");
$N->moveTo(200,200);
$m->nextFrame();



$m->add(
	new SWFAction
	("

var init = 1;
	 A = _root.Matrix.newMatrix();
	 B = _root.Matrix.newMatrix();
	 T = _root.Matrix.newMatrix();
	 P = _root.Polygon.newPolygon_square();
         

this.onEnterFrame = function(){	

	PT = _root.Polygon.move(P,0,0,-40);
	_root.Uni.draw(PT);

	PT = _root.Polygon.move(P,300,300,0);
	_root.Uni.draw(PT);

	PT = _root.Polygon.move(P,-300,300,0);
	_root.Uni.draw(PT);

	PT = _root.Polygon.move(P,300,-300,0);
	_root.Uni.draw(PT);

	PT = _root.Polygon.move(P,-300,-300,0);
	_root.Uni.draw(PT);



	
	};

	")

);


$m->save("matrix.swf");

Gポイントポイ活 Amazon Yahoo 楽天

無料ホームページ 楽天モバイル[UNLIMITが今なら1円] 海外格安航空券 海外旅行保険が無料!