note 89113 added to function.swfmorph.construct
| From: | markomohundro at osu1 dot php dot net | Date: | Sun, 22 Feb 2009 18:07:59 +0000 |
| Subject: | note 89113 added to function.swfmorph.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150954@lists.php.net to get a copy of this message | ||
<?php
// with a few changes to the example above --
// looks like SWFMorph() can also be used to DISSOLVE a shape...
// Shape2's fill below is set to same movie setBackground() color,
// and its setLine() parameter #1 for weight is set to zero.
// smaller seems to look a little better with this also...
$rbg = 0x66; // 102
$gbg = 0x99; // 153
$bbg = 0xCD; // 205
$p = new SWFMorph();
$s = $p->getShape1();
$s->setLine(0, 0, 0, 0);
$s->setLeftFill($s->addFill(0xff, 0, 0));
$s->movePenTo(-1000,-1000);
$s->drawLine(2000,0);
$s->drawLine(0,2000);
$s->drawLine(-2000,0);
$s->drawLine(0,-2000);
$s = $p->getShape2();
$s->setLine(0,0,0,0); // changed from (60,0,0,0)
$s->setLeftFill($s->addFill($rbg, $gbg, $bbg)); // new color to match
$s->movePenTo(0,-1000);
$s->drawLine(1000,1000);
$s->drawLine(-1000,1000);
$s->drawLine(-1000,-1000);
$s->drawLine(1000,-1000);
$m = new SWFMovie();
$m->setDimension(6000,4000);
$m->setBackground($rbg, $gbg, $bbg);
$i = $m->add($p);
$i->moveTo(3000,2000);
for ($r=0.0; $r<=1.0; $r+=0.1) {
$i->setRatio($r);
$m->nextFrame();
}
$m->add(new SWFAction("stop();"));
$m->nextFrame();
header('Content-type: application/x-shockwave-flash');
$m->output();
?>
----
Server IP: 69.147.83.197
Probable Submitter: 75.40.54.20
----
Manual Page -- http://www.php.net/manual/en/function.swfmorph.construct.php
Edit -- https://master.php.net/note/edit/89113
Del: integrated -- https://master.php.net/note/delete/89113/integrated
Del: useless -- https://master.php.net/note/delete/89113/useless
Del: bad code -- https://master.php.net/note/delete/89113/bad+code
Del: spam -- https://master.php.net/note/delete/89113/spam
Del: non-english -- https://master.php.net/note/delete/89113/non-english
Del: in docs -- https://master.php.net/note/delete/89113/in+docs
Del: other reasons-- https://master.php.net/note/delete/89113
Reject -- https://master.php.net/note/reject/89113
Search -- https://master.php.net/manage/user-notes.php