FlexJS uses a "common denominator" approach to its libraries. Rename references to DataBindingExample in the other source files to match your Application's name.Īs you edit and save changes to the code, the new compiler known as FalconJX is compiling not only a SWF, but also cross-compiling your source code into JavaScript, and reporting any errors it finds.Copy the rest of the files from the DataBindingExample project folder to the source folder of your project.Note: The current tools require that the Application name matches the Project name so you can't just copy DataBindingExample.mxml file to the source folder. Copy the contents of the DataBindingExample.mxml into your Application MXML file.Hello basic "library://ns./flexjs/basic" įor a more comprehensive example locate the DataBindingExample in the examples/flexjs folder in the Apache FlexJS SDK directory. Or you can copy the example code below into your Application MXML file or skip to the next section to start with the example project You can instead choose the " Convert New Flex Project to FlexJS MVC Project" script and it will replace files in the new project to look more like the DataBindingExample below. This will replace files in the new project to look like the Hello World example below. You can then choose the " Convert New Flex Project to FlexJS Project" script from the list of External Tools in the Run menu.If you create a Desktop (AIR) project, you will probably get an error in the error log that says: "Error while retrieving predefined variables". Choose the Apache FlexJS SDK and c lick Finish or Next to change and default options Flash Builder will generate a new project and a new Application MXML file that has errors.Create a new Flex Project from the Flash Builder File menu.Another alternative is to copy in an existing working example and modify it as follows: The recommended way to create a new Flex JS application is to create a Flex Project specifying the FlexJS SDK and then use a launch config to modify the project. There should now be around 9 new configs in the Run menu under External Toolsįlash Builder does not have a default Application template for a FlexJS project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |