プロの翻訳者、企業、ウェブページから自由に利用できる翻訳レポジトリまで。
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();?
例 1 swfaction() の例