解码/编码.swf文件

时间:2014-01-01 07:56:33

标签: actionscript-3 flash

我有这个.swf文件:http://www.mediafire.com/download/hrr3c6c188jsgvd/upload.swf

我需要更改此文件中的内容,因此我将此网站http://www.showmycode.com/解码该文件并获取这些代码:

if (!hasOwnProperty("_load05626E90")) { 
    _load05626E90 = true; 
    telltarget ("..") { 
        var copyright = function () { 
            telltarget ("..") { 
                geturl("http://www.google.com/search?q=PHP+Script+c-Image+Uploader+3.0", "_blank"); 
            } 
        }; 
    } 
} 
else { 
    // unexpected jump 
} 

var author = function () { 
    telltarget ("..") { 
        geturl("http://chiplove.biz", "_blank"); 
    } 
}; 
// unexpected jump 
// unexpected jump 
var uploadItem = function (num) { 
    telltarget ("..") { 
        var item = flash.net.FileReference(list[num]); 
        item.addlistener(listener2); 
        item.upload((((((((((("upload.php?watermark=" + watermark) + "&logo=") + logo) + "&resize=") + resize) + "&server=") + server) + "&q=") + q)+ "&account=") + account)+ "&password=") + password); 
    } 
}; 
        // unexpected jump 
        // unexpected jump 
        var FileChooser = function () { 
            telltarget ("..") { 
                var fileRef = new flash.net.FileReferenceList(); 
                fileRef.addlistener(listener); 
                fileRef.browse(allTypes); 
            } 
        }; 
        // unexpected jump 
        // unexpected jump 
    }; 
    stop();  
    //---------------------------------------------------------------------- //Frame 1 //---------------------------------------------------------------------- 
    this.menu = new contextmenu(); 
    this.menu.hidebuiltinitems(); 
    this.menu.customitems.push(new contextmenuitem("PHP Script - c-Image Uploader 3.0", copyright)); 
    this.menu.customitems.push(new contextmenuitem("Powered by chiplove.9xpro", author));  
    //---------------------------------------------------------------------- //Symbol 3 Button //---------------------------------------------------------------------- 
    on (press) { 
        var listener = new object(); 
        var listener2 = new object(); 
        var itemnum = 0; 
        var numfiles = 0; 
        delete _global.__resolve; 
        _global.__resolve = _global.__debugResolve; 

        if (list == undefined) { 
            var list = null; 
        } 
        var allTypes = new array(); 
        var imageTypes = new object(); 
        imageTypes.description = "Images (*.jpg; *.jpeg; *.jpe; *.gif; *.png;)"; 
        imageTypes.extension = "*.jpg; *.JPG; *.jpeg; *.jpe; *.gif; *.png;"; 
        allTypes.push(imageTypes); 
        listener.onselect = function (fileRefList) { 
            list = fileRefList.fileList; numfiles = list.length; 
            uploadItem(itemnum); 
            }; 
            listener2.onOpen = function (file) { }; 
            listener2.onProgress = function (file, bytesloaded, bytestotal) { 
                flash.external.ExternalInterface.call("loading"); 
            }; 
            listener2.onComplete = function (file) { }; 
            listener2.onUploadCompleteData = function (file, data) { 
                var loadvars = new loadvars(); 
                loadvars.decode(data); 
                flash.external.ExternalInterface.call("displaypic", file.name, loadvars.image); 
                itemnum = itemnum + 1; 
                if (itemnum < numfiles) { 
                    uploadItem(itemnum); 
                } 
                else { 
                    flash.external.ExternalInterface.call("responseStatus", "Done!"); 
                } 
            }; 
            flash.external.ExternalInterface.addCallBack("FileChooser", this, FileChooser); 
            flash.external.ExternalInterface.call("clearlist"); 
            FileChooser(); 
        }

我认为这是Action Script代码,所以在进行一些小改动之后我会让flash builder重新编译它,但是,flash builder在我的代码中显示了很多红色下划线(语法错误)并且无法构建这些代码再次.swf文件。我想知道我从showmycode.com获得的代码是否正确,还是动作脚本?如果我从showmycode.com获得的代码不正确,我如何解码,编辑,然后再次编码“upload.swf”文件?

0 个答案:

没有答案
相关问题