Compile Errors Running Chapter 1 Demo in the Java FX Script Language Ref
I'm trying to run the full ch1 demo that's shown in the "A Quick Tutorial" section of the JavaFX Script Language Reference, that is, the document that is based on the compiler version (http://openjfx.java.sun.com/current-build/doc/JavaFX-Language.html). I'm running the demo on NetBeans 6.1 Build200803241203 with Build 11 (Mar. 24) of the JavaFX Script NB plugin. When I compile the demo code, I get the following compiler errors:
Compiling 1 source file to C:\MyNetBeansProjects\ch1demo\build\classes
C:\MyNetBeansProjects\ch1demo\src\ch1demo\Main.fx:155: Sorry, I was trying to understand an object literal part but I got confused when I saw '.' which is an operator.
Perhaps you are missing a ':'.
C:\MyNetBeansProjects\ch1demo\src\ch1demo\Main.fx:156: Sorry, I was trying to understand the module contents but I got confused when I saw '}'.
Note that I changed all instances of "operation" in the demo code to "function", as indicated in the "Converting to the New Syntax" document (http://jfx.wikia.com/wiki/Converting_to_the_New_Syntax).
What do I need to change in the demo code to compile and run it successfully?