flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Added Slider and NumericStepper to the example.
Date Tue, 06 Aug 2013 14:01:31 GMT
Updated Branches:
  refs/heads/develop 072c0d196 -> 01f0f3470


Added Slider and NumericStepper to the example.


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

Branch: refs/heads/develop
Commit: 01f0f34707be7e8a2bf8ad5ee2344bfbc5778388
Parents: 072c0d1
Author: Peter Ent <pent@apache.org>
Authored: Tue Aug 6 10:01:19 2013 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Aug 6 10:01:19 2013 -0400

----------------------------------------------------------------------
 examples/FlexJSTest_Panel/src/MyInitialView.mxml | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01f0f347/examples/FlexJSTest_Panel/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_Panel/src/MyInitialView.mxml b/examples/FlexJSTest_Panel/src/MyInitialView.mxml
index e517c17..48d3b1b 100644
--- a/examples/FlexJSTest_Panel/src/MyInitialView.mxml
+++ b/examples/FlexJSTest_Panel/src/MyInitialView.mxml
@@ -47,6 +47,11 @@ limitations under the License.
 			{
 				SimpleAlert.show("A Simple Alert", this);
 			}
+			
+			private function sliderChanged(control:Object):void
+			{
+				slideMe.text = "Slider: "+String(control.value);
+			}
 		]]>
     </fx:Script>
 
@@ -116,6 +121,12 @@ limitations under the License.
 							  valueChanged="spinnerChanged(stepper)" 
 							  className="numStepper"
 							  stepSize="10"/>
+		<basic:Label id="slideMe" />
+		<basic:Slider id="slider"
+					  valueChanged="sliderChanged(slider)"
+					  minimum="20"
+					  maximum="80"
+					  stepSize="5" />
 	</basic:Panel>
 
 	


Mime
View raw message