note 88148 deleted from function.swfmovie.add by danbrown
| From: | danbrown@php.net | Date: | Wed, 14 Jan 2009 01:18:01 +0000 |
| Subject: | note 88148 deleted from function.swfmovie.add by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149175@lists.php.net to get a copy of this message | ||
Note Submitter: askypcom at gmail dot com
----
<?php
$myShape1=new SWFShape();
$myShape1->setLine(5,0,0,255);
$myShape1->setRightFill(255,255,0);
$myShape1->movePen(-30,-30);
$myShape1->drawLine(60,0);
$myShape1->drawLine(0,60);
$myShape1->drawLine(-60,0);
$myShape1->drawLine(0,-60);
$myMovie=new SWFMovie();
$myMovie->setDimension(460,80);
$myMovie->setBackground(255,0,0);
$movingSquare=$myMovie->add($myShape1);
$movingSquare->moveTo(40,40);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->nextFrame();
$movingSquare->rotate(-15);
$movingSquare->move(40,0);
$myMovie->save("lesson-spin.swf");
?>
Sachin Akhani
http://www.askyp.com