Witam (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif) mam pytanie, jak za pomocą MING'a zrobić animacje tekstu (IMG:
http://forum.php.pl/style_emoticons/default/questionmark.gif)
Mam jego wyświetlanie (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif)
<?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("AnkeCalligraph.fdb");
$text1 = new SWFText();
$text1->setFont($font);
$text1->moveTo(62, 45);
$text1->setColor(0x00, 0x00, 0x00);
$text1->setHeight(28);
$text1->addString("patryk");
$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(250,100);
$m->setBackground(0xcc, 0xcc, 0xcc);
$i = $m->add($b1);
$m->add($text1);
$i->setName("phpsite");
$i->moveTo(110,40);
header("Cache-Control: no-cache, must-revalidate"); header("Content-type: application/x-shockwave-flash"); $m->output();
?>
ale czy ktoś wie, jak można go lekko w jakiś sposób animować (IMG:
http://forum.php.pl/style_emoticons/default/tongue.gif) ?
Nikt nie wie (IMG:
http://forum.php.pl/style_emoticons/default/tongue.gif) ?