Mercurial > hg > extraction-interface
view _xampp/splash-swf.php @ 14:ac77748bb813
- Load regex files based on current topic. Only show the regex in this topic.
To do that, it needs to lookup a table called 'topic_regex_relation' which has the relation of topic and regex filename in filesystem.
- Extractapp UI with some layout modification: button, popup window, responsive (by bootstrap now). It was just for quick prototyping.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 19 Feb 2015 11:07:27 +0100 |
parents | b12c99b7c3f0 |
children |
line wrap: on
line source
<? $m = new SWFMovie(); $m->setDimension(400, 100); $m->setBackground(0xff, 0xff, 0xff); $logo = new SWFSprite(); $j = $m->add($logo); $j->setName("logo"); $m->add(new SWFAction("loadMovie('splash-logo.php','logo');")); $step=0.1; for($i=0;;$i+=$step) { if($i>100)$i=100; $x=400-(400*$i/200)-200; $y=100-(100*$i/200)-50; $s=$i; $m->add(new SWFAction("logo._rotation = $i; logo._xScale=$s; logo._yScale=$s; logo._x= $x; logo._y=$y;")); $m->nextFrame(); $step*=1.2; if($i==100)break; } header('Content-type: application/x-shockwave-flash'); $m->output(); ?>