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: col: 19 Error: Label must be a simple identifier. "x":SiteView.instance.x, ^ col: 19 Error: Label must be a simple identifier. "y":SiteView.instance.y Regarding to amework/core/ 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