You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/03/22 08:05:32 UTC

[07/13] git commit: Adding FlexJS reference files

Adding FlexJS reference files

These are the reference files used by the FlexJSMXML tests to verify the JS output.


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/84e269ed
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/84e269ed
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/84e269ed

Branch: refs/heads/develop
Commit: 84e269edea04ff0a18c7e638abbb775abc13dbae
Parents: 111537c
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Mar 12 16:45:57 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Mar 12 16:45:57 2013 +0100

----------------------------------------------------------------------
 .../flexjs/files/FlexJSTest_2013-03-11.js          |  195 -----
 .../flexjs/files/FlexJSTest_2013_03_11.mxml        |   51 ++
 .../flexjs/files/FlexJSTest_2013_03_11_result.js   |  193 +++++
 .../flexjs/files/MyInitialView_2013-03-11.js       |  582 ---------------
 .../flexjs/files/MyInitialView_2013_03_11.mxml     |   77 ++
 .../files/MyInitialView_2013_03_11_result.js       |  582 +++++++++++++++
 6 files changed, 903 insertions(+), 777 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013-03-11.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013-03-11.js b/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013-03-11.js
deleted file mode 100644
index 5755e1c..0000000
--- a/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013-03-11.js
+++ /dev/null
@@ -1,195 +0,0 @@
-goog.provide('FlexJSTest');
-
-goog.require('MyInitialView');
-goog.require('StockDataJSONItemConverter');
-goog.require('controllers.MyController');
-goog.require('models.MyModel');
-goog.require('org.apache.flex.core.Application');
-goog.require('org.apache.flex.core.SimpleCSSValuesImpl');
-goog.require('org.apache.flex.net.HTTPService');
-goog.require('org.apache.flex.net.JSONInputParser');
-goog.require('org.apache.flex.net.dataConverters.LazyCollection');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.Application}
- */
-FlexJSTest = function() {
-    org.apache.flex.core.Application.call(this);
-
-    /**
-     * @private
-     * @type {org.apache.flex.core.SimpleCSSValuesImpl}
-     */
-    this.$ID0;
-
-    /**
-     * @private
-     * @type {MyInitialView}
-     */
-    this.$ID1;
-
-    /**
-     * @private
-     * @type {models.MyModel}
-     */
-    this.$ID2;
-
-    /**
-     * @private
-     * @type {controllers.MyController}
-     */
-    this.$ID3;
-
-    /**
-     * @private
-     * @type {org.apache.flex.net.JSONInputParser}
-     */
-    this.$ID6;
-
-    /**
-     * @private
-     * @type {StockDataJSONItemConverter}
-     */
-    this.$ID7;
-
-    /**
-     * @private
-     * @type {org.apache.flex.net.dataConverters.LazyCollection}
-     */
-    this.collection;
-
-    /**
-     * @private
-     * @type {org.apache.flex.net.HTTPService}
-     */
-    this.service;
-
-    /**
-     * @private
-     * @type {Array}
-     */
-    this.mxmldd;
-
-    /**
-     * @private
-     * @type {Array}
-     */
-    this.mxmldp;
-};
-goog.inherits(FlexJSTest, org.apache.flex.core.Application);
-
-
-
-/**
- * @this {FlexJSTest}
- * @expose
- * @param {flash.events.Event} event
- */
-FlexJSTest.prototype.$EH0 = function(event)
-{
-        this.model /* Cast to models.MyModel */.set_labelText("Hello World");
-};
-
-/**
- * @this {FlexJSTest}
- * @return {LazyCollection}
- */
-FlexJSTest.prototype.get_collection = function()
-{
-    return this.collection;
-};
-
-/**
- * @this {FlexJSTest}
- * @param {LazyCollection} value
- */
-FlexJSTest.prototype.set_collection = function(value)
-{
-    if (value != this.collection)
-        this.collection = value;
-};
-
-/**
- * @this {FlexJSTest}
- * @return {HTTPService}
- */
-FlexJSTest.prototype.get_service = function()
-{
-    return this.service;
-};
-
-/**
- * @this {FlexJSTest}
- * @param {HTTPService} value
- */
-FlexJSTest.prototype.set_service = function(value)
-{
-    if (value != this.service)
-        this.service = value;
-};
-
-/**
- * @override
- * @this {FlexJSTest}
- * @return {Array} the Array of UI element descriptors.
- */
-FlexJSTest.prototype.get_MXMLDescriptor = function()
-{
-    if (this.mxmldd == undefined)
-    {
-         /** @type {Array} */
-         var arr = goog.base(this, 'get_MXMLDescriptor');
-         /** @type {Array} */
-         var data = [
-];
-
-         if (arr)
-             this.mxmldd = arr.concat(data);
-         else
-             this.mxmldd = data;
-    }
-    return this.mxmldd;
-};
-
-/**
- * @override
- * @this {FlexJSTest}
- * @return {Array} the Array of UI element descriptors.
- */
-FlexJSTest.prototype.get_MXMLProperties = function()
-{
-    if (this.mxmldp == undefined)
-    {
-         /** @type {Array} */
-         var arr = goog.base(this, 'get_MXMLProperties');
-         /** @type {Array} */
-         var data = [
-5,
-'model',
-false, [models.MyModel, 1, '_id', true, '$ID2', 0, 0, null],
-'valuesImpl',
-false,
-[org.apache.flex.core.SimpleCSSValuesImpl, 1, '_id', true, '$ID0', 0, 0, null],
-'initialView',
-false,
-[MyInitialView, 1, '_id', true, '$ID1', 0, 0, null],
-'controller',
-false,
-[controllers.MyController, 1, '_id', true, '$ID3', 0, 0, null],
-'beads',
-null, [org.apache.flex.net.HTTPService, 2, 'id', true, 'service', 'beads', null, [org.apache.flex.net.dataConverters.LazyCollection, 3, 'inputParser', false, [org.apache.flex.net.JSONInputParser, 1, '_id', true, '$ID6', 0, 0, null], 'itemConverter', false, [StockDataJSONItemConverter, 1, '_id', true, '$ID7', 0, 0, null], 'id', true, 'collection', 0, 0, null], 0, 0, null],
-0,
-1,
-'initialize',
-this.$EH0
-];
-
-         if (arr)
-             this.mxmldp = arr.concat(data);
-         else
-             this.mxmldp = data;
-    }
-    return this.mxmldp;
-};
-

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11.mxml
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11.mxml b/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11.mxml
new file mode 100644
index 0000000..2f3cbbd
--- /dev/null
+++ b/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11.mxml
@@ -0,0 +1,51 @@
+<?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.
+
+-->
+<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+				   xmlns:local="*"
+				   xmlns:basic="library://ns.apache.org/flexjs/basic" 
+				   xmlns:models="models.*" 
+				   xmlns:controllers="controllers.*"
+				   initialize="MyModel(model).labelText='Hello World'"
+				   >
+	<basic:valuesImpl>
+		<basic:SimpleCSSValuesImpl />
+	</basic:valuesImpl>
+	<basic:initialView>
+		<local:MyInitialView />
+	</basic:initialView>
+	<basic:model>
+		<models:MyModel />
+	</basic:model>
+	<basic:controller>
+		<controllers:MyController />
+	</basic:controller>
+    <basic:beads>
+        <basic:HTTPService id="service">
+            <basic:LazyCollection id="collection">
+                <basic:inputParser>
+                    <basic:JSONInputParser />
+                </basic:inputParser>
+                <basic:itemConverter>
+                    <local:StockDataJSONItemConverter />
+                </basic:itemConverter> 
+            </basic:LazyCollection>
+        </basic:HTTPService>
+    </basic:beads>
+</basic:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11_result.js b/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11_result.js
new file mode 100644
index 0000000..9b2b315
--- /dev/null
+++ b/compiler.jx.tests/test-files/flexjs/files/FlexJSTest_2013_03_11_result.js
@@ -0,0 +1,193 @@
+goog.provide('FlexJSTest_2013_03_11');
+
+goog.require('org.apache.flex.core.Application');
+goog.require('org.apache.flex.core.SimpleCSSValuesImpl');
+goog.require('MyInitialView');
+goog.require('models.MyModel');
+goog.require('controllers.MyController');
+goog.require('org.apache.flex.net.HTTPService');
+goog.require('org.apache.flex.net.dataConverters.LazyCollection');
+goog.require('org.apache.flex.net.JSONInputParser');
+goog.require('StockDataJSONItemConverter');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.Application}
+ */
+FlexJSTest_2013_03_11 = function() {
+    goog.base(this);
+
+    /**
+     * @private
+     * @type {org.apache.flex.core.SimpleCSSValuesImpl}
+     */
+    this.$ID0;
+
+    /**
+     * @private
+     * @type {MyInitialView}
+     */
+    this.$ID1;
+
+    /**
+     * @private
+     * @type {models.MyModel}
+     */
+    this.$ID2;
+
+    /**
+     * @private
+     * @type {controllers.MyController}
+     */
+    this.$ID3;
+
+    /**
+     * @private
+     * @type {org.apache.flex.net.HTTPService}
+     */
+    this.service;
+
+    /**
+     * @private
+     * @type {org.apache.flex.net.dataConverters.LazyCollection}
+     */
+    this.collection;
+
+    /**
+     * @private
+     * @type {org.apache.flex.net.JSONInputParser}
+     */
+    this.$ID6;
+
+    /**
+     * @private
+     * @type {StockDataJSONItemConverter}
+     */
+    this.$ID7;
+
+    /**
+     * @private
+     * @type {Array}
+     */
+    this.mxmldd;
+
+    /**
+     * @private
+     * @type {Array}
+     */
+    this.mxmldp;
+};
+goog.inherits(FlexJSTest_2013_03_11, org.apache.flex.core.Application);
+
+/**
+ * @this {FlexJSTest_2013_03_11}
+ * @expose
+ * @param {flash.events.Event} event
+ */
+FlexJSTest_2013_03_11.prototype.$EH0 = function(event)
+{
+        this.model.set_labelText("Hello World");
+};
+
+/**
+ * @this {FlexJSTest_2013_03_11}
+ * @return {org.apache.flex.net.HTTPService}
+ */
+FlexJSTest_2013_03_11.prototype.get_service = function()
+{
+    return this.service;
+};
+
+/**
+ * @this {FlexJSTest_2013_03_11}
+ * @param {org.apache.flex.net.HTTPService} value
+ */
+FlexJSTest_2013_03_11.prototype.set_service = function(value)
+{
+    if (value != this.service)
+        this.service = value;
+};
+
+/**
+ * @this {FlexJSTest_2013_03_11}
+ * @return {org.apache.flex.net.dataConverters.LazyCollection}
+ */
+FlexJSTest_2013_03_11.prototype.get_collection = function()
+{
+    return this.collection;
+};
+
+/**
+ * @this {FlexJSTest_2013_03_11}
+ * @param {org.apache.flex.net.dataConverters.LazyCollection} value
+ */
+FlexJSTest_2013_03_11.prototype.set_collection = function(value)
+{
+    if (value != this.collection)
+        this.collection = value;
+};
+
+/**
+ * @override
+ * @this {FlexJSTest_2013_03_11}
+ * @return {Array} the Array of UI element descriptors.
+ */
+FlexJSTest_2013_03_11.prototype.get_MXMLDescriptor = function()
+{
+    if (this.mxmldd == undefined)
+    {
+         /** @type {Array} */
+         var arr = goog.base(this, 'get_MXMLDescriptor');
+         /** @type {Array} */
+         var data = [
+];
+
+         if (arr)
+             this.mxmldd = arr.concat(data);
+         else
+             this.mxmldd = data;
+    }
+    return this.mxmldd;
+};
+
+/**
+ * @override
+ * @this {FlexJSTest_2013_03_11}
+ * @return {Array} the Array of UI element descriptors.
+ */
+FlexJSTest_2013_03_11.prototype.get_MXMLProperties = function()
+{
+    if (this.mxmldp == undefined)
+    {
+         /** @type {Array} */
+         var arr = goog.base(this, 'get_MXMLProperties');
+         /** @type {Array} */
+         var data = [
+5,
+'model',
+false, [models.MyModel, 1, '_id', true, '$ID2', 0, 0, null],
+'valuesImpl',
+false,
+[org.apache.flex.core.SimpleCSSValuesImpl, 1, '_id', true, '$ID0', 0, 0, null],
+'initialView',
+false,
+[MyInitialView, 1, '_id', true, '$ID1', 0, 0, null],
+'controller',
+false,
+[controllers.MyController, 1, '_id', true, '$ID3', 0, 0, null],
+'beads',
+null, [org.apache.flex.net.HTTPService, 2, 'id', true, 'service', 'beads', null, [org.apache.flex.net.dataConverters.LazyCollection, 3, 'inputParser', false, [org.apache.flex.net.JSONInputParser, 1, '_id', true, '$ID6', 0, 0, null], 'itemConverter', false, [StockDataJSONItemConverter, 1, '_id', true, '$ID7', 0, 0, null], 'id', true, 'collection', 0, 0, null], 0, 0, null],
+0,
+1,
+'initialize',
+this.$EH0
+];
+
+         if (arr)
+             this.mxmldp = arr.concat(data);
+         else
+             this.mxmldp = data;
+    }
+    return this.mxmldp;
+};
+

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013-03-11.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013-03-11.js b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013-03-11.js
deleted file mode 100644
index d4b3103..0000000
--- a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013-03-11.js
+++ /dev/null
@@ -1,582 +0,0 @@
-goog.provide('MyInitialView');
-
-goog.require('org.apache.flex.binding.ConstantBinding');
-goog.require('org.apache.flex.binding.SimpleBinding');
-goog.require('org.apache.flex.core.ViewBase');
-goog.require('org.apache.flex.html.staticControls.CheckBox');
-goog.require('org.apache.flex.html.staticControls.Label');
-goog.require('org.apache.flex.html.staticControls.List');
-goog.require('org.apache.flex.html.staticControls.RadioButton');
-goog.require('org.apache.flex.html.staticControls.TextArea');
-goog.require('org.apache.flex.html.staticControls.TextButton');
-goog.require('org.apache.flex.html.staticControls.TextInput');
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.ViewBase}
- */
-MyInitialView = function() {
-    org.apache.flex.core.ViewBase.call(this);
-
-    /**
-     * @private
-     * @type {org.apache.flex.binding.SimpleBinding}
-     */
-    this.$ID1;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.Label}
-     */
-    this.lbl;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.TextButton}
-     */
-    this.$ID2;
-
-    /**
-     * @private
-     * @type {org.apache.flex.binding.ConstantBinding}
-     */
-    this.$ID4;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.List}
-     */
-    this.list;
-
-    /**
-     * @private
-     * @type {org.apache.flex.binding.SimpleBinding}
-     */
-    this.$ID6;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.TextArea}
-     */
-    this.$ID7;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.TextInput}
-     */
-    this.input;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.TextButton}
-     */
-    this.$ID8;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.CheckBox}
-     */
-    this.checkbox;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID9;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID10;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID11;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID12;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID13;
-
-    /**
-     * @private
-     * @type {org.apache.flex.html.staticControls.RadioButton}
-     */
-    this.$ID14;
-
-    /**
-     * @private
-     * @type {Array}
-     */
-    this.mxmldd;
-
-    /**
-     * @private
-     * @type {Array}
-     */
-    this.mxmldp;
-};
-goog.inherits(MyInitialView, org.apache.flex.core.ViewBase);
-
-
-
-/**
- * @this {MyInitialView}
- * @expose
- * @return {string}
- */
-MyInitialView.prototype.get_symbol = function()
-{
-        return this.list.get_selectedItem() /* as String */;
-};
-
-/**
- * @this {MyInitialView}
- * @expose
- * @return {string}
- */
-MyInitialView.prototype.get_inputText = function()
-{
-        return this.input.get_text();
-};
-
-/**
- * @this {MyInitialView}
- * @expose
- * @param {flash.events.MouseEvent} event
- */
-MyInitialView.prototype.$EH0 = function(event)
-{
-        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["buttonClicked"]));
-};
-
-/**
- * @this {MyInitialView}
- * @expose
- * @param {flash.events.Event} event
- */
-MyInitialView.prototype.$EH1 = function(event)
-{
-        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["listChanged"]));
-};
-
-/**
- * @this {MyInitialView}
- * @expose
- * @param {flash.events.MouseEvent} event
- */
-MyInitialView.prototype.$EH2 = function(event)
-{
-        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["transferClicked"]));
-};
-
-/**
- * @this {MyInitialView}
- * @return {Label}
- */
-MyInitialView.prototype.get_lbl = function()
-{
-    return this.lbl;
-};
-
-/**
- * @this {MyInitialView}
- * @param {Label} value
- */
-MyInitialView.prototype.set_lbl = function(value)
-{
-    if (value != this.lbl)
-        this.lbl = value;
-};
-
-/**
- * @this {MyInitialView}
- * @return {List}
- */
-MyInitialView.prototype.get_list = function()
-{
-    return this.list;
-};
-
-/**
- * @this {MyInitialView}
- * @param {List} value
- */
-MyInitialView.prototype.set_list = function(value)
-{
-    if (value != this.list)
-        this.list = value;
-};
-
-/**
- * @this {MyInitialView}
- * @return {TextInput}
- */
-MyInitialView.prototype.get_input = function()
-{
-    return this.input;
-};
-
-/**
- * @this {MyInitialView}
- * @param {TextInput} value
- */
-MyInitialView.prototype.set_input = function(value)
-{
-    if (value != this.input)
-        this.input = value;
-};
-
-/**
- * @this {MyInitialView}
- * @return {CheckBox}
- */
-MyInitialView.prototype.get_checkbox = function()
-{
-    return this.checkbox;
-};
-
-/**
- * @this {MyInitialView}
- * @param {CheckBox} value
- */
-MyInitialView.prototype.set_checkbox = function(value)
-{
-    if (value != this.checkbox)
-        this.checkbox = value;
-};
-
-/**
- * @override
- * @this {MyInitialView}
- * @return {Array} the Array of UI element descriptors.
- */
-MyInitialView.prototype.get_MXMLDescriptor = function()
-{
-    if (this.mxmldd == undefined)
-    {
-         /** @type {Array} */
-         var arr = goog.base(this, 'get_MXMLDescriptor');
-         /** @type {Array} */
-         var data = [
-org.apache.flex.html.staticControls.Label,
-4,
-'x',
-true,
-100,
-'y',
-true,
-25,
-'id',
-true,
-'lbl',
-'beads',
-null, [org.apache.flex.binding.SimpleBinding, 5, 'eventName', true, 'labelTextChanged', 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'labelText', 'destinationPropertyName', true, 'text', '_id', true, '$ID1', 0, 0, null],
-0,
-0,
-null,
-org.apache.flex.html.staticControls.TextButton,
-4,
-'text',
-true,
-'OK',
-'x',
-true,
-100,
-'y',
-true,
-50,
-'_id',
-true,
-'$ID2',
-0,
-1,
-'click',
-this.$EH0,
-null,
-org.apache.flex.html.staticControls.List,
-6,
-'x',
-true,
-200,
-'y',
-true,
-25,
-'width',
-true,
-100,
-'height',
-true,
-200,
-'id',
-true,
-'list',
-'beads',
-null, [org.apache.flex.binding.ConstantBinding, 4, 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'strings', 'destinationPropertyName', true, 'dataProvider', '_id', true, '$ID4', 0, 0, null],
-0,
-1,
-'change',
-this.$EH1,
-null,
-org.apache.flex.html.staticControls.TextArea,
-6,
-'x',
-true,
-320,
-'y',
-true,
-25,
-'width',
-true,
-150,
-'height',
-true,
-75,
-'_id',
-true,
-'$ID7',
-'beads',
-null, [org.apache.flex.binding.SimpleBinding, 5, 'eventName', true, 'labelTextChanged', 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'labelText', 'destinationPropertyName', true, 'text', '_id', true, '$ID6', 0, 0, null],
-0,
-0,
-null,
-org.apache.flex.html.staticControls.TextInput,
-3,
-'x',
-true,
-320,
-'y',
-true,
-110,
-'id',
-true,
-'input',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.TextButton,
-4,
-'text',
-true,
-'Transfer',
-'x',
-true,
-320,
-'y',
-true,
-138,
-'_id',
-true,
-'$ID8',
-0,
-1,
-'click',
-this.$EH2,
-null,
-org.apache.flex.html.staticControls.CheckBox,
-4,
-'x',
-true,
-320,
-'y',
-true,
-170,
-'text',
-true,
-'Check Me',
-'id',
-true,
-'checkbox',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-6,
-'groupName',
-true,
-'group1',
-'text',
-true,
-'Apples',
-'value',
-true,
-0,
-'x',
-true,
-100,
-'y',
-true,
-130,
-'_id',
-true,
-'$ID9',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-7,
-'groupName',
-true,
-'group1',
-'text',
-true,
-'Oranges',
-'value',
-true,
-1,
-'x',
-true,
-100,
-'y',
-true,
-150,
-'selected',
-true,
-true,
-'_id',
-true,
-'$ID10',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-6,
-'groupName',
-true,
-'group1',
-'text',
-true,
-'Grapes',
-'value',
-true,
-2,
-'x',
-true,
-100,
-'y',
-true,
-170,
-'_id',
-true,
-'$ID11',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-7,
-'groupName',
-true,
-'group2',
-'text',
-true,
-'Red',
-'value',
-true,
-16711680,
-'x',
-true,
-100,
-'y',
-true,
-230,
-'selected',
-true,
-true,
-'_id',
-true,
-'$ID12',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-6,
-'groupName',
-true,
-'group2',
-'text',
-true,
-'Green',
-'value',
-true,
-32768,
-'x',
-true,
-100,
-'y',
-true,
-250,
-'_id',
-true,
-'$ID13',
-0,
-0,
-null,
-org.apache.flex.html.staticControls.RadioButton,
-6,
-'groupName',
-true,
-'group2',
-'text',
-true,
-'Blue',
-'value',
-true,
-255,
-'x',
-true,
-100,
-'y',
-true,
-270,
-'_id',
-true,
-'$ID14',
-0,
-0,
-null
-];
-
-         if (arr)
-             this.mxmldd = arr.concat(data);
-         else
-             this.mxmldd = data;
-    }
-    return this.mxmldd;
-};
-
-/**
- * @override
- * @this {MyInitialView}
- * @return {Array} the Array of UI element descriptors.
- */
-MyInitialView.prototype.get_MXMLProperties = function()
-{
-    if (this.mxmldp == undefined)
-    {
-         /** @type {Array} */
-         var arr = goog.base(this, 'get_MXMLProperties');
-         /** @type {Array} */
-         var data = [
-0,
-0,
-0
-];
-
-         if (arr)
-             this.mxmldp = arr.concat(data);
-         else
-             this.mxmldp = data;
-    }
-    return this.mxmldp;
-};
-

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11.mxml
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11.mxml b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11.mxml
new file mode 100644
index 0000000..3285084
--- /dev/null
+++ b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11.mxml
@@ -0,0 +1,77 @@
+<?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.
+
+-->
+<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+				xmlns:basic="library://ns.apache.org/flexjs/basic" 
+			   >
+    <fx:Script>
+        <![CDATA[            
+            public function get symbol():String
+            {
+                return list.selectedItem as String;
+            }
+            
+            public function get inputText():String
+            {
+            	return input.text;
+            }
+        ]]>
+    </fx:Script>
+	<basic:Label id="lbl" x="100" y="25" >
+		<basic:beads>
+			<basic:SimpleBinding eventName="labelTextChanged"
+								 sourceID="applicationModel"
+								 sourcePropertyName="labelText"
+								 destinationPropertyName="text" />
+		</basic:beads>
+	</basic:Label>
+	<basic:TextButton text="OK" x="100" y="50" click="dispatchEvent(new Event('buttonClicked'))" />
+    <basic:List id="list" x="200" y="25" width="100" height="200" change="dispatchEvent(new Event('listChanged'))">
+        <basic:beads>
+            <basic:ConstantBinding
+                                 sourceID="applicationModel"
+                                 sourcePropertyName="strings"
+                                 destinationPropertyName="dataProvider" />
+        </basic:beads>
+    </basic:List>
+    
+    
+    <basic:TextArea x="320" y="25" width="150" height="75">
+		<basic:beads>
+			<basic:SimpleBinding eventName="labelTextChanged"
+								 sourceID="applicationModel"
+								 sourcePropertyName="labelText"
+								 destinationPropertyName="text" />
+		</basic:beads>
+    </basic:TextArea>
+    <basic:TextInput id="input" x="320" y="110" />
+    <basic:TextButton text="Transfer" x="320" y="138" click="dispatchEvent(new Event('transferClicked'))" />
+    
+    <basic:CheckBox id="checkbox" x="320" y="170" text="Check Me" />
+    
+    <basic:RadioButton groupName="group1" text="Apples" value="0" x="100" y="130" />
+    <basic:RadioButton groupName="group1" text="Oranges" value="1" x="100" y="150" selected="true" />
+    <basic:RadioButton groupName="group1" text="Grapes" value="2" x="100" y="170" />
+    
+    <basic:RadioButton groupName="group2" text="Red" value="red" x="100" y="230" selected="true" />
+    <basic:RadioButton groupName="group2" text="Green" value="green" x="100" y="250" />
+    <basic:RadioButton groupName="group2" text="Blue" value="blue" x="100" y="270"  />
+    
+    
+</basic:ViewBase>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84e269ed/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11_result.js b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11_result.js
new file mode 100644
index 0000000..775cb5c
--- /dev/null
+++ b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_2013_03_11_result.js
@@ -0,0 +1,582 @@
+goog.provide('MyInitialView_2013_03_11');
+
+goog.require('org.apache.flex.binding.ConstantBinding');
+goog.require('org.apache.flex.binding.SimpleBinding');
+goog.require('org.apache.flex.core.ViewBase');
+goog.require('org.apache.flex.html.staticControls.CheckBox');
+goog.require('org.apache.flex.html.staticControls.Label');
+goog.require('org.apache.flex.html.staticControls.List');
+goog.require('org.apache.flex.html.staticControls.RadioButton');
+goog.require('org.apache.flex.html.staticControls.TextArea');
+goog.require('org.apache.flex.html.staticControls.TextButton');
+goog.require('org.apache.flex.html.staticControls.TextInput');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.ViewBase}
+ */
+MyInitialView_2013_03_11 = function() {
+    org.apache.flex.core.ViewBase.call(this);
+
+    /**
+     * @private
+     * @type {org.apache.flex.binding.SimpleBinding}
+     */
+    this.$ID1;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.Label}
+     */
+    this.lbl;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.TextButton}
+     */
+    this.$ID2;
+
+    /**
+     * @private
+     * @type {org.apache.flex.binding.ConstantBinding}
+     */
+    this.$ID4;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.List}
+     */
+    this.list;
+
+    /**
+     * @private
+     * @type {org.apache.flex.binding.SimpleBinding}
+     */
+    this.$ID6;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.TextArea}
+     */
+    this.$ID7;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.TextInput}
+     */
+    this.input;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.TextButton}
+     */
+    this.$ID8;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.CheckBox}
+     */
+    this.checkbox;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID9;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID10;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID11;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID12;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID13;
+
+    /**
+     * @private
+     * @type {org.apache.flex.html.staticControls.RadioButton}
+     */
+    this.$ID14;
+
+    /**
+     * @private
+     * @type {Array}
+     */
+    this.mxmldd;
+
+    /**
+     * @private
+     * @type {Array}
+     */
+    this.mxmldp;
+};
+goog.inherits(MyInitialView_2013_03_11, org.apache.flex.core.ViewBase);
+
+
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @expose
+ * @return {string}
+ */
+MyInitialView_2013_03_11.prototype.get_symbol = function()
+{
+        return this.list.get_selectedItem() /* as String */;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @expose
+ * @return {string}
+ */
+MyInitialView_2013_03_11.prototype.get_inputText = function()
+{
+        return this.input.get_text();
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @expose
+ * @param {flash.events.MouseEvent} event
+ */
+MyInitialView_2013_03_11.prototype.$EH0 = function(event)
+{
+        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["buttonClicked"]));
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @expose
+ * @param {flash.events.Event} event
+ */
+MyInitialView_2013_03_11.prototype.$EH1 = function(event)
+{
+        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["listChanged"]));
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @expose
+ * @param {flash.events.MouseEvent} event
+ */
+MyInitialView_2013_03_11.prototype.$EH2 = function(event)
+{
+        this.dispatchEvent(org.apache.flex.FlexGlobal.newObject(flash.events.Event, ["transferClicked"]));
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @return {Label}
+ */
+MyInitialView_2013_03_11.prototype.get_lbl = function()
+{
+    return this.lbl;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @param {Label} value
+ */
+MyInitialView_2013_03_11.prototype.set_lbl = function(value)
+{
+    if (value != this.lbl)
+        this.lbl = value;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @return {List}
+ */
+MyInitialView_2013_03_11.prototype.get_list = function()
+{
+    return this.list;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @param {List} value
+ */
+MyInitialView_2013_03_11.prototype.set_list = function(value)
+{
+    if (value != this.list)
+        this.list = value;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @return {TextInput}
+ */
+MyInitialView_2013_03_11.prototype.get_input = function()
+{
+    return this.input;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @param {TextInput} value
+ */
+MyInitialView_2013_03_11.prototype.set_input = function(value)
+{
+    if (value != this.input)
+        this.input = value;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @return {CheckBox}
+ */
+MyInitialView_2013_03_11.prototype.get_checkbox = function()
+{
+    return this.checkbox;
+};
+
+/**
+ * @this {MyInitialView_2013_03_11}
+ * @param {CheckBox} value
+ */
+MyInitialView_2013_03_11.prototype.set_checkbox = function(value)
+{
+    if (value != this.checkbox)
+        this.checkbox = value;
+};
+
+/**
+ * @override
+ * @this {MyInitialView_2013_03_11}
+ * @return {Array} the Array of UI element descriptors.
+ */
+MyInitialView_2013_03_11.prototype.get_MXMLDescriptor = function()
+{
+    if (this.mxmldd == undefined)
+    {
+         /** @type {Array} */
+         var arr = goog.base(this, 'get_MXMLDescriptor');
+         /** @type {Array} */
+         var data = [
+org.apache.flex.html.staticControls.Label,
+4,
+'x',
+true,
+100,
+'y',
+true,
+25,
+'id',
+true,
+'lbl',
+'beads',
+null, [org.apache.flex.binding.SimpleBinding, 5, 'eventName', true, 'labelTextChanged', 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'labelText', 'destinationPropertyName', true, 'text', '_id', true, '$ID1', 0, 0, null],
+0,
+0,
+null,
+org.apache.flex.html.staticControls.TextButton,
+4,
+'text',
+true,
+'OK',
+'x',
+true,
+100,
+'y',
+true,
+50,
+'_id',
+true,
+'$ID2',
+0,
+1,
+'click',
+this.$EH0,
+null,
+org.apache.flex.html.staticControls.List,
+6,
+'x',
+true,
+200,
+'y',
+true,
+25,
+'width',
+true,
+100,
+'height',
+true,
+200,
+'id',
+true,
+'list',
+'beads',
+null, [org.apache.flex.binding.ConstantBinding, 4, 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'strings', 'destinationPropertyName', true, 'dataProvider', '_id', true, '$ID4', 0, 0, null],
+0,
+1,
+'change',
+this.$EH1,
+null,
+org.apache.flex.html.staticControls.TextArea,
+6,
+'x',
+true,
+320,
+'y',
+true,
+25,
+'width',
+true,
+150,
+'height',
+true,
+75,
+'_id',
+true,
+'$ID7',
+'beads',
+null, [org.apache.flex.binding.SimpleBinding, 5, 'eventName', true, 'labelTextChanged', 'sourceID', true, 'applicationModel', 'sourcePropertyName', true, 'labelText', 'destinationPropertyName', true, 'text', '_id', true, '$ID6', 0, 0, null],
+0,
+0,
+null,
+org.apache.flex.html.staticControls.TextInput,
+3,
+'x',
+true,
+320,
+'y',
+true,
+110,
+'id',
+true,
+'input',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.TextButton,
+4,
+'text',
+true,
+'Transfer',
+'x',
+true,
+320,
+'y',
+true,
+138,
+'_id',
+true,
+'$ID8',
+0,
+1,
+'click',
+this.$EH2,
+null,
+org.apache.flex.html.staticControls.CheckBox,
+4,
+'x',
+true,
+320,
+'y',
+true,
+170,
+'text',
+true,
+'Check Me',
+'id',
+true,
+'checkbox',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+6,
+'groupName',
+true,
+'group1',
+'text',
+true,
+'Apples',
+'value',
+true,
+0,
+'x',
+true,
+100,
+'y',
+true,
+130,
+'_id',
+true,
+'$ID9',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+7,
+'groupName',
+true,
+'group1',
+'text',
+true,
+'Oranges',
+'value',
+true,
+1,
+'x',
+true,
+100,
+'y',
+true,
+150,
+'selected',
+true,
+true,
+'_id',
+true,
+'$ID10',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+6,
+'groupName',
+true,
+'group1',
+'text',
+true,
+'Grapes',
+'value',
+true,
+2,
+'x',
+true,
+100,
+'y',
+true,
+170,
+'_id',
+true,
+'$ID11',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+7,
+'groupName',
+true,
+'group2',
+'text',
+true,
+'Red',
+'value',
+true,
+16711680,
+'x',
+true,
+100,
+'y',
+true,
+230,
+'selected',
+true,
+true,
+'_id',
+true,
+'$ID12',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+6,
+'groupName',
+true,
+'group2',
+'text',
+true,
+'Green',
+'value',
+true,
+32768,
+'x',
+true,
+100,
+'y',
+true,
+250,
+'_id',
+true,
+'$ID13',
+0,
+0,
+null,
+org.apache.flex.html.staticControls.RadioButton,
+6,
+'groupName',
+true,
+'group2',
+'text',
+true,
+'Blue',
+'value',
+true,
+255,
+'x',
+true,
+100,
+'y',
+true,
+270,
+'_id',
+true,
+'$ID14',
+0,
+0,
+null
+];
+
+         if (arr)
+             this.mxmldd = arr.concat(data);
+         else
+             this.mxmldd = data;
+    }
+    return this.mxmldd;
+};
+
+/**
+ * @override
+ * @this {MyInitialView_2013_03_11}
+ * @return {Array} the Array of UI element descriptors.
+ */
+MyInitialView_2013_03_11.prototype.get_MXMLProperties = function()
+{
+    if (this.mxmldp == undefined)
+    {
+         /** @type {Array} */
+         var arr = goog.base(this, 'get_MXMLProperties');
+         /** @type {Array} */
+         var data = [
+0,
+0,
+0
+];
+
+         if (arr)
+             this.mxmldp = arr.concat(data);
+         else
+             this.mxmldp = data;
+    }
+    return this.mxmldp;
+};
+