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:20 UTC
[2/3] git commit: [flex-asjs] [refs/heads/develop] - Set currentState
in init as a workaround
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