<?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
SWFMovie->add
(PHP 4 >= 4.3.3)
SWFMovie->add — Adds any type of data to a movie
Descrição
mixed SWFMovie::add
( object $instance
)
Aviso
Esta função é EXPERIMENTAL. O comportamento desta função, seu nome, incluindo toda documentação pode ser modificado sem aviso em futuras versões do PHP. Esta função deve ser usada por sua própria conta e risco.
Adds an SWF object instance to the current movie.
Valor Retornado
For displayable types (shape, text, button, sprite), this returns an SWFDisplayItem, a handle to the object in a display list. Thus, you can add the same shape to a movie multiple times and get separate handles back for each separate instance.
User Contributed Notes
SWFMovie->add
SWFMovie->add
askypcom at gmail dot com
13-Jan-2009 01:22
13-Jan-2009 01:22

SWFMovie