note 14572 added to ref.ming.php

From: Date: Sat, 04 Aug 2001 10:17:46 +0000
Subject: note 14572 added to ref.ming.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16313@lists.php.net to get a copy of this message
// Simple button with link <?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(); ?> http://www.php.net/manual/en/ref.ming.php

« previous php.notes (#16313) next »