JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#24 switch by string in anonymous function
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3DecompilationGoogle Code
State: closed Help

When decompiling the same code using other tools (like trillix), i get the following code (example): messageHandler = function (arg1:String):void { var loc1:*=arg1; switch (loc1) { case "buy": { buyHandler({"value":ind, "item":material.item, "count":needCount, "price":material.item.buyCash}); break; } case "order": { connector.sendGameEvent({"action":"orderMake", "index":ind, "type":"order", "objId":objId}, orderHandler); break; } case "ask": { 8!a.main.=">(material.item); break; } } return; } when using asdec, case statements are missing: messageHandler=new function(param1:String):void { switch(param1) { buyHandler({value:ind, item:material.item, count:needCount, price:material.item.buyCash}); break; connector.sendGameEvent({action:"orderMake", index:ind, type:"order", objId:objId},orderHandler); break; _name82.main._name314(material.item); break; } return; };
Hi, try version 1.2.0, I have fixed it.
\o/ ty so much
State: →closed
Title: switch by string in anonymous function→switch by string in anonymous function
Type: →bug
Visibility: →Everybody