/////////////////////////////////////////////
///// author: chenlangeer //////
///// msn: [email=chenlangeer@hotmail.com]chenlangeer@hotmail.com[/email] //////
///// blog: cgs.flash8.net //////
/////////////////////////////////////////////
import flash.display.BitmapData;
import flash.filters.*;
import flash.geom.*;
_quality = "LOW";
_root.createTextField("logo", 10, 10, 10, 220, 18);
logo.html = true;
logo.htmlText = "<FONT FACE=’Arial’ SIZE=’14’ COLOR=’#FF9900’><A HREF=’http://cgs.flash8.net’ TARGET=’_blank’>Core Graph Studio</A> </FONT><FONT FACE=’Arial’ SIZE=’12’ COLOR=’#999999’>click to redraw</FONT>";
_root.createTextField("para", 9, Stage.width-150, Stage.height-30, 150, 18);
para.html = true;
var bmp:BitmapData = new BitmapData(Stage.width, Stage.height, false, 0x0);
_root.attachBitmap(bmp, 0);
_root.createEmptyMovieClip("world", 2);
world.createEmptyMovieClip("_mc", 0);
world._mc._x = Stage.width/2;
world._mc._y = Stage.height/2;
var rad_speed:Number = 2;
var blurFilter:BlurFilter = new BlurFilter(2, 2, 1);
var f:Number = -.01;
var colorFilter:ColorMatrixFilter = new ColorMatrixFilter([.9, -.1, 0, 0, f, 0, .8, -.2, 0, f, .1, 0, .9, 0, f, 1, 0, 0, 1, 0]);
var total_nums:Number = 10;
onMouseDown = function () {
for (var i in world._mc) {
world._mc[i].removeMovieClip();
}
var a = Math.random()*.2;
t = (Math.random()-.5)*a;
z = (Math.random()-.5)*a;
para.htmlText = "<FONT SIZE=’12’ COLOR=’#999999’>z="+Math.round(z*10000)/10000+" t="+Math.round(t*10000)/10000+"</FONT>";
rad_speed = (Math.random()-.5)*3.8;
上一篇:
Flash制作一个极有真实感的放大镜
下一篇:
Flash Action实现小球沿不规则的路径上移动