note 30957 added to ref.ming
| From: | gaz_b3 at yahoo dot com | Date: | Fri, 04 Apr 2003 11:11:32 +0000 |
| Subject: | note 30957 added to ref.ming | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46217@lists.php.net to get a copy of this message | ||
The current CVS version, Ming 0.3a, supports
a lot of MX ActionScript including the MX Drawing API.
This is very nice for easy command line compiling of
MX ActionScript only movies.
For example:
<?
ming_setScale(20.00000000);
ming_useswfversion(6);
$movie = new SWFMovie();
$movie->setDimension(550,400);
$movie->setBackground(0xcc, 0xcc, 0xcc );
$movie->setRate(31);
// mx actionscript
$strAction = "
_root.createEmptyMovieClip ( 'triangle', 1 );
with ( _root.triangle ) {
lineStyle( 5, 0xff00ff, 100 );
moveTo( 200, 200 );
lineTo( 300,300 );
lineTo( 100, 300 );
lineTo( 200, 200 );
}
";
$movie->add(new SWFAction( str_replace("\r", "", $strAction) ));
$movie->save("trianglemx.swf");
?>
Lots of examples here:
http://www16.brinkster.com/gazb/ming/
--
http://www.php.net/manual/en/ref.ming.php
http://master.php.net/manage/user-notes.php?action=edit+30957
http://master.php.net/manage/user-notes.php?action=delete+30957
http://master.php.net/manage/user-notes.php?action=reject+30957