#!/usr/bin/php <?php $m = new SWFMovie(8); ming_setscale(1.0); /*Unknown block type 69*/ /* SWF_DEFINESHAPE3 */ /* Shape 1 (TYPE=3, RECT=0,0 0,0)*/ $character1 = new SWFShape(); /*2 fillstyle(s)*/ $character1_f0_red = 0x20; $character1_f0_green = 0x40; $character1_f0_blue = 0x80; $character1_f0_alpha = 0xdf; $character1_f0 = $character1->addSolidFill($character1_f0_red, $character1_f0_green, $character1_f0_blue, $character1_f0_alpha); /*SWFFILL_SOLID*/ $character1_f1_red = 0x40; $character1_f1_green = 0x80; $character1_f1_blue = 0x20; $character1_f1_alpha = 0x18; $character1_f1 = $character1->addSolidFill($character1_f1_red, $character1_f1_green, $character1_f1_blue, $character1_f1_alpha); /*SWFFILL_SOLID*/ /*0 linestyles(s)*/ /* SWF_PLACEOBJECT2 */ $i1 = $m->add($character1); $i1->setDepth(1); /* PlaceFlagHasMatrix */ /* SWF_SHOWFRAME */ $m->nextFrame(); /* end of frame 1 */ /* SWF_END */ $m->save("test01.swf");
#!/usr/bin/php -c. <?php $m = new SWFMovie(8); $s = new SWFShape(); $f = $s->addSolidFill(255, 0, 0); $s->setRightFill($f); Ming_setCubicThreshold(10); $s->movePenTo(167.0, 69.87504); $s->drawCubicTo(198.796531, 69.87504, 224.62496, 95.703469, 224.62496, 127.5); $s->drawCubicTo(224.62496, 159.296531, 198.796531, 185.12496, 167.0, 185.12496); $s->drawCubicTo(135.203469, 185.12496, 109.37504, 159.296531, 109.37504, 127.5); $s->drawCubicTo(109.37504, 95.703469, 135.203469, 69.87504, 167.0, 69.87504); $m->add($s); $m->save("test02.swf");