论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash AS教程
Tag:2.0,3.0菜鸟,游戏,,cs,技巧,源码,,文本,文字,函数,音乐,随机,拖拽,asp,access,xml,mc,视频教程

如何破解flash8中加密的swf

文章类别:Flash AS | 发表日期:2009-8-3 14:49:37

如何破解flash8中加密的swf

如何破解在flash8中加密的swf,这是我整理的一些,供大家参考。
复制内容到剪贴板代码:
package elect_fla
{
    import flash.display.*;
    import flash.events.*;
    import flash.filters.*;
    import flash.geom.*;
    dynamic public class MainTimeline extends MovieClip
    {
        public var bitmap:Bitmap;
        public var glow2:GlowFilter;
        public var dis_bmp:BitmapData;
        public var source_bmd:BitmapData;
        public var glow3:GlowFilter;
        public var h:Number;
        public var w:Number;
        public var offset_array:Array;
        public var glow:GlowFilter;
        public var bounds:Object;
        public var logo_mc:MovieClip;
        public var offset_x:Number;
        public var offset_y:Number;
        public var perlinNoise_bmd:BitmapData;
        public var dmf:DisplacementMapFilter;
        public function MainTimeline()
        {
            addFrameScript(0, frame1);
            return;
        }// end function
        function frame1()
        {
            var _loc_1:Matrix;
            var _loc_2:Point;
            var _loc_3:Point;
            var _loc_4:Point;
            glow = new GlowFilter(16776960, 1, 1, 1, 100, 1, false, true);
            glow2 = new GlowFilter(16776960, 0.6, 8, 8, 2, 1, false, false);
            glow3 = new GlowFilter(16711680, 0.8, 10, 10, 3, 1, false, false);
            offset_y = 2;
            offset_x = 2;
            logo_mc = new Logo();
            var _loc_5:int;
            logo_mc.y = 50;
            logo_mc.x = _loc_5;
            bounds = logo_mc.getBounds(logo_mc);
            w = bounds.width + offset_x;
            h = bounds.height + offset_y;
            bounds.x = bounds.x - offset_x / 2;
            bounds.y = bounds.y - offset_y / 2;
            trace(bounds.x, bounds.y);
            addChild(logo_mc);
            source_bmd = new BitmapData(300, 300, true, 0);
            _loc_1 = new Matrix(1, 0, 0, 1, bounds.x * -1, bounds.y * -1);
            source_bmd.draw(logo_mc, _loc_1);
            logo_mc.filters = [glow2];
            dis_bmp = new BitmapData(w, h, true, 0);
            bitmap = new Bitmap(dis_bmp);
            this.addChild(bitmap);
            bitmap.x = logo_mc.x + bounds.x;
            bitmap.y = logo_mc.y + bounds.y;
            perlinNoise_bmd = new BitmapData(w, h);
            bitmap.blendMode = BlendMode.SCREEN;
            bitmap.filters = [glow2, glow3];
            this.addEventListener(Event.ENTER_FRAME, onEventEnterFrame);
            _loc_2 = new Point();
            _loc_3 = new Point();
            _loc_4 = new Point();
            offset_array = [_loc_2, _loc_3];
            dmf = new DisplacementMapFilter(perlinNoise_bmd, _loc_4, 1, 1, 30, 30, DisplacementMapFilterMode.COLOR);
            dis_bmp.applyFilter(source_bmd, source_bmd.rect, new Point(), glow);
            return;
        }// end function
        public function onEventEnterFrame(param1:Event) : void
        {
            offset_array[0].x = offset_array[0].x - 3;
            offset_array[1].x = offset_array[1].x - 2;
            perlinNoise_bmd.perlinNoise(10, 20, 3, 64, true, true, 1, true, offset_array);
            dis_bmp.applyFilter(source_bmd, source_bmd.rect, new Point(), glow);
            dis_bmp.applyFilter(dis_bmp, source_bmd.rect, new Point(), dmf);
            return;
        }// end function
    }
}

视频教程列表
文章教程搜索
 
Flash AS推荐教程
Flash AS热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058