Published in: ActionScript
URL: http://www.cristalab.com/foros/t22148-150.html
import flash.geom.*; import flash.display.*; function espejo(mc){ w=mc._width*100/mc._xscale; h=mc._height*100/mc._yscale; b = new BitmapData(w, 2*h, true, 0); t = createEmptyMovieClip("p2",100002); M = new Matrix(); M.scale(1,-1); M.ty = 2*h; Mx = new Matrix(); Mx.createGradientBox(w,h,1.57,0,0); t.beginGradientFill("linear",[0,0,0],[100,80,10],[100,160,255],Mx); t.moveTo(0,0);t.lineTo(0,h);t.lineTo(w,h);t.lineTo(w,0);t.endFill(); b.draw(mc,M); b.draw(t,M,null,12); t.removeMovieClip(); mc.attachBitmap(b,2); }
You need to login to post a comment.
