Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Web languages(HTML, CSS, JS, jQuery, etc.)] Animation
#1
<?php
$font = new SWFFont("Impact.fdb");
$text = new SWFText();
$text->setFont($font);
$text->moveTo(300, 500);
$text->setColor(0, 0xff, 0);
$text->setHeight(200);
$text->addString("Text is surprisingly easy");

$movie = new SWFMovie();
$movie->setDimension(6400, 4800);

$displayitem = $movie->add($text);

for($i = 0; $i < 100; ++$i) {
$displayitem->rotate(-1);
$displayitem->scale(1.01, 1.01);
$movie->nextFrame();
}

header('Content-type: application/x-shockwave-flash');
$movie->output();
?>
Reply
#2
Great share buy you might want to go a little more in depth with it. Telling us what everything means in it. Other than that great share!
Reply
#3
Guys I hope this helped a little with learning PHP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)