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/develop Commit: a898de058820754aabdcdcd49b23a888551d2331 Parents: 11360ac Author: Carlos Rovira <carlos.rov...@gmail.com> Authored: Tue Apr 30 00:54:43 2013 +0200 Committer: Carlos Rovira <carlos.rov...@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