ࡱ> Root Entryp|YrRASHJ(<Contents )Page 1Symbol 1 Root Entryp|YrRASHSr<Contents)Page 1Symbol 1   !CPicPage CPicLayer CPicFramefF>&snt00?Layer 1OCPicPage CPicLayer CPicFrame CPicSprite0qq0 // -------------------------------------------------------------- // filmato "triangolo mobile" // esempio analogo a quello presentato dal prof. Cellamare // in laboratorio il 19/1/2007 // -------------------------------------------------------------- onClipEvent(load) { SPEED = 2; // al momento del caricamento del movie clip // definisce una velocit per tutte le direzioni } onClipEvent(enterFrame) { if (Key.isDown(Key.RIGHT)) { this._rotation = 0; this._x = this._x + SPEED; } else if (Key.isDown(Key.LEFT)) { this._rotation = 180; this._x = this._x - SPEED; } else if (Key.isDown(Key.UP)) { this._rotation = -90; this._y = this._y - SPEED; } else if (Key.isDown(Key.DOWN)) { this._rotation = 90; this._y = this._y + SPEED; } // sfuma il triangolo in base alle coordinate x e y raggiunte. // (maggiore la somma di x e y maggiore l'effetto di sfumatura this._alpha = 100 - Math.round(this._x / 4) - Math.round(this._y / 4); // mantiene una visibilit minima di _alpha = 10 if (this._alpha < 10) this._alpha = 10; } tria?Layer 1O  CDocumentPage Page 1Scene 1ܰEZDE Symbol 1 triangoloZݰEBE*@hhhhh Vector::Template"PublishFormatProperties::generator CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]U'  CDocumentPage Page 1Scene 1ܰEZDE Symbol 1 triangoloZݰEBE*@hhhhh Vector::Template"PublishFormatProperties::generator CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx xh(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]U'h