: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

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)
State: new→opened
Title: AS3 decompilation issue→AS3 Return object newline problem
Assigned:admin JPEXS
It should work in latest nightly. Try it.
State: opened→upgraded
Fine now, thanks!
State: upgraded→closed
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic