|
From: gaz b <ga...@ya...> - 2004-04-28 11:38:22
|
Hi
The following ming 0.3 php scripts produce an error
message on win32 but still outputs a valid swf...
To test just compile addexport.php to produce
addexport.swf and then compile lib.php to produce
lib.swf and an error message(Exit code: -1073741819).
Is the code incorrect?
thanks
gazb
///////////scripts below//////////////////
// #######addexport.php###############
<?
Ming_setScale(20.0);
ming_useswfversion(6);
$movie = new SWFMovie();
$movie->setRate(20.000000);
$movie->setDimension(550, 400);
$movie->setFrames(1);
$movie->setBackground(0xcc,0xcc,0xcc);
// make red circle shape $c
$c = new SWFShape();
$c->setRightFill(255,0,0);
$c->drawCircle(100);
// add shape $c to sprite $sp
$sp= new SWFSprite();
$f1 = $sp->add($c);
$sp->nextFrame();
// give $sp sprite linkage 'redcircle'
$movie->addExport($sp, 'redcircle');
// export 'redcircle' in frame 1
$movie->writeExports();
$movie->save("addexport.swf");
?>
// #######lib.php###############
<?
//import movieclip from a shared library
// compiling this script produces an error message
// on win32 but still outputs a working swf...
Ming_setScale(20.00000000);
ming_useswfversion(6);
$movie=new SWFMovie();
$movie->setDimension(550,400);
$movie->setBackground(0xcc,0xee,0xcc);
$movie->setRate(12);
$clip = $movie->importChar("addexport.swf",
"redcircle");
$i = $movie->add($clip);
$i->moveTo(100, 100);
$movie->save("lib.swf");
?>
//////////END////////////
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
|