hi
I want to imprort a swf file in php ming file.
i use these code:-
<?php
$s = new SWFShape();
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(-500, -500);
$s->drawLineTo(500, -500);
$s->drawLineTo(500, 500);
$s->drawLineTo(-500, 500);
$s->drawLineTo(-500, -500);
$m = new SWFMovie();
$m->setDimension(800, 600);
$i = $m->add($s);
$i->moveTo(400, 300);
for($j=0; $j<5; ++$j)
{
$m->nextFrame();
$i->rotate(15);
}
$m->nextFrame();
$p = new SWFSprite();
$i = $p->add($p);
$p->nextFrame();
$m = new SWFMovie();
$i = $m->add($p);
$i->moveTo(1000, 1000);
$i->setName("amit");
$m->add(new SWFAction("loadMovie('lesson1.swf', amit)"));
$m->setDimension(1000, 800);
header('Content-type: application/x-shockwave-flash');
$m->output();
?>
i get these error:-
Catchable fatal error: SWFAction::__construct() [function.SWFAction---construct]: Line 1: Reason: 'Unexpected EOF found while looking for input.' in E:\wamp\www\ming\example\fill1.php on line 30
i dont understand how i solve this problem. if any one know please help me
your new friend amit