You are here: Call to a member function on a non-object « PHP Programming Language « IT news, forums, messages
Call to a member function on a non-object

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация