|
Posted by Captain Dondo on 03/02/06 03:03
Could someone please look at this code and tell me wht is going on?
This program dies on the "****" line with:
Fatal error: Call to a member function on a non-object in
/www/cgi-bin/pivot.php on line 33
But AFAICT it is absolutely identical to the shape that went before....
What am I missing?
$m = new SWFMovie();
$m->setDimension(2400,2400);
$m->setBackground(0, 0x66, 0x66);
$m->setRate(24.0);
$hit = new SWFShape();
// bug: have to declare all line styles before you use them
$hit->setLine(40, 0x7f, 0x00, 0x00);
$hit->setLine(40, 0x00, 0x66, 0x66);
$hit->setLine(40, 0, 0x7f, 0);
//$hit->setRightFill($hit->addFill(0,0,0));
$hit->movePenTo(1200,1200);
$hit->setLine(40, 0x7f, 0, 0);
$hit->drawCircle(1000);
$ps = new SWFShape();
$ps->movePenTo(0,0);
$ps->setLine(40, 0x7f, 0, 0);
$ps->drawLine(1000, 0);
$c1 = new SWFShape();
$c1->movePenTo(250,0);
$cl->setLine(40, 0x7f, 0, 0);************************
$c1->drawCircle(50);
Navigation:
[Reply to this message]
|