class SimpleUniverse extends Object
{
function SimpleUniverse()
{
$this->Object();
$this->addAction($this->SimpleAction(),"act");
$this->compire();
}
function SimpleAction()
{
$act = new SWFAction
("
// this.onEnterFrame = function(){
// lineStyle(0,150,100);
// moveTo(100,100);
// lineTo(500,500);
// };
this.draw = function(polygon){
lineStyle(0,150,100);
moveTo( _root.Matrix.getElement(polygon[0],0,0)*50/_root.Matrix.getElement(polygon[0],0,2) ,
_root.Matrix.getElement(polygon[0],0,1)*50/_root.Matrix.getElement(polygon[0],0,2));
for (i = 1; i < polygon.length ;i++){
lineTo( _root.Matrix.getElement(polygon[i],0,0)*50/_root.Matrix.getElement(polygon[i],0,2),
_root.Matrix.getElement(polygon[i],0,1)*50/_root.Matrix.getElement(polygon[i],0,2));
}
};
");
return $act;
}
}
テレワークならECナビ Yahoo 楽天 LINEがデータ消費ゼロで月額500円〜!
無料ホームページ 無料のクレジットカード 海外格安航空券 海外旅行保険が無料! 海外ホテル