Thursday, July 29th 2010, 1:33pm UTC+2
You are not logged in.
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
$fontDir = "fonts";
$movieWidth = "400";
$movieHeight = "40";
$m = new SWFMovie();
$m->setDimension($movieWidth,$movieHeight);
$m->setBackground(0,0,0);
$font = new SWFFont($fontDir."/Techno.fdb");
$text = new SWFText();
$text->setFont($font);
$text->setColor(255,255,255);
$text->setHeight(20);
$viewText = "öäüÖÄÜ+ß";
$textWidth = $text->getWidth($viewText);
$text->addString($viewText);
$text->moveTo(0,0);
$p = new SWFSprite();
$i = $p->add($text);
$i->setDepth(1);
$p->nextFrame();
$i = $m->add($p);
$i->setDepth(1);
$i->moveTo($movieWidth,30);
$i->setName("box");
$m->add(new SWFAction("
box._x -= 3;
if (box._x <= -$textWidth) {
box._x = $movieWidth;
}
"));
$m->nextFrame();
$m->add(new SWFAction("prevFrame(); play();"));
$m->nextFrame();
header('Content-type: application/x-shockwave-flash');
$m->output();
|


|
|
PHP Source code |
1 |
header( "Content-Type: text/html; charset=utf-8" );
|
This post has been edited 1 times, last edit by "geist" (Feb 23rd 2008, 8:58pm)