flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [18/50] [abbrv] git commit: [flex-asjs] [refs/heads/spark] - - Use org.apache.flex.events.MouseEvent instead of flash.events.Event - Fix ant build of FlexWebsiteStatsViewer
Date Wed, 04 May 2016 18:14:04 GMT
- Use org.apache.flex.events.MouseEvent instead of flash.events.Event
- Fix ant build of FlexWebsiteStatsViewer


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

Branch: refs/heads/spark
Commit: 18a1487fb87005678da3380b41336588b195967b
Parents: cf8933e
Author: Piotr Zarzycki <Piotr Zarzycki>
Authored: Mon Apr 18 23:20:07 2016 +0200
Committer: Piotr Zarzycki <Piotr Zarzycki>
Committed: Mon Apr 18 23:20:07 2016 +0200

----------------------------------------------------------------------
 .../flexjs/FlexWebsiteStatsViewer/build.xml     |  4 +--
 .../FlexWebsiteStatsViewer/src/StatsView.mxml   | 26 +++++++++-----------
 2 files changed, 13 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/18a1487f/examples/flexjs/FlexWebsiteStatsViewer/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexWebsiteStatsViewer/build.xml b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
index c8479ae..99f07fd 100644
--- a/examples/flexjs/FlexWebsiteStatsViewer/build.xml
+++ b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
@@ -19,9 +19,9 @@
 -->
 
 
-<project name="chartexample" default="main" basedir=".">
+<project name="FlexWebsiteStatsViewer" default="main" basedir=".">
     <property name="FLEXJS_HOME" location="../../.."/>
-    <property name="example" value="ChartExample" />
+    <property name="example" value="FlexWebsiteStatsViewer" />
     
     <property file="${FLEXJS_HOME}/env.properties"/>
     <property environment="env"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/18a1487f/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml b/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml
index 3d67cbf..d3b090d 100644
--- a/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml
+++ b/examples/flexjs/FlexWebsiteStatsViewer/src/StatsView.mxml
@@ -19,24 +19,20 @@ limitations under the License.
 -->
 <js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
 				xmlns:js="library://ns.apache.org/flexjs/basic"
-				xmlns:local="*" 
-				xmlns:models="models.*"
                 initComplete="testit()"
 				>
 	<fx:Script>
 		<![CDATA[
-			
-			private function testit():void
-			{
-				trace();
-			}
-			
-			private function refreshBtnClick(event:Event):void
-			{
-				var e:Event = new Event("refresh",true);
-				dispatchEvent(e);
-			}
-			
+		import org.apache.flex.events.MouseEvent;
+
+		private function testit():void {
+			trace();
+		}
+
+		private function onRefreshBtnClick(event:MouseEvent):void {
+			var e:Event = new Event("refresh", true);
+			dispatchEvent(e);
+		}
 		]]>
 	</fx:Script>
 	
@@ -53,7 +49,7 @@ limitations under the License.
 	
 	
 	<js:Label text="Number of users on flex.apache.org for last 30 days" x="10" y="10" />
-	<js:TextButton id="refreshButton" text="Refresh" x="300" y="10" click="refreshBtnClick(event)"/>

+	<js:TextButton id="refreshButton" text="Refresh" x="300" y="10" click="onRefreshBtnClick(event)"/>
 	
 	<js:ColumnChart id="columnChart" x="40" y="40" width="2000" height="768" className="AllCharts">
 		<js:beads>


Mime
View raw message