comparison _xampp/splash-swf.php @ 0:b12c99b7c3f0

commit for previous development
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 19 Jan 2015 17:13:49 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b12c99b7c3f0
1 <?
2 $m = new SWFMovie();
3 $m->setDimension(400, 100);
4 $m->setBackground(0xff, 0xff, 0xff);
5
6 $logo = new SWFSprite();
7 $j = $m->add($logo);
8 $j->setName("logo");
9
10 $m->add(new SWFAction("loadMovie('splash-logo.php','logo');"));
11
12 $step=0.1;
13 for($i=0;;$i+=$step)
14 {
15 if($i>100)$i=100;
16 $x=400-(400*$i/200)-200;
17 $y=100-(100*$i/200)-50;
18 $s=$i;
19 $m->add(new SWFAction("logo._rotation = $i; logo._xScale=$s; logo._yScale=$s; logo._x= $x; logo._y=$y;"));
20 $m->nextFrame();
21 $step*=1.2;
22 if($i==100)break;
23 }
24
25 header('Content-type: application/x-shockwave-flash');
26 $m->output();
27 ?>