- 浏览: 1062297 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (695)
- 心情日记 (14)
- AS开发工具 (12)
- 文章转载 (99)
- AIR (5)
- 问题总结 (46)
- SWF格式 (7)
- 测试总结 (10)
- 外文资料 (9)
- 算法技术 (33)
- AS3常用开源库 (43)
- 源码范例 (102)
- FLEX (72)
- FLASH 优化 (33)
- 游戏开发 (49)
- 开发技术 (11)
- 工作应用 (34)
- AS3收集 (140)
- WebBase (0)
- 开发构想 (4)
- 设计模式 (2)
- 框架和框架范例 (19)
- RED5 (3)
- java开发 (3)
- JAVA (1)
- FLASH-3D (23)
- 3D (6)
- 书籍 (10)
- 业界信息资料 (3)
- C# (1)
- JavaScript (12)
- HTML5 (6)
- Flixel (1)
- D5Power RPG网页游戏引擎 (0)
- ColorMatrixFilter - 获得相应颜色的色调 函数 (0)
- Starling (0)
最新评论
-
老顽童203:
字体
水果忍者鼠标跟随特效制作[转载] -
hairball00:
[转] 放出超多的Flash组件源代码 -
he74552775:
flash AS3 RegExp简单功能用法(转) -
hanshuai1232000:
第四点,有利也有弊,等你做了大型的aprg,你就知道了
[转]位图数据内存优化 -
yangfantao:
太感谢
[转] 放出超多的Flash组件源代码
package { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.geom.*; dynamic public class MainTimeline extends MovieClip { public var mc:MovieClip; public var bmd:BitmapData; public var bmd1:BitmapData; public var m1:Matrix; public var bmd2:BitmapData; public var shape:Shape; public var fillType:String; public var colors:Array; public var alphas:Array; public var ratios:Array; public var matr:Matrix; public var spreadMethod:String; public var seed:Number; public var point1:Point; public var point2:Point; public var bm:Bitmap; public var bm1:Bitmap; public var dmf:DisplacementMapFilter; public function MainTimeline() { addFrameScript(0, this.frame1); } public function frame(param1:Event) : void { this.bmd1.perlinNoise(this.mc.width / 3, this.mc.height / 3, 3, this.seed, true, true, 1, true, new Array(this.point1, this.point2)); this.bm.filters = [this.dmf]; this.point1.y = this.point1.y + 5; this.point2.y = this.point2.y + 2; if (this.point1.y > 10000) { this.point1.y = 0; this.point2.y = 0; } } function frame1() { this.bmd = new BitmapData(this.mc.width, this.mc.height, true, 0); this.bmd1 = new BitmapData(this.mc.width, this.mc.height); this.m1 = new Matrix(); this.m1 = this.mc.transform.matrix.clone(); this.bmd2 = new BitmapData(this.mc.width, this.mc.height, true, 0); this.shape = new Shape(); this.fillType = GradientType.LINEAR; this.colors = [0, 0]; this.alphas = [0, 1]; this.ratios = [0, 255]; this.matr = new Matrix(); this.matr.createGradientBox(this.mc.width, this.mc.height, 90 * Math.PI / 180, 0, 0); this.spreadMethod = SpreadMethod.PAD; this.shape.graphics.beginGradientFill(this.fillType, this.colors, this.alphas, this.ratios, this.matr, this.spreadMethod); this.shape.graphics.drawRect(0, 0, this.mc.width, this.mc.height); this.bmd2.draw(this.shape); this.m1.d = this.m1.d * -1; this.m1.tx = 0; this.m1.ty = this.mc.height; this.bmd.draw(this.mc, this.m1); this.bmd.copyPixels(this.bmd2, this.bmd2.rect, new Point(0, 0), this.bmd, new Point(0, 0), true); this.seed = Math.floor(Math.random() * 5); this.point1 = new Point(0, 0); this.point2 = new Point(0, 0); this.bm = new Bitmap(this.bmd); this.bm1 = new Bitmap(this.bmd1); this.dmf = new DisplacementMapFilter(this.bmd1, new Point(0, 0), 1, 1, 10, 20, "color", 0, 0); addEventListener(Event.ENTER_FRAME, this.frame); addChild(this.bm); this.bm.x = this.mc.x; this.bm.y = this.mc.y + this.mc.height - 2; } } }
- 倒影文件.swf (63.7 KB)
- 下载次数: 35
发表评论
-
greenSock新老库
2012-08-07 13:25 0老库-做项目的时候比新库完全不抖啊 -
Starling开发的游戏源码
2012-07-26 17:13 0Starling开发的游戏源码 -
一个基于STARLING的TOWER塔防游戏
2012-07-24 15:27 0一个基于STARLING的TOWER塔防游戏 -
HttpStatusConfig --一个HTTP 协议返回的 解析说明类
2012-04-18 16:40 0package guwanyuan.qicool.game ... -
[转] [Flash/Flex] 加载SWF性能VS影片剪辑性能
2012-03-15 22:29 0http://bbs.9ria.com/viewthread. ... -
水果忍者鼠标跟随特效制作[转载]
2012-03-01 16:06 2397实现这效果其实比较简单,主要是思路~! package ... -
greensock-as3
2012-02-23 21:26 0greensock-as3 -
禁止输入文本可以粘贴
2012-02-10 13:15 2259//禁止输入文本粘贴动作 private static ... -
江湖情缘游戏里的跳的类
2012-02-08 23:55 0package com.app.role.montions ... -
ColorMatrixFilter - 获得相应颜色的色调 函数
2012-02-08 23:03 0/**获得相应颜色的色调的滤镜**/ public sta ... -
[教程] 路点导航(Waypoint Navigation)
2011-12-31 00:51 0前言:这个不难,所以知道的童鞋不要喷,不知道的童鞋也不要怕,要 ... -
ARPG游戏引擎设计思路
2011-12-31 00:48 00.整体结构 下载 (32.92 KB ... -
Flash_Rich_Text_Editor(完美的富文本编辑器)
2011-12-27 17:55 0Flash_Rich_Text_Editor(完美的富文 ... -
弹弹堂测试
2011-12-08 04:21 0弹弹堂测试弹弹堂测试 -
一些DEMO
2011-11-28 17:42 0一些DEMO一些DEMO -
[转]三次贝尔曲线
2011-11-10 01:09 1873http://bbs.9ria.com/viewt ... -
[心得] 完美解决as3在ie中初始化时stageWidth和stageHeight为0的问题
2011-11-03 00:46 2887先看下面的一段脚本,这是比较经典的初始化脚本: pa ... -
五子棋算法详解
2011-10-31 04:14 0五子棋算法详解五子棋算法详解五子棋算法详解 -
[转]服务器端ActionScript语言参考
2011-10-31 00:29 0服务器端ActionScript语言参考 -
Flash Player和Adobe AIR内部的垃圾回收机制
2011-10-29 22:37 0资讯类型: 翻译 来源页面: http://www.ad ...
相关推荐
利用FLASH中的简单功能,使图片有水波倒影的效果!
图像处理 image proccess 水波倒影效果,使用J2ME写的代码
lake.js是一款可以制作水波倒影特效jQuery插件。该jquery插件可将任何图片转换为canvas组件,使图片生成逼真的水波倒影效果。
有趣的窗体实时水波倒影特效示例有趣的窗体实时水波倒影特效示例
C# 水波 倒影 特效 源码 非常实用漂亮的酷的特效效果哦
html5 canvas图片水波倒影动画特效 html5 canvas图片水波倒影动画特效
HTML5 canvas水波倒影图片动画,河流水波倒影图片动画效果。
大量使用api函数,实现窗体的水波倒影效果良好,具有动态的水波效果,是一个不错的图像处理方法
适用于FLASH8 AS的水波倒影适用于FLASH8 AS的水波倒影适用于FLASH8 AS的水波倒影
Photoshop CS Flood 104水波倒影滤镜可以制作很酷的水波效果,该滤镜适用于CS3/CS4/CS5/CS6
方便实用,便于操作的水波倒影软件,绿色汉化版
lake.js是一款可以制作水波倒影特效jQuery插件。该jquery插件可将任何图片转换为canvas组件,使图片生成逼真的水波倒影效果。
ps水波倒影插件
Flood 104水波倒影Photoshop滤镜下载
滤镜水波倒影 比较好的ps滤镜 win7 64,32 都支持
【图像处理】MATLAB应用实战案例:画出水波倒影效果.zip
Canvas超酷jQuery水波倒影特效源码.zip
漂亮的AS水波倒影效果,flash源码,希望想要的同志下载用吧,同时有好东东的同志也拿来大家共享哦!
J2ME平台实现的水波倒影效果,包含CLDC1.1和CLDC1.0两个版本