move examples into a flexjs folder now that we have a native folder for low-level examples
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d33fe63c Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d33fe63c Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d33fe63c Branch: refs/heads/develop Commit: d33fe63c7e9492da4b5786137fc5cf53bf47ed30 Parents: 0485c8b Author: Alex Harui <[email protected]> Authored: Sun Aug 23 21:30:13 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Aug 23 21:30:13 2015 -0700 ---------------------------------------------------------------------- examples/ChartExample/build.xml | 74 --- examples/ChartExample/src/ChartExample.mxml | 37 -- examples/ChartExample/src/MyInitialView.mxml | 312 ----------- examples/ChartExample/src/README.txt | 31 -- examples/ChartExample/src/SpeedTestView.mxml | 187 ------- .../ChartExample/src/models/ProductsModel.as | 79 --- examples/ChartExample/src/products/Product.as | 45 -- .../CordovaCameraExample-app.xml | 252 --------- examples/CordovaCameraExample/build.xml | 110 ---- .../src/CordovaCameraExample.mxml | 39 -- .../CordovaCameraExample/src/MyInitialView.mxml | 75 --- examples/CordovaCameraExample/src/README.txt | 24 - examples/DataBindingExample/build.xml | 73 --- .../src/DataBindingExample.mxml | 53 -- .../DataBindingExample/src/MyInitialView.mxml | 144 ----- examples/DataBindingExample/src/README.txt | 53 -- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 81 --- .../DataBindingExample/src/models/MyModel.as | 125 ----- examples/DataBindingExample_Flat/build.xml | 74 --- .../src/DataBindingExample.mxml | 53 -- .../src/MyInitialView.mxml | 144 ----- examples/DataBindingExample_Flat/src/README.txt | 52 -- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 81 --- .../src/models/MyModel.as | 125 ----- examples/DataBindingExample_as/build.xml | 73 --- .../src/DataBindingExample.as | 270 --------- .../DataBindingExample_as/src/MyInitialView.as | 283 ---------- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 81 --- .../DataBindingExample_as/src/models/MyModel.as | 127 ----- examples/DataGridExample/build.xml | 71 --- .../DataGridExample/src/DataGridExample.mxml | 36 -- examples/DataGridExample/src/MyInitialView.mxml | 48 -- examples/DataGridExample/src/README.txt | 46 -- .../src/assets/smallbluerect.jpg | Bin 13500 -> 0 bytes .../src/assets/smallgreenrect.jpg | Bin 13542 -> 0 bytes .../src/assets/smallorangerect.gif | Bin 821 -> 0 bytes .../src/assets/smallorangerect.jpg | Bin 13571 -> 0 bytes .../src/assets/smallpurplerect.jpg | Bin 13517 -> 0 bytes .../DataGridExample/src/assets/smallredrect.jpg | Bin 13477 -> 0 bytes .../src/assets/smallyellowrect.jpg | Bin 13598 -> 0 bytes .../DataGridExample/src/models/ProductsModel.as | 49 -- .../DataGridExample/src/products/Product.as | 43 -- .../src/products/ProductItemRenderer.as | 66 --- examples/DesktopMap/DesktopMap-app.xml | 252 --------- examples/DesktopMap/README.txt | 41 -- examples/DesktopMap/build.xml | 104 ---- examples/DesktopMap/src/DesktopMap.mxml | 46 -- examples/DesktopMap/src/MyInitialView.mxml | 147 ----- examples/DesktopMap/src/models/MyModel.as | 56 -- examples/FlexJSStore/build.xml | 91 --- examples/FlexJSStore/src/FlexJSStore.mxml | 268 --------- examples/FlexJSStore/src/HomeView.mxml | 194 ------- .../FlexJSStore/src/ProductJSONItemConverter.as | 41 -- examples/FlexJSStore/src/ProductsView.mxml | 121 ---- examples/FlexJSStore/src/SupportView.mxml | 149 ----- examples/FlexJSStore/src/assets/akotter.jpg | Bin 19395 -> 0 bytes examples/FlexJSStore/src/assets/bcrater.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/beige_background.jpg | Bin 12533 -> 0 bytes .../FlexJSStore/src/assets/beige_dotted_map.png | Bin 216598 -> 0 bytes .../FlexJSStore/src/assets/blue_background.jpg | Bin 12868 -> 0 bytes .../FlexJSStore/src/assets/blue_dotted_map.png | Bin 217088 -> 0 bytes .../src/assets/button_cart_empty.png | Bin 289 -> 0 bytes .../FlexJSStore/src/assets/button_cart_full.png | Bin 308 -> 0 bytes .../FlexJSStore/src/assets/button_compare.png | Bin 304 -> 0 bytes .../FlexJSStore/src/assets/button_details.png | Bin 284 -> 0 bytes .../FlexJSStore/src/assets/button_tiles.png | Bin 218 -> 0 bytes examples/FlexJSStore/src/assets/grip.png | Bin 19836 -> 0 bytes .../FlexJSStore/src/assets/icon_cart_empty.png | Bin 29594 -> 0 bytes .../FlexJSStore/src/assets/icon_compare.png | Bin 30218 -> 0 bytes .../FlexJSStore/src/assets/icon_magnifier.png | Bin 30454 -> 0 bytes examples/FlexJSStore/src/assets/icon_tiles.png | Bin 27988 -> 0 bytes examples/FlexJSStore/src/assets/jproctor.jpg | Bin 21684 -> 0 bytes examples/FlexJSStore/src/assets/logo_blue.png | Bin 33427 -> 0 bytes examples/FlexJSStore/src/assets/logo_orange.png | Bin 33897 -> 0 bytes .../FlexJSStore/src/assets/pic/abrilliam.jpg | Bin 18903 -> 0 bytes examples/FlexJSStore/src/assets/pic/akotter.jpg | Bin 19395 -> 0 bytes examples/FlexJSStore/src/assets/pic/bcrater.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/pic/bleporte.jpg | Bin 23363 -> 0 bytes .../FlexJSStore/src/assets/pic/bvanbrocklin.jpg | Bin 18066 -> 0 bytes .../FlexJSStore/src/assets/pic/ccarpenter.jpg | Bin 19219 -> 0 bytes .../FlexJSStore/src/assets/pic/clampberto.jpg | Bin 18611 -> 0 bytes examples/FlexJSStore/src/assets/pic/davenon.jpg | Bin 20028 -> 0 bytes .../FlexJSStore/src/assets/pic/dmcgoyal.jpg | Bin 19395 -> 0 bytes .../FlexJSStore/src/assets/pic/dwillhelm.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/pic/esunderland.jpg | Bin 23363 -> 0 bytes .../FlexJSStore/src/assets/pic/jproctor.jpg | Bin 21684 -> 0 bytes examples/FlexJSStore/src/assets/pic/mfields.jpg | Bin 18066 -> 0 bytes .../FlexJSStore/src/assets/pic/pdempsey.jpg | Bin 18611 -> 0 bytes examples/FlexJSStore/src/assets/pic/ptranep.jpg | Bin 19627 -> 0 bytes .../FlexJSStore/src/assets/pic/rcrawley.jpg | Bin 23692 -> 0 bytes .../FlexJSStore/src/assets/pic/rdreifus.jpg | Bin 20028 -> 0 bytes examples/FlexJSStore/src/assets/pic/twong.jpg | Bin 19395 -> 0 bytes examples/FlexJSStore/src/assets/support_map.png | Bin 172293 -> 0 bytes .../src/assets/support_mapmarker_a.png | Bin 834 -> 0 bytes .../src/assets/support_mapmarker_b.png | Bin 822 -> 0 bytes .../src/assets/support_mapmarker_c.png | Bin 817 -> 0 bytes .../src/assets/support_mapmarker_plus.png | Bin 827 -> 0 bytes examples/FlexJSStore/src/assets/trashcan.png | Bin 182 -> 0 bytes examples/FlexJSStore/src/beige.css | 171 ------ examples/FlexJSStore/src/blue.css | 165 ------ examples/FlexJSStore/src/data/catalog.json | 236 -------- examples/FlexJSStore/src/data/catalog.xml | 256 --------- examples/FlexJSStore/src/main.css | 100 ---- .../src/productsView/CatalogTitleButtons.mxml | 70 --- examples/FlexJSStore/src/productsView/Grip.mxml | 48 -- .../src/productsView/ProductCart.mxml | 117 ---- .../src/productsView/ProductCatalogPanel.mxml | 546 ------------------ .../ProductCatalogPanelTitleBarView.mxml | 49 -- .../productsView/ProductCatalogThumbnail.mxml | 220 -------- .../src/productsView/ProductDetails.mxml | 145 ----- .../src/productsView/ProductFilterPanel.mxml | 215 -------- .../src/productsView/ProductList.mxml | 219 -------- .../src/productsView/ProductListItem.mxml | 130 ----- .../src/productsView/ProductSupport.mxml | 90 --- .../samples/flexstore/ButtonBarButtonSkin.as | 298 ---------- .../src/samples/flexstore/Product.as | 78 --- .../src/samples/flexstore/ProductFilter.as | 56 -- .../src/samples/flexstore/ProductFilterEvent.as | 39 -- .../src/samples/flexstore/ProductListEvent.as | 42 -- .../src/samples/flexstore/ProductThumbEvent.as | 45 -- examples/FlexJSStore_jquery/build.xml | 91 --- .../FlexJSStore_jquery/src/FlexJSStore.mxml | 269 --------- examples/FlexJSStore_jquery/src/HomeView.mxml | 206 ------- .../src/ProductJSONItemConverter.as | 41 -- .../FlexJSStore_jquery/src/ProductsView.mxml | 125 ----- .../FlexJSStore_jquery/src/SupportView.mxml | 139 ----- .../FlexJSStore_jquery/src/assets/akotter.jpg | Bin 19395 -> 0 bytes .../FlexJSStore_jquery/src/assets/bcrater.jpg | Bin 22670 -> 0 bytes .../src/assets/beige_background.jpg | Bin 12533 -> 0 bytes .../src/assets/beige_dotted_map.png | Bin 216598 -> 0 bytes .../src/assets/blue_background.jpg | Bin 12868 -> 0 bytes .../src/assets/blue_dotted_map.png | Bin 217088 -> 0 bytes .../src/assets/button_cart_empty.png | Bin 289 -> 0 bytes .../src/assets/button_cart_full.png | Bin 308 -> 0 bytes .../src/assets/button_compare.png | Bin 304 -> 0 bytes .../src/assets/button_details.png | Bin 284 -> 0 bytes .../src/assets/button_tiles.png | Bin 218 -> 0 bytes examples/FlexJSStore_jquery/src/assets/grip.png | Bin 19836 -> 0 bytes .../src/assets/icon_cart_empty.png | Bin 29594 -> 0 bytes .../src/assets/icon_compare.png | Bin 30218 -> 0 bytes .../src/assets/icon_magnifier.png | Bin 30454 -> 0 bytes .../src/assets/icon_tiles.png | Bin 27988 -> 0 bytes .../FlexJSStore_jquery/src/assets/jproctor.jpg | Bin 21684 -> 0 bytes .../FlexJSStore_jquery/src/assets/logo_blue.png | Bin 33427 -> 0 bytes .../src/assets/logo_orange.png | Bin 33897 -> 0 bytes .../src/assets/pic/abrilliam.jpg | Bin 18903 -> 0 bytes .../src/assets/pic/akotter.jpg | Bin 19395 -> 0 bytes .../src/assets/pic/bcrater.jpg | Bin 22670 -> 0 bytes .../src/assets/pic/bleporte.jpg | Bin 23363 -> 0 bytes .../src/assets/pic/bvanbrocklin.jpg | Bin 18066 -> 0 bytes .../src/assets/pic/ccarpenter.jpg | Bin 19219 -> 0 bytes .../src/assets/pic/clampberto.jpg | Bin 18611 -> 0 bytes .../src/assets/pic/davenon.jpg | Bin 20028 -> 0 bytes .../src/assets/pic/dmcgoyal.jpg | Bin 19395 -> 0 bytes .../src/assets/pic/dwillhelm.jpg | Bin 22670 -> 0 bytes .../src/assets/pic/esunderland.jpg | Bin 23363 -> 0 bytes .../src/assets/pic/jproctor.jpg | Bin 21684 -> 0 bytes .../src/assets/pic/mfields.jpg | Bin 18066 -> 0 bytes .../src/assets/pic/pdempsey.jpg | Bin 18611 -> 0 bytes .../src/assets/pic/ptranep.jpg | Bin 19627 -> 0 bytes .../src/assets/pic/rcrawley.jpg | Bin 23692 -> 0 bytes .../src/assets/pic/rdreifus.jpg | Bin 20028 -> 0 bytes .../FlexJSStore_jquery/src/assets/pic/twong.jpg | Bin 19395 -> 0 bytes .../src/assets/support_map.png | Bin 172293 -> 0 bytes .../src/assets/support_mapmarker_a.png | Bin 834 -> 0 bytes .../src/assets/support_mapmarker_b.png | Bin 822 -> 0 bytes .../src/assets/support_mapmarker_c.png | Bin 817 -> 0 bytes .../src/assets/support_mapmarker_plus.png | Bin 827 -> 0 bytes .../FlexJSStore_jquery/src/assets/trashcan.png | Bin 182 -> 0 bytes examples/FlexJSStore_jquery/src/beige.css | 171 ------ examples/FlexJSStore_jquery/src/blue.css | 165 ------ .../FlexJSStore_jquery/src/data/catalog.json | 236 -------- .../FlexJSStore_jquery/src/data/catalog.xml | 256 --------- examples/FlexJSStore_jquery/src/main.css | 100 ---- .../src/productsView/CatalogTitleButtons.mxml | 69 --- .../src/productsView/Grip.mxml | 49 -- .../src/productsView/ProductCart.mxml | 116 ---- .../src/productsView/ProductCatalogPanel.mxml | 547 ------------------- .../ProductCatalogPanelTitleBarView.mxml | 49 -- .../productsView/ProductCatalogThumbnail.mxml | 220 -------- .../src/productsView/ProductDetails.mxml | 150 ----- .../src/productsView/ProductFilterPanel.mxml | 215 -------- .../src/productsView/ProductList.mxml | 216 -------- .../src/productsView/ProductListItem.mxml | 130 ----- .../src/productsView/ProductSupport.mxml | 90 --- .../samples/flexstore/ButtonBarButtonSkin.as | 298 ---------- .../src/samples/flexstore/Product.as | 78 --- .../src/samples/flexstore/ProductFilter.as | 56 -- .../src/samples/flexstore/ProductFilterEvent.as | 39 -- .../src/samples/flexstore/ProductListEvent.as | 42 -- .../src/samples/flexstore/ProductThumbEvent.as | 45 -- examples/MapSearch/MapSearch-app.xml | 252 --------- examples/MapSearch/build.xml | 103 ---- examples/MapSearch/src/MapSearch.mxml | 46 -- examples/MapSearch/src/MyInitialView.mxml | 212 ------- examples/MapSearch/src/models/MyModel.as | 69 --- examples/MobileTrader/build.xml | 70 --- examples/MobileTrader/src/MobileTrader.mxml | 39 -- examples/MobileTrader/src/MyInitialView.mxml | 255 --------- .../src/StockDataJSONItemConverter.as | 40 -- .../MobileTrader/src/assets/arrow_left_24.png | Bin 47785 -> 0 bytes examples/MobileTrader/src/assets/background.png | Bin 49376 -> 0 bytes examples/MobileTrader/src/assets/logo.png | Bin 55223 -> 0 bytes .../src/controller/AlertsViewController.as | 139 ----- .../src/controller/WatchListController.as | 137 ----- examples/MobileTrader/src/models/Alert.as | 94 ---- examples/MobileTrader/src/models/AssetsModel.as | 47 -- .../MobileTrader/src/models/ProductsModel.as | 160 ------ examples/MobileTrader/src/models/Stock.as | 148 ----- .../MobileTrader/src/renderers/AlertRenderer.as | 44 -- .../MobileTrader/src/renderers/StockRenderer.as | 47 -- examples/MobileTrader/src/views/AlertsView.mxml | 100 ---- examples/MobileTrader/src/views/AssetsView.mxml | 94 ---- examples/MobileTrader/src/views/SearchView.mxml | 37 -- examples/MobileTrader/src/views/StockView.mxml | 98 ---- .../MobileTrader/src/views/WatchListView.mxml | 150 ----- examples/TodoListSampleApp/build.xml | 73 --- examples/TodoListSampleApp/src/README.txt | 22 - .../src/TodoListSampleApp.mxml | 43 -- .../todo/controllers/TodoListController.as | 62 --- .../src/sample/todo/events/TodoListEvent.as | 35 -- .../src/sample/todo/models/TodoListModel.as | 42 -- .../sample/todo/renderers/TodoItemRenderer.as | 69 --- .../src/sample/todo/views/TodoListView.mxml | 109 ---- examples/flexjs/ChartExample/build.xml | 74 +++ .../flexjs/ChartExample/src/ChartExample.mxml | 37 ++ .../flexjs/ChartExample/src/MyInitialView.mxml | 312 +++++++++++ examples/flexjs/ChartExample/src/README.txt | 31 ++ .../flexjs/ChartExample/src/SpeedTestView.mxml | 187 +++++++ .../ChartExample/src/models/ProductsModel.as | 79 +++ .../flexjs/ChartExample/src/products/Product.as | 45 ++ .../CordovaCameraExample-app.xml | 252 +++++++++ examples/flexjs/CordovaCameraExample/build.xml | 110 ++++ .../src/CordovaCameraExample.mxml | 39 ++ .../CordovaCameraExample/src/MyInitialView.mxml | 75 +++ .../flexjs/CordovaCameraExample/src/README.txt | 24 + examples/flexjs/DataBindingExample/build.xml | 73 +++ .../src/DataBindingExample.mxml | 53 ++ .../DataBindingExample/src/MyInitialView.mxml | 144 +++++ .../flexjs/DataBindingExample/src/README.txt | 53 ++ .../src/StockDataJSONItemConverter.as | 40 ++ .../src/controllers/MyController.as | 81 +++ .../DataBindingExample/src/models/MyModel.as | 125 +++++ .../flexjs/DataBindingExample_Flat/build.xml | 74 +++ .../src/DataBindingExample.mxml | 53 ++ .../src/MyInitialView.mxml | 144 +++++ .../DataBindingExample_Flat/src/README.txt | 52 ++ .../src/StockDataJSONItemConverter.as | 40 ++ .../src/controllers/MyController.as | 81 +++ .../src/models/MyModel.as | 125 +++++ examples/flexjs/DataBindingExample_as/build.xml | 73 +++ .../src/DataBindingExample.as | 270 +++++++++ .../DataBindingExample_as/src/MyInitialView.as | 283 ++++++++++ .../src/StockDataJSONItemConverter.as | 40 ++ .../src/controllers/MyController.as | 81 +++ .../DataBindingExample_as/src/models/MyModel.as | 127 +++++ examples/flexjs/DataGridExample/build.xml | 71 +++ .../DataGridExample/src/DataGridExample.mxml | 36 ++ .../DataGridExample/src/MyInitialView.mxml | 48 ++ examples/flexjs/DataGridExample/src/README.txt | 46 ++ .../src/assets/smallbluerect.jpg | Bin 0 -> 13500 bytes .../src/assets/smallgreenrect.jpg | Bin 0 -> 13542 bytes .../src/assets/smallorangerect.gif | Bin 0 -> 821 bytes .../src/assets/smallorangerect.jpg | Bin 0 -> 13571 bytes .../src/assets/smallpurplerect.jpg | Bin 0 -> 13517 bytes .../DataGridExample/src/assets/smallredrect.jpg | Bin 0 -> 13477 bytes .../src/assets/smallyellowrect.jpg | Bin 0 -> 13598 bytes .../DataGridExample/src/models/ProductsModel.as | 49 ++ .../DataGridExample/src/products/Product.as | 43 ++ .../src/products/ProductItemRenderer.as | 66 +++ examples/flexjs/DesktopMap/DesktopMap-app.xml | 252 +++++++++ examples/flexjs/DesktopMap/README.txt | 41 ++ examples/flexjs/DesktopMap/build.xml | 104 ++++ examples/flexjs/DesktopMap/src/DesktopMap.mxml | 46 ++ .../flexjs/DesktopMap/src/MyInitialView.mxml | 147 +++++ .../flexjs/DesktopMap/src/models/MyModel.as | 56 ++ examples/flexjs/FlexJSStore/build.xml | 91 +++ .../flexjs/FlexJSStore/src/FlexJSStore.mxml | 268 +++++++++ examples/flexjs/FlexJSStore/src/HomeView.mxml | 194 +++++++ .../FlexJSStore/src/ProductJSONItemConverter.as | 41 ++ .../flexjs/FlexJSStore/src/ProductsView.mxml | 121 ++++ .../flexjs/FlexJSStore/src/SupportView.mxml | 149 +++++ .../flexjs/FlexJSStore/src/assets/akotter.jpg | Bin 0 -> 19395 bytes .../flexjs/FlexJSStore/src/assets/bcrater.jpg | Bin 0 -> 22670 bytes .../FlexJSStore/src/assets/beige_background.jpg | Bin 0 -> 12533 bytes .../FlexJSStore/src/assets/beige_dotted_map.png | Bin 0 -> 216598 bytes .../FlexJSStore/src/assets/blue_background.jpg | Bin 0 -> 12868 bytes .../FlexJSStore/src/assets/blue_dotted_map.png | Bin 0 -> 217088 bytes .../src/assets/button_cart_empty.png | Bin 0 -> 289 bytes .../FlexJSStore/src/assets/button_cart_full.png | Bin 0 -> 308 bytes .../FlexJSStore/src/assets/button_compare.png | Bin 0 -> 304 bytes .../FlexJSStore/src/assets/button_details.png | Bin 0 -> 284 bytes .../FlexJSStore/src/assets/button_tiles.png | Bin 0 -> 218 bytes examples/flexjs/FlexJSStore/src/assets/grip.png | Bin 0 -> 19836 bytes .../FlexJSStore/src/assets/icon_cart_empty.png | Bin 0 -> 29594 bytes .../FlexJSStore/src/assets/icon_compare.png | Bin 0 -> 30218 bytes .../FlexJSStore/src/assets/icon_magnifier.png | Bin 0 -> 30454 bytes .../FlexJSStore/src/assets/icon_tiles.png | Bin 0 -> 27988 bytes .../flexjs/FlexJSStore/src/assets/jproctor.jpg | Bin 0 -> 21684 bytes .../flexjs/FlexJSStore/src/assets/logo_blue.png | Bin 0 -> 33427 bytes .../FlexJSStore/src/assets/logo_orange.png | Bin 0 -> 33897 bytes .../FlexJSStore/src/assets/pic/abrilliam.jpg | Bin 0 -> 18903 bytes .../FlexJSStore/src/assets/pic/akotter.jpg | Bin 0 -> 19395 bytes .../FlexJSStore/src/assets/pic/bcrater.jpg | Bin 0 -> 22670 bytes .../FlexJSStore/src/assets/pic/bleporte.jpg | Bin 0 -> 23363 bytes .../FlexJSStore/src/assets/pic/bvanbrocklin.jpg | Bin 0 -> 18066 bytes .../FlexJSStore/src/assets/pic/ccarpenter.jpg | Bin 0 -> 19219 bytes .../FlexJSStore/src/assets/pic/clampberto.jpg | Bin 0 -> 18611 bytes .../FlexJSStore/src/assets/pic/davenon.jpg | Bin 0 -> 20028 bytes .../FlexJSStore/src/assets/pic/dmcgoyal.jpg | Bin 0 -> 19395 bytes .../FlexJSStore/src/assets/pic/dwillhelm.jpg | Bin 0 -> 22670 bytes .../FlexJSStore/src/assets/pic/esunderland.jpg | Bin 0 -> 23363 bytes .../FlexJSStore/src/assets/pic/jproctor.jpg | Bin 0 -> 21684 bytes .../FlexJSStore/src/assets/pic/mfields.jpg | Bin 0 -> 18066 bytes .../FlexJSStore/src/assets/pic/pdempsey.jpg | Bin 0 -> 18611 bytes .../FlexJSStore/src/assets/pic/ptranep.jpg | Bin 0 -> 19627 bytes .../FlexJSStore/src/assets/pic/rcrawley.jpg | Bin 0 -> 23692 bytes .../FlexJSStore/src/assets/pic/rdreifus.jpg | Bin 0 -> 20028 bytes .../flexjs/FlexJSStore/src/assets/pic/twong.jpg | Bin 0 -> 19395 bytes .../FlexJSStore/src/assets/support_map.png | Bin 0 -> 172293 bytes .../src/assets/support_mapmarker_a.png | Bin 0 -> 834 bytes .../src/assets/support_mapmarker_b.png | Bin 0 -> 822 bytes .../src/assets/support_mapmarker_c.png | Bin 0 -> 817 bytes .../src/assets/support_mapmarker_plus.png | Bin 0 -> 827 bytes .../flexjs/FlexJSStore/src/assets/trashcan.png | Bin 0 -> 182 bytes examples/flexjs/FlexJSStore/src/beige.css | 171 ++++++ examples/flexjs/FlexJSStore/src/blue.css | 165 ++++++ .../flexjs/FlexJSStore/src/data/catalog.json | 236 ++++++++ .../flexjs/FlexJSStore/src/data/catalog.xml | 256 +++++++++ examples/flexjs/FlexJSStore/src/main.css | 100 ++++ .../src/productsView/CatalogTitleButtons.mxml | 70 +++ .../FlexJSStore/src/productsView/Grip.mxml | 48 ++ .../src/productsView/ProductCart.mxml | 117 ++++ .../src/productsView/ProductCatalogPanel.mxml | 546 ++++++++++++++++++ .../ProductCatalogPanelTitleBarView.mxml | 49 ++ .../productsView/ProductCatalogThumbnail.mxml | 220 ++++++++ .../src/productsView/ProductDetails.mxml | 145 +++++ .../src/productsView/ProductFilterPanel.mxml | 215 ++++++++ .../src/productsView/ProductList.mxml | 219 ++++++++ .../src/productsView/ProductListItem.mxml | 130 +++++ .../src/productsView/ProductSupport.mxml | 90 +++ .../samples/flexstore/ButtonBarButtonSkin.as | 298 ++++++++++ .../src/samples/flexstore/Product.as | 78 +++ .../src/samples/flexstore/ProductFilter.as | 56 ++ .../src/samples/flexstore/ProductFilterEvent.as | 39 ++ .../src/samples/flexstore/ProductListEvent.as | 42 ++ .../src/samples/flexstore/ProductThumbEvent.as | 45 ++ examples/flexjs/FlexJSStore_jquery/build.xml | 91 +++ .../FlexJSStore_jquery/src/FlexJSStore.mxml | 269 +++++++++ .../flexjs/FlexJSStore_jquery/src/HomeView.mxml | 206 +++++++ .../src/ProductJSONItemConverter.as | 41 ++ .../FlexJSStore_jquery/src/ProductsView.mxml | 125 +++++ .../FlexJSStore_jquery/src/SupportView.mxml | 139 +++++ .../FlexJSStore_jquery/src/assets/akotter.jpg | Bin 0 -> 19395 bytes .../FlexJSStore_jquery/src/assets/bcrater.jpg | Bin 0 -> 22670 bytes .../src/assets/beige_background.jpg | Bin 0 -> 12533 bytes .../src/assets/beige_dotted_map.png | Bin 0 -> 216598 bytes .../src/assets/blue_background.jpg | Bin 0 -> 12868 bytes .../src/assets/blue_dotted_map.png | Bin 0 -> 217088 bytes .../src/assets/button_cart_empty.png | Bin 0 -> 289 bytes .../src/assets/button_cart_full.png | Bin 0 -> 308 bytes .../src/assets/button_compare.png | Bin 0 -> 304 bytes .../src/assets/button_details.png | Bin 0 -> 284 bytes .../src/assets/button_tiles.png | Bin 0 -> 218 bytes .../FlexJSStore_jquery/src/assets/grip.png | Bin 0 -> 19836 bytes .../src/assets/icon_cart_empty.png | Bin 0 -> 29594 bytes .../src/assets/icon_compare.png | Bin 0 -> 30218 bytes .../src/assets/icon_magnifier.png | Bin 0 -> 30454 bytes .../src/assets/icon_tiles.png | Bin 0 -> 27988 bytes .../FlexJSStore_jquery/src/assets/jproctor.jpg | Bin 0 -> 21684 bytes .../FlexJSStore_jquery/src/assets/logo_blue.png | Bin 0 -> 33427 bytes .../src/assets/logo_orange.png | Bin 0 -> 33897 bytes .../src/assets/pic/abrilliam.jpg | Bin 0 -> 18903 bytes .../src/assets/pic/akotter.jpg | Bin 0 -> 19395 bytes .../src/assets/pic/bcrater.jpg | Bin 0 -> 22670 bytes .../src/assets/pic/bleporte.jpg | Bin 0 -> 23363 bytes .../src/assets/pic/bvanbrocklin.jpg | Bin 0 -> 18066 bytes .../src/assets/pic/ccarpenter.jpg | Bin 0 -> 19219 bytes .../src/assets/pic/clampberto.jpg | Bin 0 -> 18611 bytes .../src/assets/pic/davenon.jpg | Bin 0 -> 20028 bytes .../src/assets/pic/dmcgoyal.jpg | Bin 0 -> 19395 bytes .../src/assets/pic/dwillhelm.jpg | Bin 0 -> 22670 bytes .../src/assets/pic/esunderland.jpg | Bin 0 -> 23363 bytes .../src/assets/pic/jproctor.jpg | Bin 0 -> 21684 bytes .../src/assets/pic/mfields.jpg | Bin 0 -> 18066 bytes .../src/assets/pic/pdempsey.jpg | Bin 0 -> 18611 bytes .../src/assets/pic/ptranep.jpg | Bin 0 -> 19627 bytes .../src/assets/pic/rcrawley.jpg | Bin 0 -> 23692 bytes .../src/assets/pic/rdreifus.jpg | Bin 0 -> 20028 bytes .../FlexJSStore_jquery/src/assets/pic/twong.jpg | Bin 0 -> 19395 bytes .../src/assets/support_map.png | Bin 0 -> 172293 bytes .../src/assets/support_mapmarker_a.png | Bin 0 -> 834 bytes .../src/assets/support_mapmarker_b.png | Bin 0 -> 822 bytes .../src/assets/support_mapmarker_c.png | Bin 0 -> 817 bytes .../src/assets/support_mapmarker_plus.png | Bin 0 -> 827 bytes .../FlexJSStore_jquery/src/assets/trashcan.png | Bin 0 -> 182 bytes .../flexjs/FlexJSStore_jquery/src/beige.css | 171 ++++++ examples/flexjs/FlexJSStore_jquery/src/blue.css | 165 ++++++ .../FlexJSStore_jquery/src/data/catalog.json | 236 ++++++++ .../FlexJSStore_jquery/src/data/catalog.xml | 256 +++++++++ examples/flexjs/FlexJSStore_jquery/src/main.css | 100 ++++ .../src/productsView/CatalogTitleButtons.mxml | 69 +++ .../src/productsView/Grip.mxml | 49 ++ .../src/productsView/ProductCart.mxml | 116 ++++ .../src/productsView/ProductCatalogPanel.mxml | 547 +++++++++++++++++++ .../ProductCatalogPanelTitleBarView.mxml | 49 ++ .../productsView/ProductCatalogThumbnail.mxml | 220 ++++++++ .../src/productsView/ProductDetails.mxml | 150 +++++ .../src/productsView/ProductFilterPanel.mxml | 215 ++++++++ .../src/productsView/ProductList.mxml | 216 ++++++++ .../src/productsView/ProductListItem.mxml | 130 +++++ .../src/productsView/ProductSupport.mxml | 90 +++ .../samples/flexstore/ButtonBarButtonSkin.as | 298 ++++++++++ .../src/samples/flexstore/Product.as | 78 +++ .../src/samples/flexstore/ProductFilter.as | 56 ++ .../src/samples/flexstore/ProductFilterEvent.as | 39 ++ .../src/samples/flexstore/ProductListEvent.as | 42 ++ .../src/samples/flexstore/ProductThumbEvent.as | 45 ++ examples/flexjs/MapSearch/MapSearch-app.xml | 252 +++++++++ examples/flexjs/MapSearch/build.xml | 103 ++++ examples/flexjs/MapSearch/src/MapSearch.mxml | 46 ++ .../flexjs/MapSearch/src/MyInitialView.mxml | 212 +++++++ examples/flexjs/MapSearch/src/models/MyModel.as | 69 +++ examples/flexjs/MobileTrader/build.xml | 70 +++ .../flexjs/MobileTrader/src/MobileTrader.mxml | 39 ++ .../flexjs/MobileTrader/src/MyInitialView.mxml | 255 +++++++++ .../src/StockDataJSONItemConverter.as | 40 ++ .../MobileTrader/src/assets/arrow_left_24.png | Bin 0 -> 47785 bytes .../MobileTrader/src/assets/background.png | Bin 0 -> 49376 bytes .../flexjs/MobileTrader/src/assets/logo.png | Bin 0 -> 55223 bytes .../src/controller/AlertsViewController.as | 139 +++++ .../src/controller/WatchListController.as | 137 +++++ .../flexjs/MobileTrader/src/models/Alert.as | 94 ++++ .../MobileTrader/src/models/AssetsModel.as | 47 ++ .../MobileTrader/src/models/ProductsModel.as | 160 ++++++ .../flexjs/MobileTrader/src/models/Stock.as | 148 +++++ .../MobileTrader/src/renderers/AlertRenderer.as | 44 ++ .../MobileTrader/src/renderers/StockRenderer.as | 47 ++ .../MobileTrader/src/views/AlertsView.mxml | 100 ++++ .../MobileTrader/src/views/AssetsView.mxml | 94 ++++ .../MobileTrader/src/views/SearchView.mxml | 37 ++ .../MobileTrader/src/views/StockView.mxml | 98 ++++ .../MobileTrader/src/views/WatchListView.mxml | 150 +++++ examples/flexjs/TodoListSampleApp/build.xml | 73 +++ .../flexjs/TodoListSampleApp/src/README.txt | 22 + .../src/TodoListSampleApp.mxml | 43 ++ .../todo/controllers/TodoListController.as | 62 +++ .../src/sample/todo/events/TodoListEvent.as | 35 ++ .../src/sample/todo/models/TodoListModel.as | 42 ++ .../sample/todo/renderers/TodoItemRenderer.as | 69 +++ .../src/sample/todo/views/TodoListView.mxml | 109 ++++ 454 files changed, 15525 insertions(+), 15525 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/ChartExample/build.xml b/examples/ChartExample/build.xml deleted file mode 100644 index 60306cb..0000000 --- a/examples/ChartExample/build.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> - - -<project name="chartexample" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="ChartExample" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <include file="${basedir}/../build_example.xml" /> - -<!-- temp remove build_example.compilejs --> - <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - - - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/ChartExample.mxml ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/ChartExample.mxml b/examples/ChartExample/src/ChartExample.mxml deleted file mode 100644 index 6cf51d9..0000000 --- a/examples/ChartExample/src/ChartExample.mxml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!--- -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// ---> -<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - > - - <js:valuesImpl> - <js:SimpleCSSValuesImpl /> - </js:valuesImpl> - <js:model> - <models:ProductsModel /> - </js:model> - <js:initialView> - <local:MyInitialView /> - </js:initialView> -</js:Application> - http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/MyInitialView.mxml b/examples/ChartExample/src/MyInitialView.mxml deleted file mode 100644 index f83b059..0000000 --- a/examples/ChartExample/src/MyInitialView.mxml +++ /dev/null @@ -1,312 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---> -<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - initComplete="testit()" - > - <fx:Script> - <![CDATA[ - - import models.ProductsModel; - - private function testit():void - { - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(50); - waveChart.dataProvider = m.wave1; - } - - ]]> - </fx:Script> - - <fx:Style> - @namespace js "library://ns.apache.org/flexjs/basic"; - .AllCharts { - border-width: 0px; - padding-left: 2px; - padding-top: 10px; - padding-bottom: 2px; - padding-right: 10px; - } - </fx:Style> - - <js:Label id="output" x="50" y="30" width="100" /> - - <js:ColumnChart id="columnChart" x="20" y="20" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalCategoryAxisBead categoryField="title" /> - <js:VerticalLinearAxisBead valueField="sales2013" /> - </js:beads> - <js:series> - <js:ColumnSeries yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - <js:ColumnSeries yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - </js:series> - </js:ColumnChart> - - <js:BarChart id="barChart" x="500" y="20" width="400" height="300" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:VerticalCategoryAxisBead categoryField="title" /> - <js:HorizontalLinearAxisBead valueField="sales2013" /> - </js:beads> - <js:series> - <js:BarSeries xField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - <js:BarSeries xField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - </js:series> - </js:BarChart> - - <js:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalCategoryAxisBead categoryField="title" /> - </js:beads> - <js:series> - <js:ColumnSeries yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - <js:ColumnSeries yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - </js:series> - </js:StackedColumnChart> - - <js:StackedBarChart id="stackedBarChart" x="500" y="400" width="400" height="300" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:VerticalCategoryAxisBead categoryField="title" /> - </js:beads> - <js:series> - <js:BarSeries xField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - <js:BarSeries xField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - </js:series> - </js:StackedBarChart> - - <js:PieChart id="pieChart" x="20" y="550" width="200" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - </js:beads> - <js:series> - <js:PieSeries dataField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:WedgeItemRenderer /> - </fx:Component> - </js:itemRenderer> - </js:PieSeries> - </js:series> - </js:PieChart> - - <js:LineChart id="lineChart" x="500" y="750" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalLinearAxisBead valueField="detail" /> - <js:VerticalLinearAxisBead valueField="sales2013" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="detail" yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="3" alpha="0.8" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - <js:LineSeries xField="detail" yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="3" alpha="0.8" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <js:LineChart id="waveChart" x="20" y="800" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave" - destinationPropertyName="dataProvider" /> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="5" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - <js:LineSeries xField="x" yField="cos"> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="5" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - -</js:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/README.txt ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/README.txt b/examples/ChartExample/src/README.txt deleted file mode 100644 index 9179bd3..0000000 --- a/examples/ChartExample/src/README.txt +++ /dev/null @@ -1,31 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// - -This example demonstrates how to construct a BarChart and a PieChart. The BarChart -is composed of two series while the PieChart has one (and only one) series. - -At this time, PieChart supports only one series, but BarChart can support several. - -PieChart uses SVG on the HTML/JavaScript side to draw the wedges. This is still -a "to do" item for BarChart, but it should be done. Further charts can follow -the same pattern. - -PieChart uses a special ChartDataGroup (since all charts, so far, are based on -List) that provides an SVG element on the JavaScript side. BarChart can make use -of the same construct and have BoxItemRenderer create an SVG <rect> element. http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/SpeedTestView.mxml ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/SpeedTestView.mxml b/examples/ChartExample/src/SpeedTestView.mxml deleted file mode 100644 index d1d4b2c..0000000 --- a/examples/ChartExample/src/SpeedTestView.mxml +++ /dev/null @@ -1,187 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---> -<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - > - <fx:Script> - <![CDATA[ - import models.ProductsModel; - - import org.apache.flex.events.Event; - - private var startTime:Date; - private var endTime:Date; - - private function startTimingSVG():void - { - var n:Number = Number(numPoints.text); - - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(n); - - trace("Will start timing"); - startTime = new Date(); - svgChart.addEventListener("layoutComplete",wave1Complete); - svgChart.dataProvider = m.wave1; - } - - private function wave1Complete(event:org.apache.flex.events.Event):void - { - endTime = new Date(); - var diff:Number = endTime.getTime() - startTime.getTime(); - svgChartResults.text = diff+" msecs"; - } - - private function startTimingReg():void - { - var n:Number = Number(numPoints.text); - - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(n); - - trace("Will start timing"); - startTime = new Date(); - regChart.addEventListener("layoutComplete",wave2Complete); - regChart.dataProvider = m.wave1; - } - - private function wave2Complete(event:org.apache.flex.events.Event):void - { - endTime = new Date(); - var diff:Number = endTime.getTime() - startTime.getTime(); - regChartResults.text = diff+" msecs"; - } - ]]> - </fx:Script> - - <fx:Style> - @namespace models "models.*"; - @namespace basic "library://ns.apache.org/flexjs/basic"; - - .hsline { - IDataGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartDataGroup"); - IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); - IVerticalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); - } - </fx:Style> - - <js:Container x="20" y="20"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:Label text="Points:" /> - <js:TextInput id="numPoints" text="300" /> - </js:Container> - - <!-- SVG Line Chart --> - - <js:Label text="SVG Chart" x="250" y="80" /> - - <js:LineChart id="svgChart" x="21" y="100" width="400" height="200" className="hsline"> - <js:beads> - <!--<js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave" - destinationPropertyName="dataProvider" />--> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:itemRenderer> - <fx:Component> - <js:SVGBoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF44FF" alpha="1" /> - </js:fill> - </js:SVGBoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:SVGLineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" alpha="1" /> - </js:stroke> - </js:SVGLineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <!-- Regular Line Chart --> - - <js:Label text="Reg Chart" x="650" y="80" /> - - <js:LineChart id="regChart" x="500" y="100" width="400" height="200"> - <js:beads> - <!--<js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave2" - destinationPropertyName="dataProvider" />--> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#99FF99" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#33DD33" weight="2" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <js:Container x="150" y="325"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:TextButton text="SVG Go" click="startTimingSVG()" /> - <js:Label text=" (results)" id="svgChartResults" /> - </js:Container> - - <js:Container x="650" y="325"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:TextButton text="Reg Go" click="startTimingReg()" /> - <js:Label text=" (results)" id="regChartResults" /> - </js:Container> - -</js:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/models/ProductsModel.as b/examples/ChartExample/src/models/ProductsModel.as deleted file mode 100644 index c173c6e..0000000 --- a/examples/ChartExample/src/models/ProductsModel.as +++ /dev/null @@ -1,79 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package models -{ - import org.apache.flex.events.EventDispatcher; - - import products.Product; - - public class ProductsModel extends EventDispatcher - { - public function ProductsModel() - { - generateWaves(20); - } - - private var _productList:Array = [ - new Product("tx200","Thingys", 5, 285,314,"smallgreenrect.jpg"), - new Product("dh440","Doohickies", 10,340,125,"smallredrect.jpg"), - new Product("ps220","Weejets", 35,190,240,"smallorangerect.jpg"), - new Product("ps100","Widgets", 44,200,82,"smallbluerect.jpg"), - new Product("rz300","Sprockets", 80,105,271,"smallyellowrect.jpg") - ]; - public function get productList():Array - { - return _productList; - } - - private var _labelFields:Array = [ "id", "title", "sales2013", "sales2014", "detail" ]; - public function get labelFields():Array - { - return _labelFields; - } - - private var _wave:Array; - - public function generateWaves(numPoints:int):void - { - _wave = []; - - var angleIncr:Number = 360/numPoints; - var angle:Number = 0; - - for (var i:int=0; i < numPoints; i++) - { - var p:Object = {x:i, - sin:Math.sin(Math.PI/180*angle), - cos:Math.cos(Math.PI/180*angle)}; - angle += angleIncr; - _wave.push(p); - } - } - - public function get wave1():Array - { - return _wave; - } - - public function get wave2():Array - { - return _wave; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/ChartExample/src/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/ChartExample/src/products/Product.as b/examples/ChartExample/src/products/Product.as deleted file mode 100644 index 2205e69..0000000 --- a/examples/ChartExample/src/products/Product.as +++ /dev/null @@ -1,45 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package products -{ - public class Product - { - public function Product(id:String, title:String, detail:Number,sales2013:Number, sales2014:Number ,image:String) - { - this.id = id; - this.title = title; - this.detail = detail; - this.sales2013 = sales2013; - this.sales2014 = sales2014; - this.image = image; - } - - public var id:String; - public var title:String; - public var detail:Number; - public var image:String; - public var sales2013:Number; - public var sales2014:Number; - - public function toString():String - { - return title; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/CordovaCameraExample/CordovaCameraExample-app.xml ---------------------------------------------------------------------- diff --git a/examples/CordovaCameraExample/CordovaCameraExample-app.xml b/examples/CordovaCameraExample/CordovaCameraExample-app.xml deleted file mode 100644 index 7a5ed64..0000000 --- a/examples/CordovaCameraExample/CordovaCameraExample-app.xml +++ /dev/null @@ -1,252 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<application xmlns="http://ns.adobe.com/air/application/4.0"> - -<!-- Adobe AIR Application Descriptor File Template. - - Specifies parameters for identifying, installing, and launching AIR applications. - - xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.8 - The last segment of the namespace specifies the version - of the AIR runtime required for this application to run. - - minimumPatchLevel - The minimum patch level of the AIR runtime required to run - the application. Optional. ---> - - <!-- A universally unique application identifier. Must be unique across all AIR applications. - Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. --> - <id>org.apache.flexjs.cordovacamera</id> - - <!-- Used as the filename for the application. Required. --> - <filename>Apache FlexJS Cordova Camera Example</filename> - - <!-- The name that is displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <name>Apache FlexJS Cordova Camera Example</name> - - <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade. - Values can also be 1-part or 2-part. It is not necessary to have a 3-part value. - An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . --> - <versionNumber>0.0.1</versionNumber> - - <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. --> - <!-- <versionLabel></versionLabel> --> - - <!-- Description, displayed in the AIR application installer. - May have multiple values for each language. See samples or xsd schema file. Optional. --> - <!-- <description></description> --> - - <!-- Copyright information. Optional --> - <copyright>Copyright 2013 The Apache Software Foundation.</copyright> - - <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 --> - <!-- <publisherID></publisherID> --> - - <!-- Settings for the application's initial window. Required. --> - <initialWindow> - <!-- The main SWF or HTML file of the application. Required. --> - <!-- Note: In Flash Builder, the SWF reference is set automatically. --> - <content>CordovaCameraExample.swf</content> - - <!-- The title of the main window. Optional. --> - <!-- <title></title> --> - - <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> - <!-- <systemChrome></systemChrome> --> - - <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> - <!-- <transparent></transparent> --> - - <!-- Whether the window is initially visible. Optional. Default false. --> - <!-- <visible></visible> --> - - <!-- Whether the user can minimize the window. Optional. Default true. --> - <!-- <minimizable></minimizable> --> - - <!-- Whether the user can maximize the window. Optional. Default true. --> - <!-- <maximizable></maximizable> --> - - <!-- Whether the user can resize the window. Optional. Default true. --> - <!-- <resizable></resizable> --> - - <!-- The window's initial width in pixels. Optional. --> - <!-- <width></width> --> - - <!-- The window's initial height in pixels. Optional. --> - <!-- <height></height> --> - - <!-- The window's initial x position. Optional. --> - <!-- <x></x> --> - - <!-- The window's initial y position. Optional. --> - <!-- <y></y> --> - - <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. --> - <!-- <minSize></minSize> --> - - <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. --> - <!-- <maxSize></maxSize> --> - - <!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape"). Optional. Mobile only. Default is the natural orientation of the device --> - - <!-- <aspectRatio></aspectRatio> --> - - <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false --> - - <!-- <autoOrients></autoOrients> --> - - <!-- Whether the app launches in full screen. Optional. Mobile only. Default false --> - - <!-- <fullScreen></fullScreen> --> - - <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto --> - - <!-- <renderMode></renderMode> --> - - <!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none"). Optional. Defaults "pan." --> - <!-- <softKeyboardBehavior></softKeyboardBehavior> --> - <autoOrients>false</autoOrients> - <fullScreen>false</fullScreen> - <visible>true</visible> - </initialWindow> - - <!-- We recommend omitting the supportedProfiles element, --> - <!-- which in turn permits your application to be deployed to all --> - <!-- devices supported by AIR. If you wish to restrict deployment --> - <!-- (i.e., to only mobile devices) then add this element and list --> - <!-- only the profiles which your application does support. --> - <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> --> - <supportedProfiles>extendedDesktop desktop mobileDevice</supportedProfiles> - - <!-- The subpath of the standard default installation location to use. Optional. --> - <installFolder>Apache Flex</installFolder> - - <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --> - <programMenuFolder>Apache Flex</programMenuFolder> - - <!-- The icon the system uses for the application. For at least one resolution, - specify the path to a PNG file included in the AIR package. Optional. --> - <icon> - <image16x16>assets/icons/16.png</image16x16> - <image29x29>assets/icons/29.png</image29x29> - <image32x32>assets/icons/32.png</image32x32> - <image36x36>assets/icons/36.png</image36x36> - <image48x48>assets/icons/48.png</image48x48> - <image57x57>assets/icons/57.png</image57x57> - <image72x72>assets/icons/72.png</image72x72> - <image114x114>assets/icons/114.png</image114x114> - <image128x128>assets/icons/128.png</image128x128> - </icon> - - <!-- Whether the application handles the update when a user double-clicks an update version - of the AIR file (true), or the default AIR application installer handles the update (false). - Optional. Default false. --> - <!-- <customUpdateUI></customUpdateUI> --> - - <!-- Whether the application can be launched when the user clicks a link in a web browser. - Optional. Default false. --> - <!-- <allowBrowserInvocation></allowBrowserInvocation> --> - - <!-- Listing of file types for which the application can register. Optional. --> - <!-- <fileTypes> --> - - <!-- Defines one file type. Optional. --> - <!-- <fileType> --> - - <!-- The name that the system displays for the registered file type. Required. --> - <!-- <name></name> --> - - <!-- The extension to register. Required. --> - <!-- <extension></extension> --> - - <!-- The description of the file type. Optional. --> - <!-- <description></description> --> - - <!-- The MIME content type. --> - <!-- <contentType></contentType> --> - - <!-- The icon to display for the file type. Optional. --> - <!-- <icon> - <image16x16></image16x16> - <image32x32></image32x32> - <image48x48></image48x48> - <image128x128></image128x128> - </icon> --> - - <!-- </fileType> --> - <!-- </fileTypes> --> - - <!-- iOS specific capabilities --> - <!-- <iPhone> --> - <!-- A list of plist key/value pairs to be added to the application Info.plist --> - <!-- <InfoAdditions> - <![CDATA[ - <key>UIDeviceFamily</key> - <array> - <string>1</string> - <string>2</string> - </array> - <key>UIStatusBarStyle</key> - <string>UIStatusBarStyleBlackOpaque</string> - <key>UIRequiresPersistentWiFi</key> - <string>YES</string> - ]]> - </InfoAdditions> --> - <!-- A list of plist key/value pairs to be added to the application Entitlements.plist --> - <!-- <Entitlements> - <![CDATA[ - <key>keychain-access-groups</key> - <array> - <string></string> - <string></string> - </array> - ]]> - </Entitlements> --> - <!-- Display Resolution for the app (either "standard" or "high"). Optional. Default "standard" --> - <!-- <requestedDisplayResolution></requestedDisplayResolution> --> - <!-- </iPhone> --> - - <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. --> - <!--<android> --> - <!-- <manifestAdditions> - <![CDATA[ - <manifest android:installLocation="auto"> - <uses-permission android:name="android.permission.INTERNET"/> - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> - <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/> - <application android:enabled="true"> - <activity android:excludeFromRecents="false"> - <intent-filter> - <action android:name="android.intent.action.MAIN"/> - <category android:name="android.intent.category.LAUNCHER"/> - </intent-filter> - </activity> - </application> - </manifest> - ]]> - </manifestAdditions> --> - <!-- Color depth for the app (either "32bit" or "16bit"). Optional. Default 16bit before namespace 3.0, 32bit after --> - <!-- <colorDepth></colorDepth> --> - <!-- </android> --> - <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file --> - -</application> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/CordovaCameraExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/CordovaCameraExample/build.xml b/examples/CordovaCameraExample/build.xml deleted file mode 100644 index 92f4c07..0000000 --- a/examples/CordovaCameraExample/build.xml +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> - - -<project name="cordovacameraexample" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="CordovaCameraExample" /> - - <!-- this project needs AIR 3.4 FP 11.4 --> - <property name="swf.version" value="17" /> - <property name="playerglobal.version" value="11.4" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <property name="AIR_HOME" value="${env.AIR_HOME}"/> - - - <condition property="adl" value="adl.exe"> - <os family="windows"/> - </condition> - - <condition property="adl" value="adl"> - <os family="mac"/> - </condition> - - <condition property="runtime" value="win"> - <os family="windows"/> - </condition> - - <condition property="runtime" value="mac"> - <os family="mac"/> - </condition> - - <include file="${basedir}/../build_example.xml" /> - - <target name="main" depends="clean,build_example.compileair,build_example.compilejsair" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <echo>playerglobal.version = ${playerglobal.version}</echo> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - - <target name="run"> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="-screensize" /> - <arg value="640x960:640x960" /> - <arg value="-profile" /> - <arg value="mobileDevice" /> - <arg value="-XscreenDPI" /> - <arg value="240" /> - <arg value="-XversionPlatform" /> - <arg value="AND" /> - <arg value="${basedir}/bin-debug/${example}-app.xml" /> - </exec> - </target> -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/CordovaCameraExample/src/CordovaCameraExample.mxml ---------------------------------------------------------------------- diff --git a/examples/CordovaCameraExample/src/CordovaCameraExample.mxml b/examples/CordovaCameraExample/src/CordovaCameraExample.mxml deleted file mode 100644 index 5e70a10..0000000 --- a/examples/CordovaCameraExample/src/CordovaCameraExample.mxml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!--- -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// ---> -<cordova:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:cordova="library://ns.apache.org/flexjs/cordova" - deviceready="MyInitialView(initialView).ready = true" - > - - <cordova:valuesImpl> - <js:SimpleCSSValuesImpl /> - </cordova:valuesImpl> - <cordova:initialView> - <local:MyInitialView /> - </cordova:initialView> - <cordova:beads> - <js:MixinManager /> - <cordova:Weinre guid="aharui" /> - </cordova:beads> -</cordova:Application> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/CordovaCameraExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/CordovaCameraExample/src/MyInitialView.mxml b/examples/CordovaCameraExample/src/MyInitialView.mxml deleted file mode 100644 index 29e31e3..0000000 --- a/examples/CordovaCameraExample/src/MyInitialView.mxml +++ /dev/null @@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---> -<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" > - <fx:Script> - <![CDATA[ - - import org.apache.cordova.camera.Camera; - - private var cam:org.apache.cordova.camera.Camera = new org.apache.cordova.camera.Camera(); - - public function set ready(value:Boolean):void - { - status.text = "ready"; - } - - public function snapPicture() : void - { - trace("snapping"); - cam.getPicture(success,failure,{quality:100, destinationType:org.apache.cordova.camera.Camera.DestinationType.FILE_URI}); - } - - private function success(data:Object):void - { - output.text = "Success: "+String(data); - image.source = String(data); - } - - private function failure(message:Object):void - { - output.text = "Failed: "+String(message); - } - - private function onFromPhotoLibrary() : void - { - cam.getPicture(success,failure,{ quality: 50, - destinationType: org.apache.cordova.camera.Camera.DestinationType.FILE_URI, - sourceType: org.apache.cordova.camera.Camera.PictureSourceType.PHOTOLIBRARY }); - } - - ]]> - </fx:Script> - - <fx:Style> - - </fx:Style> - - <js:Label id="status" x="20" y="140" width="400" text="loading..."/> - - <js:TextButton text="From Photo Library" x="20" y="20" click="onFromPhotoLibrary()" /> - <js:TextButton text="Snap Picture" x="20" y="55" click="snapPicture()" /> - - <js:Label id="output" x="20" y="110" width="400"/> - - <js:Image id="image" x="20" y="200" width="200" height="200" /> - -</js:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/CordovaCameraExample/src/README.txt ---------------------------------------------------------------------- diff --git a/examples/CordovaCameraExample/src/README.txt b/examples/CordovaCameraExample/src/README.txt deleted file mode 100644 index 52d21ff..0000000 --- a/examples/CordovaCameraExample/src/README.txt +++ /dev/null @@ -1,24 +0,0 @@ -Running the CordovaCameraExample on an Android Device - -From Flash Builder or the command line, run the FlexJS cross compiler, FalconJX, to build the HTML/JavaScript version of your app. -% cd ~/dev/flex-asjs/examples/CordovaCameraExample -% ant - -Go to your mobile development directory: -%cd ~/mobile - -Copy into this directory, the cordova-build.xml ANT script: -% cp ~/dev/flex-asjs/cordova-build.xml - -Create the Cordova project for your FlexJS application: -% ant -f cordova-build.xml -DPROJECT_NAME=CordovaCameraExample -DTARGET_DIR=. -DPROJECT_DIR=/Users/home/dev/flex-asjs/examples/CordovaCameraExample/ - -Load the Cordova camera plugin: -cd CordovaCameraExample -% cordova plugin add org.apache.cordova.camera - -Modify the www/index.html file to include the cordova.js source (place this line with the other <script> elements): -<script type="text/javascript" charset="utf-8" src="cordova.js"></script> - -Run your app on your connected device: -% cordova run \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/DataBindingExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/DataBindingExample/build.xml b/examples/DataBindingExample/build.xml deleted file mode 100644 index c14ec77..0000000 --- a/examples/DataBindingExample/build.xml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> - - -<project name="databindingexample" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="DataBindingExample" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <include file="${basedir}/../build_example.xml" /> - - <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - - - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d33fe63c/examples/DataBindingExample/src/DataBindingExample.mxml ---------------------------------------------------------------------- diff --git a/examples/DataBindingExample/src/DataBindingExample.mxml b/examples/DataBindingExample/src/DataBindingExample.mxml deleted file mode 100644 index 751e427..0000000 --- a/examples/DataBindingExample/src/DataBindingExample.mxml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ---> -<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:models="models.*" - xmlns:controllers="controllers.*" - initialize="MyModel(model).stockSymbol='ADBE'" - > - <js:valuesImpl> - <js:SimpleCSSValuesImpl /> - </js:valuesImpl> - <js:initialView> - <local:MyInitialView /> - </js:initialView> - <js:model> - <models:MyModel /> - </js:model> - <js:controller> - <controllers:MyController /> - </js:controller> - <js:beads> - <js:HTTPService id="service"> - <js:LazyCollection id="collection"> - <js:inputParser> - <js:JSONInputParser /> - </js:inputParser> - <js:itemConverter> - <local:StockDataJSONItemConverter /> - </js:itemConverter> - </js:LazyCollection> - </js:HTTPService> - <js:CSSFontFaceBead /> - <js:ViewSourceContextMenuOption /> - </js:beads> -</js:Application>
