JPEXS Free Flash Decompiler Issue Tracker

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 issuesList of issues

#593 AS3 Return object newline problem
Author: user focus
Date created:
Type: bug
Visibility: Everybody
Assigned to: admin JPEXS
Labels: AS3
State: closed Help

Please take a look at the attached file. Class: com.gaiaframework.core.GaiaImpl Method: getSitePosition(); It decompiles to: public function getSitePosition() : Object { return { "x":SiteView.instance.x, "y":SiteView.instance.y }; } and it refuses to compile back with these errors: GaiaImpl.as(70): col: 19 Error: Label must be a simple identifier. "x":SiteView.instance.x, ^ GaiaImpl.as(71): col: 19 Error: Label must be a simple identifier. "y":SiteView.instance.y Regarding to https://github.com/stevensacks/Gaia-Framework/blob/master/framework/as3/classes/com/gaiafr amework/core/GaiaImpl.as#L71 it should decompile to this: public function getSitePosition():Object { return {x:SiteView.instance.x, y:SiteView.instance.y}; } and it compiles fine.
Downloadmain.swf (171 KiB)
admin
State: new→opened
Title: AS3 decompilation issue→AS3 Return object newline problem
Assigned:admin JPEXS
admin
It should work in latest nightly. Try it.
State: opened→upgraded
user
Fine now, thanks!
developer
State: upgraded→closed