From professional translators, enterprises, web pages and freely available translation repositories.
no idea why. * / $s - setleftfill( $s - addfill(0xff, 0xff, 0xff)); $s - movepento(-40, -40); $s - drawline(80, 0); $s - drawline(0, 80); $s - drawline(-80, 0); $s - drawline(0, -80); $s = $r - getshape2(); $s - setleftfill($s - addfill(0x00, 0x00, 0x00)); $s - movepento(-1, -1); $s - drawline(2, 0); $s - drawline(0, 2); $s - drawline(-2, 0); $s - drawline(0, -2); / * sprite container for morphing box - this is just a timeline w / the box morphing * / $box = new swfsprite(); $box - add(new swfaction( "stop(); ")); $i = $box - add($r); for($n=0; $n =20; ++$n) {$i - setratio($n / 20); $box - nextframe();} / * this container sprite allows us to use the same action code many times * / $cell = new swfsprite(); $i = $cell - add($box); $i - setname('box'); $cell - add(new swfaction(" settarget('box'); / * ...x means the x coordinate of the parent, i.e. (. .).x * / dx = (/ mouse.x + random(6)-3 - ...x) / 5; dy = (/ mouse.y + random(6)-3 - ...y) / 5; gotoframe(int(dx*dx + dy*dy)); ")); $cell - nextframe(); $cell - add(new swfaction( "gotoframe(0); play(); ")); $cell - nextframe(); / * finally, add a bunch of the cells to the movie * / for($x=0; $x 12; ++$x) {for($y=0; $y 8; ++$y) {$i = $m - add($cell); $i - moveto(100*$x+50, 100*$y+50);}} $m - nextframe(); $m - add(new swfaction(" gotoframe(1); play(); ")); header('content-type: application / x-shockwave-flash'); $m - output();?
?php $m = new swfmovie(); $m- setrate(36.0); $m- setdimension(1200, 800); $m- setbackground(0, 0, 0); /* mouse tracking sprite - empty, but follows mouse so we can get its x and y coordinates */ $i = $m- add(new swfsprite()); $i- setname('mouse'); $m- add(new swfaction(" startdrag('/mouse', 1); /* '1' means lock sprite to the mouse */ ")); /* might as well turn off antialiasing, since these are just squares. */ $m- add(new swfaction(" this.quality = 0; ")); /* morphing box */ $r = new swfmorph(); $s = $r- getshape1(); /* note this is backwards from normal shapes. no idea why. */ $s- setleftfill($s- addfill(0xff, 0xff, 0xff)); $s- movepento(-40, -40); $s- drawline(80, 0); $s- drawline(0, 80); $s- drawline(-80, 0); $s- drawline(0, -80); $s = $r- getshape2(); $s- setleftfill($s- addfill(0x00, 0x00, 0x00)); $s- movepento(-1, -1); $s- drawline(2, 0); $s- drawline(0, 2); $s- drawline(-2, 0); $s- drawline(0, -2); /* sprite container for morphing box - this is just a timeline w/ the box morphing */ $box = new swfsprite(); $box- add(new swfaction(" stop(); ")); $i = $box- add($r); for($n=0; $n =20; ++$n) {$i- setratio($n/20); $box- nextframe();} /* this container sprite allows us to use the same action code many times */ $cell = new swfsprite(); $i = $cell- add($box); $i- setname('box'); $cell- add(new swfaction(" settarget('box'); /* ...x means the x coordinate of the parent, i.e. (..).x */ dx = (/mouse.x + random(6)-3 - ...x)/5; dy = (/mouse.y + random(6)-3 - ...y)/5; gotoframe(int(dx*dx + dy*dy)); ")); $cell- nextframe(); $cell- add(new swfaction(" gotoframe(0); play(); ")); $cell- nextframe(); /* finally, add a bunch of the cells to the movie */ for($x=0; $x 12; ++$x) {for($y=0; $y 8; ++$y) {$i = $m- add($cell); $i- moveto(100*$x+50, 100*$y+50);}} $m- nextframe(); $m- add(new swfaction(" gotoframe(1); play(); ")); header('content-type: application/x-shockwave-flash'); $m- output();?