You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are having trouble compiling Flare with the Flex SDK 4.6 and getting some error with com.adobe.serialization.json.JSON, it's because the API has changed.
How to fix:
Remove any imports of com.adobe.serialization.json.JSON, it's not needed anymore.
Replace JSON.encode with JSON.stringify
Replace JSON.decode with JSON.parse
In build.xml, in the target flare, uncomment this line
<source-path path-element="${flare.lib}/"/>
The text was updated successfully, but these errors were encountered:
I went through these changes using Flashbuilder 4.6 and got the number of errors down to one:
So, following the direction of "Essential ActionScript 3.0" - Colin Moock, pp. 787-8:
To do so in Flex Builder 2, follow these steps:
1. In the Navigator panel, select the project folder for the Main.swf application.
2. On the Project Menu, choose Properties.
3. On the Properties dialog, choose ActionScript Build Path.
4. On the Library path tab, click the Add SWC button.
5. On the Add SWC dialog, specify the path to module.swc.
6. On the Add SWC dialog, click OK.
7. Under "Build path libraries," expand module.swc in the tree.
8. Under module.swc, select "Link Type: Merged into code."
9. Click the Edit button.
10. On the Library Path Item Options dialog, for Link Type, choose External.
11. On the Library Path Item Options dialog, click OK.
12. On the Properties dialog, click OK.
You might have thought that would fix it, but no, the error persists doggedly.
If you are having trouble compiling Flare with the Flex SDK 4.6 and getting some error with
com.adobe.serialization.json.JSON
, it's because the API has changed.How to fix:
Remove any imports of
com.adobe.serialization.json.JSON
, it's not needed anymore.Replace
JSON.encode
withJSON.stringify
Replace
JSON.decode
withJSON.parse
In
build.xml
, in the targetflare
, uncomment this lineThe text was updated successfully, but these errors were encountered: