flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/3] git commit: Try to change app to workaround FalconJS bug
Date Mon, 25 Mar 2013 19:39:59 GMT
Updated Branches:
  refs/heads/develop b7325ceb7 -> 146dc0ac4


Try to change app to workaround FalconJS bug


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

Branch: refs/heads/develop
Commit: dfa5aaf4946f14f39add248e2fed4e5eab5c3df2
Parents: b7325ce
Author: Alex Harui <aharui@apache.org>
Authored: Mon Mar 25 12:38:38 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Mar 25 12:38:38 2013 -0700

----------------------------------------------------------------------
 examples/FlexJSTest_again/src/MyInitialView.mxml |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dfa5aaf4/examples/FlexJSTest_again/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_again/src/MyInitialView.mxml b/examples/FlexJSTest_again/src/MyInitialView.mxml
index 22ce66b..246918e 100644
--- a/examples/FlexJSTest_again/src/MyInitialView.mxml
+++ b/examples/FlexJSTest_again/src/MyInitialView.mxml
@@ -26,7 +26,7 @@ limitations under the License.
 			import org.apache.flex.events.Event;
 			import org.apache.flex.utils.Timer;
 			
-			public var timer:org.apache.flex.utils.Timer = new org.apache.flex.utils.Timer(1000);
+			private var timer:org.apache.flex.utils.Timer;
 			
             public function get symbol():String
             {
@@ -38,6 +38,13 @@ limitations under the License.
             	return input.text;
             }
 			
+			public function startTimer():void
+			{
+				timer = new org.apache.flex.utils.Timer(1000);
+				timer.addEventListener('timer', timerHandler);
+				timer.start()				
+			}
+			
 			public function timerHandler(event:org.apache.flex.events.Event):void
 			{
 				timerLabel.text = timer.currentCount.toString();	
@@ -61,7 +68,7 @@ limitations under the License.
                                  destinationPropertyName="dataProvider" />
         </basic:beads>
     </basic:List>
-	<basic:TextButton text="Start Timer" x="100" y="75" click="timer.addEventListener('timer',
timerHandler);timer.start()" />
+	<basic:TextButton text="Start Timer" x="100" y="75" click="startTimer()" />
 	<basic:TextButton text="Stop Timer" x="100" y="100" click="timer.removeEventListener('timer',
timerHandler);timer.stop()" />
 	<basic:Label id="timerLabel" x="100" y="125" />
     


Mime
View raw message