Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We are using Eclipse Helios for Java 1.6 compatibility because at least one of the jars (flex-oem-compiler) needs to be 1.6 compatible to work with Flash Builder.  There are eclipse project files in the flex-falcon repo. The run/debug configuration for building a FlexJS SWF in Eclipse needs the following settings (Assuming the path to the flex-asjs repo is /Users/aharuimyusername/git/apache/flex/master/asjs is my flex-asjs repo):

Program Arguments:

Code Block
+flexlib="/Users/aharuimyusername/git/apache/flex/master/flex-asjs/frameworks" -debug /Users/aharuimyusername/git/apache/flex/master/flex-asjs/examples/DataBindingTestflexjs/DataBindingExample/src/DataBindingTestDataBindingExample.mxml

VM Arguments:

Code Block
-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler="/Users/aharuimyusername/git/apache/flex/master/flex-falcon/compiler" -Dflexlib="/Users/aharuimyusername/git/apache/flex/master/flex-asjs/frameworks"

And the environment variables:
FLEX_HOME points to a Flex SDK and PLAYERGLOBAL_HOME are points to a the folder containing versions of playerglobal.swc as specified in the above.  Thus, if you followed the instructions above on a Mac, you would set the variable to: /Users/myusername/adobe/flashplayer

For cross-compiling with FalconJX the Program Arguments are:

Code Block
+flexlib="/Users/aharuimyusername/git/apache/flex/master/flex-asjs/frameworks" -debug /Users/aharuimyusername/git/apache/flex/master/flex-asjs/examples/DataBindingTestflexjs/DataBindingExample/src/DataBindingTestDataBindingExample.mxml -js-output-type=FLEXJS -closure-lib=/Users/aharui/closure-library-master

The Demo

MXML->SWF
The latest demo is http://people.apache.org/~aharui/FlexJS/FlexJSStore. Run the bin-release/FlexJSStore.html and right-click and choose "View Source" to see the source. You should be able to compile FlexJSStore.mxml into a working SWF by using the Apache Flex SDK Installer to install a FlexJS release and using the bin/mxmlc on Mac or bin/mxmlc.bat on Windows to compile the source.  This is a port of the old FlexStore demo to FlexJS.  You can click on the Products button, hover over the people and see toolTips, drag them to the compare window and see drag-and-drop work and effects play.

...