Re: CVS Account Request

From: Date: Wed, 24 Jan 2001 19:59:32 +0000
Subject: Re: CVS Account Request
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-44925@lists.php.net to get a copy of this message
Dave, your account is set up. I have been using your ming library and find it quite cool. Just to hit you with a question right off ;) I am trying to get a demo up for Linuxworld with a spinning PHP logo using ming. This is what I have: $s = new SWFShape(); $jpg = new SWFBitmap('php-big.jpg'); $w = $jpg->getWidth(); $h = $jpg->getHeight(); $f = $s->addFill(new SWFBitmap('php-big.jpg')); $s->setRightFill($f); $s->movePenTo(-$w,-$h); $s->drawLine($w, 0); $s->drawLine(0, $h); $s->drawLine(-$w, 0); $s->drawLine(0, -$h); $p = new SWFSprite(); $i = $p->add($s); for($step=0; $step<360; $step+=4) { $p->nextFrame(); $i->rotate(4); } $m = new SWFMovie(); $i = $m->add($p); $i->moveTo(300,200); $m->setRate(72); $m->setDimension($w*4, $h*4); header('Content-type: application/x-shockwave-flash'); $m->output(); I can't get the center of rotation right. Any chance you could have a look at it? -Rasmus On 24 Jan 2001 root@php2.chek.com wrote: > Full name: Dave Hayden > Email: dave@opaque.net > ID: opaquedave > Purpose: Adding ext/ming ming (SWF output) library wrapper > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#44925) next »