PHP + Flash

From: Date: Mon, 16 Sep 2002 15:56:27 +0000
Subject: PHP + Flash
References: 1 2 3  Groups: php.general.es 
Request: Send a blank email to general-es+get-26982@lists.php.net to get a copy of this message
Hola, acabo de leer el manual y probe un ejemplo que hay, para generar swf con php.- Queria saber si saben algo mas del tema, de ejemplo de codigo en linea para estudiar, algun ejemplo, alguna nota o minitutorial que explique mas con ejemplo. Enlaces, cualquiercosa. Mi primer swf dinamico esta en:: decarlospaz.com/lab/swf.php este es el codigo: <?php Ming_setScale(1.0); function makeRect($r, $g, { $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("verdana"); $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(); ?> esta linea $font = new SWFFont("verdana"); en el original no es asi.. Gracias

« previous php.general.es (#26982) next »