舞台设置大小: 宽度随便设置,高度要在200以上:也可以在代码里修改代码第六行 var rect:Rectangle = new Rectangle(0, 0, Stage.width, 200); 这个200就是高度) Stage.scaleMode = "noScale"; import flash.display.BitmapData; import flash.filters.ConvolutionFilter; import flash.geom.Rectangle; var con = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 30, 1, 1, 1, 1], 38); var rect:Rectangle = new Rectangle(0, 0, Stage.width, 200); var bitmap1 = new BitmapData(rect.width, rect.height, false,0x00000000); var bitmap2 = new BitmapData(rect.width, rect.height, true,0x00000000); var bitmapShow1 = createEmptyMovieClip("bitmapShow1", 1).attachBitmap(bitmap1, 1); //粒子的显示画布 var bitmapShow2 = createEmptyMovieClip("bitmapShow2", 2).attachBitmap(bitmap2, 2); //白色闪光点的显示画布 var m_mouseX;//鼠标x坐标 var m_mouseY;//鼠标y坐标 var sound1 = new Sound(); |
|