You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2014/10/19 11:31:19 UTC
[1/3] git commit: [flex-asjs] [refs/heads/develop] - Dispatch
initBindings event, mirroring the AS version
Repository: flex-asjs
Updated Branches:
refs/heads/develop c4d292fb6 -> 38f906b83
Dispatch initBindings event, mirroring the AS version
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2fa2816a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2fa2816a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2fa2816a
Branch: refs/heads/develop
Commit: 2fa2816a048b46d05457b8c9b361e7206dd71493
Parents: c4d292f
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Oct 19 02:26:27 2014 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Oct 19 02:26:27 2014 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2fa2816a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
index 91ad3bc..5df912a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -60,6 +60,7 @@ org.apache.flex.core.ContainerBase.prototype.addedToParent = function() {
org.apache.flex.core.ContainerBase.base(this, 'addedToParent');
org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this, this, this.get_MXMLDescriptor());
+ this.dispatchEvent('initBindings');
this.dispatchEvent('initComplete');
this.dispatchEvent('childrenAdded');
};
[3/3] git commit: [flex-asjs] [refs/heads/develop] - Add
initialStateHandler_ method and corresponding event
Posted by bi...@apache.org.
Add initialStateHandler_ method and corresponding event
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/38f906b8
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/38f906b8
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/38f906b8
Branch: refs/heads/develop
Commit: 38f906b838cf8d22ce5a20079e7ad47bfbc69b41
Parents: 31d586d
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Oct 19 02:29:56 2014 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Oct 19 02:29:56 2014 -0700
----------------------------------------------------------------------
.../FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/38f906b8/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
index eb6d243..cfe550d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -67,10 +67,20 @@ org.apache.flex.core.SimpleStatesImpl.prototype.set_strand =
if (this.strand_.addEventListener) {
this.strand_.addEventListener('currentStateChanged',
goog.bind(this.stateChangeHandler_, this));
+ this.strand_.addEventListener('initComplete',
+ goog.bind(this.initialStateHandler_, this));
}
}
};
+/**
+ * @private
+ * @param {Object} event The event.
+ */
+org.apache.flex.core.SimpleStatesImpl.prototype.initialStateHandler_ =
+ function(event) {
+ this.dispatchEvent(new org.apache.flex.events.ValueChangeEvent('currentStateChanged', null, this.strand_.get_currentState()));
+};
/**
* @private
[2/3] git commit: [flex-asjs] [refs/heads/develop] - Set currentState
in init as a workaround
Posted by bi...@apache.org.
Set currentState in init as a workaround
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/31d586de
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/31d586de
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/31d586de
Branch: refs/heads/develop
Commit: 31d586de71bc122df89c86ac3debedc5e3808757
Parents: 2fa2816
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Sun Oct 19 02:28:46 2014 -0700
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Sun Oct 19 02:29:23 2014 -0700
----------------------------------------------------------------------
examples/FlexJSTest_SVG/src/SkinsView.mxml | 64 ++++++++++++++-----------
1 file changed, 35 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31d586de/examples/FlexJSTest_SVG/src/SkinsView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_SVG/src/SkinsView.mxml b/examples/FlexJSTest_SVG/src/SkinsView.mxml
index eb5b0e4..25d6115 100644
--- a/examples/FlexJSTest_SVG/src/SkinsView.mxml
+++ b/examples/FlexJSTest_SVG/src/SkinsView.mxml
@@ -30,6 +30,7 @@ limitations under the License.
protected function viewbase1_initCompleteHandler(event:org.apache.flex.events.Event):void
{
//this.mouseChildren = false;
+ currentState = "up";
this.addEventListener(org.apache.flex.events.MouseEvent.MOUSE_DOWN, handleMouseDown);
this.addEventListener(org.apache.flex.events.MouseEvent.MOUSE_UP, handleMouseUp);
this.addEventListener(org.apache.flex.events.MouseEvent.MOUSE_OVER, handleMouseOver);
@@ -64,34 +65,39 @@ limitations under the License.
<mx:State name="down"/>
<mx:State name="disabled"/>
</basic:states>
-
- <basic:Label text="MyButton" x="20" y="5" includeIn="{[up,over,down,disabled]}" />
-
- <basic:Rect id="fill_up" width="100" height="30" includeIn="up" >
- <basic:stroke>
- <basic:SolidColorStroke alpha="1.0" color="#000000" />
- </basic:stroke>
- <basic:fill>
- <basic:SolidColor color="#1ABC9C" alpha="1.0" />
- </basic:fill>
- </basic:Rect>
-
- <basic:Rect id="fill_over" width="100" height="30" includeIn="over">
- <basic:stroke>
- <basic:SolidColorStroke alpha="1.0" color="#000000" />
- </basic:stroke>
- <basic:fill>
- <basic:SolidColor color="#48C9B0" alpha="1.0" />
- </basic:fill>
- </basic:Rect>
-
- <basic:Rect id="fill_down" width="100" height="30" includeIn="down">
- <basic:stroke>
- <basic:SolidColorStroke alpha="1.0" color="#000000" />
- </basic:stroke>
- <basic:fill>
- <basic:SolidColor color="#16A085" alpha="1.0" />
- </basic:fill>
- </basic:Rect>
+ <!--<basic:beads>
+ <basic:ViewBaseDataBinding />
+ </basic:beads>-->
+ <basic:Container x="0" y="0" >
+ <basic:Label text="MyButton" x="20" y="5" includeIn="{[up,down,over,disabled]}" />
+
+ <basic:Rect id="fill_up" width="100" height="30" includeIn="up" >
+ <basic:stroke>
+ <basic:SolidColorStroke alpha="1.0" color="#000000" />
+ </basic:stroke>
+ <basic:fill>
+ <basic:SolidColor color="#1ABC9C" alpha="1.0" />
+ </basic:fill>
+ </basic:Rect>
+
+ <basic:Rect id="fill_over" width="100" height="30" includeIn="over">
+ <basic:stroke>
+ <basic:SolidColorStroke alpha="1.0" color="#000000" />
+ </basic:stroke>
+ <basic:fill>
+ <basic:SolidColor color="#48C9B0" alpha="1.0" />
+ </basic:fill>
+ </basic:Rect>
+
+ <basic:Rect id="fill_down" width="100" height="30" includeIn="down">
+ <basic:stroke>
+ <basic:SolidColorStroke alpha="1.0" color="#000000" />
+ </basic:stroke>
+ <basic:fill>
+ <basic:SolidColor color="#16A085" alpha="1.0" />
+ </basic:fill>
+ </basic:Rect>
+
+ </basic:Container>
</basic:ViewBase>
\ No newline at end of file