无锡亿佳汇官网:关于一个“php_ming”的问题!高手请进!!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 22:46:17
我的“PHPINFO()”中的MING是:
“Ming SWF output library:the funk in your trunk”
php_ming前面的“;”已经去除
好像是没有激活!
用了这一段代码后出错:
<?php
Ming_setScale(1.0);

function makeRect($r, $g, $b){
$s = new SWFShape();
$s->setRightFill($s->addFill($r, $g, $b));
$s->movePenTo(-100,-20);
$s->drawLineTo(100,-20);
$s->drawLineTo(100,20);
$s->drawLineTo(-100,20);
$s->drawLineTo(-100,-20);
return $s;
}

// Set Font
$font = new SWFFont("test.fdb");
$text1 = new SWFText();
$text1->setFont($font);
$text1->moveTo(155, 410);
$text1->setColor(0x00, 0x00, 0x00);
$text1->setHeight(28);
$text1->addString("php.net");
$b1 = new SWFButton();
$b1->setUp(makeRect(0xff, 0, 0));
$b1->setOver(makeRect(0xcc, 0, 0));
$b1->setDown(makeRect(0, 0, 0xaa));
$b1->setHit(makeRect(0, 0, 0));
$b1->addAction(new SWFAction("getURL('http://www.php.net/',
'phpsite');"),
SWFBUTTON_MOUSEUP);

$m = new SWFMovie();
$m->setDimension(1000,1000);
$m->setBackground(0xcc, 0xcc, 0xcc);

$i = $m->add($b1);
$m->add($text1);
$i->setName("phpsite");
$i->moveTo(200,400);

header("Content-type: application/x-shockwave-flash");
$m->output();
?>

我到处找没找到php.net已经快被我找完了,还是没找到是怎么回事!
到底是什么原因,如果是没有把“MING”激活,能告诉我怎么办吗?

你说了半天我也没有听懂,不过建议你可以去网上查一查。明摆着东西的没几个人