1#!/usr/bin/php -c. 2<?php 3$m = new SWFMovie(8); 4 5$morph = new SWFMorph(); 6 7$shape1 = $morph->getShape1(); 8$shape2 = $morph->getShape2(); 9 10$shape1->setLine(4, 25, 0, 0, 128); 11$shape1->movePenTo(5, 5); 12$shape1->drawLineTo(50, 30); 13 14$shape2->setLine(4, 25, 0, 0, 128); 15$shape2->movePenTo(5, 5); 16$shape2->drawLineTo(50, 130); 17 18$item = $m->add($morph); 19for ($i = 0; $i < 10; $i++) 20{ 21 $item->setRatio(0.1 * $i); 22 $m->nextFrame(); 23} 24 25$m->save("test01.swf"); 26 27?> 28