Mi estimado amigo... esto lo hicieron con Action Script mismo que TE ANEXO.
SI QUIERES SACAR LA INFO POR TI MISMO DESCARGATE EL Sothink SWF Decompiler www.sothink.com y te ayudará a saber más de flash.
Saludos
*****************
var w = water_mc._width;
var h = water_mc._height;
ripples = new flash.display.BitmapData(w, h);
ripple3 = new flash.display.BitmapData(w, h / 2);
ripple2 = new flash.display.BitmapData(w, h / 4);
ripple1 = new flash.display.BitmapData(w, h / 4);
gradient = new flash.display.BitmapData(ripples.width, ripples.height);
gradient.draw(gradient_mc);
gradient_mc._visible = false;
offset3 = new flash.geom.Point(0, 0);
offset2 = new flash.geom.Point(0, 0);
offset1 = new flash.geom.Point(0, 0);
speed1 = -0.300000;
speed2 = -0.600000;
speed3 = -1.200000;
pt = new flash.geom.Point(0, 0);
rect = new flash.geom.Rectangle(0, 0, ripples.width, ripples.height);
r1rect = new flash.geom.Rectangle(0, 0, ripple1.width, ripple1.height);
r2rect = new flash.geom.Rectangle(0, 0, ripple2.width, ripple2.height);
r3rect = new flash.geom.Rectangle(0, 0, ripple3.width, ripple3.height);
r1pt = new flash.geom.Point(0, 0);
r2pt = new flash.geom.Point(0, ripple1.height);
r3pt = new flash.geom.Point(0, ripple1.height + ripple2.height);
dMap = new flash.filters.DisplacementMapFilter(ripples, pt, null, 1, 100, 100, "WRAP");
this.onEnterFrame = function ()
{
offset1.y = offset1.y + speed1;
offset2.y = offset2.y + speed2;
offset3.y = offset3.y + speed3;
ripple3.perlinNoise(0, 15, 1, seed, true, true, 1, true, [offset3]);
ripple2.perlinNoise(0, 10, 1, seed, true, true, 1, true, [offset2]);
ripple1.perlinNoise(0, 5, 1, seed, true, true, 1, true, [offset1]);
ripples.copyPixels(ripple1, r1rect, r1pt);
ripples.copyPixels(ripple2, r2rect, r2pt);
ripples.copyPixels(ripple3, r3rect, r3pt);
ripples.merge(gradient, rect, pt2, 127, 127, 127);
water_mc.filters = [dMap];
};
2006-11-16 05:08:16
·
answer #1
·
answered by Juanpas Rifado 3
·
0⤊
0⤋