?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.
?php $m = new SWFMovie(); $m - setRate(36.0); $m - setDimension(1200, 800); $m - setBackground(0, 0, 0); / * sprite de suivi de souris: vide, mais il suit la souris de manière à ce que nous connaissions ses coordonnées* / $i = $m - add(new SWFSprite()); $i - setName('mouse'); $m - add(new SWFAction( "startDrag(' / mouse', 1); / * '1 'signifie verrouiller la souris * / ")); / * On peut tout simplement virer l'anti-aliasing, car il n'y a que des gros carrés, finalement * / $m - add(new SWFAction(" this.quality = 0; ")); / * boîte de morphing * / $r = new SWFMorph(); $s = $r - getShape1(); / * Notez que ce n 'est pas pratique pour les formes habituelles.