Flash Decompiler Trillix review
2009-10-18 00:00:00 来源:WEB开发网and this is the one generated by Flash Decompiler Trillix
package
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
public class as3displace extends flash.display.Sprite
{
public function as3displace()
{
this.the_bitmap = new flash.display.Bitmap();
this.the_image = new malecon(500, 373);
this.the_displace = new displace_movie();
this.starting_point = new flash.geom.Point(0, 0);
this.displacement_map = new flash.display.BitmapData(100, 100, true, 8421504);
this.displacement_filter = new flash.filters.DisplacementMapFilter(this.displacement_map, this.starting_point, 1, 2, 50, 50, "color", 0, 1);
super();
this.the_bitmap.bitmapData = this.the_image;
this.displacement_map.draw(this.the_displace);
addChild(this.the_bitmap);
addEventListener(flash.events.Event.ENTER_FRAME, this.onFrame);
return;
}
public function onFrame(arg1:flash.events.Event):*
{
this.starting_point.x = mouseX - 50;
this.starting_point.y = mouseY - 50;
this.displacement_filter.mapPoint = this.starting_point;
this.the_bitmap.filters = [this.displacement_filter];
return;
}
var displacement_filter:flash.filters.DisplacementMapFilter;
var the_displace:displace_movie;
var the_image:*;
var starting_point:flash.geom.Point;
var displacement_map:flash.display.BitmapData;
var the_bitmap:flash.display.Bitmap;
}
}
It’s a bit different, but it works the same way
Final considerations
A personal license costs $79.95, both for PC and Mac OS, and all in all is a must-have if you are a Flash developer. Besides strange cases like the web company one I discussed before, it’s really a tool that can save you hours and hours should your fla file get damaged or lost.
本文示例源代码或素材下载
Tags:Flash Decompiler Trillix
编辑录入:爽爽 [复制链接] [打 印]- ››FLASH不等于运算符!=的使用实例
- ››FLASH不全等运算符!==
- ››FLASH字符串分隔符运算符
- ››FLASH% 模运算符
- ››Flash+、++、+= 加法运算符
- ››Flash, 逗号运算符
- ››flash中的-、--、-=减法运算符
- ››Flash的-Infinity 常数、.点运算符、/ 除法运算符...
- ››Flash两种注释方法/*..*/ 和// 注释行分隔符运算符...
- ››Flash的/=除法赋值运算符、=赋值运算符、== 等于运...
- ››Flash之?: 条件运算符、^ 按位 XOR 运算符、^= 按...
- ››Flash的_framesloaded代码示例
更多精彩
赞助商链接