setDimension(600, 600); $s = new SWFShape(); //$s->setLine(4, 0x00, 0xc0, 0xff); $f = $s->addFill(0x00, 0xff, 0x80); $s->setRightFill($f); $s->movePenTo(-200, -200); $s->drawLine(400, 0); $s->drawLine(0, 400); $s->drawLine(-400, 0); $s->drawLine(0, -400); $i = $m->add($s); $i->moveTo(300, 300); for ($j=0; $j<24; $j++) { $i->multColor(1.0, 1.0, 1.0, $j/24.0); $i->rotateTo(-360.0/4/24*$j); $m->nextFrame(); } for ($j=0; $j<24; $j++) { $i->multColor(1.0, 1.0, 1.0, (24-$j)/24.0); $i->rotateTo(-360.0/4/24*$j); $m->nextFrame(); } $m->save($flashfile); header('Content-type: application/x-shockwave-flash'); // header("Location: $flashfile"); $m->output(); return; ?>