If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
![List of issues](/flash/images/issue_list.png)
#24 switch by string in anonymous function
Author:
googleCode
![user user](/flash/images/user.png)
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3DecompilationGoogle Code
State: closed ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
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
Title: switch by string in anonymous function→switch by string in anonymous function
Type: →bug
Visibility: →Everybody