flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [2/2] git commit: [flex-asjs] - update createjs sample with checkbox control. button event updates selected property to see control change externaly.
Date Mon, 29 Apr 2013 22:55:16 GMT
update createjs sample with checkbox control. button event updates selected property to see
control change externaly.


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

Branch: refs/heads/feature/createjs-checkbox
Commit: a898de058820754aabdcdcd49b23a888551d2331
Parents: 11360ac
Author: Carlos Rovira <carlos.rovira@gmail.com>
Authored: Tue Apr 30 00:54:43 2013 +0200
Committer: Carlos Rovira <carlos.rovira@gmail.com>
Committed: Tue Apr 30 00:54:43 2013 +0200

----------------------------------------------------------------------
 .../FlexJSTest_createjs/src/MyInitialView.mxml     |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a898de05/examples/FlexJSTest_createjs/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_createjs/src/MyInitialView.mxml b/examples/FlexJSTest_createjs/src/MyInitialView.mxml
index 2e7a9b2..d972b99 100644
--- a/examples/FlexJSTest_createjs/src/MyInitialView.mxml
+++ b/examples/FlexJSTest_createjs/src/MyInitialView.mxml
@@ -35,6 +35,7 @@ limitations under the License.
 			{
 				dispatchEvent( new org.apache.flex.events.Event("pushme2Clicked") );
 				
+				check1.selected = !check1.selected;
 			}
 		]]>
 	</fx:Script>
@@ -50,6 +51,8 @@ limitations under the License.
 								 destinationPropertyName="text" />
 		</createjs:beads>
 	</createjs:Label>
-	<createjs:TextButton x="350" y="225" text="Change Label" click="changeLabel()" />
-
+	<createjs:TextButton x="350" y="225" text="Change Label" click="changeLabel()"/>
+	
+	<createjs:CheckBox id="check1" x="10" y="10" text="Check Me" selected="true"/>
+	
 </createjs:ViewBase>
\ No newline at end of file


Mime
View raw message