You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/07/27 19:20:01 UTC

git commit: [flex-asjs] [refs/heads/refactor-sprite] - refactor now builds without errors

Repository: flex-asjs
Updated Branches:
  refs/heads/refactor-sprite f508d7dc9 -> be2a507cd


refactor now builds without errors


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

Branch: refs/heads/refactor-sprite
Commit: be2a507cd30969687d0c54c6cea7582c7192dca6
Parents: f508d7d
Author: Harbs <ha...@in-tools.com>
Authored: Wed Jul 27 22:19:54 2016 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Jul 27 22:19:54 2016 +0300

----------------------------------------------------------------------
 .../flex/maps/google/beads/GoogleMapView.as     |  2 +-
 .../flex/mobile/beads/MobileWebBrowserView.as   | 20 ++++++++++----------
 2 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/be2a507c/frameworks/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/GoogleMapView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/GoogleMapView.as b/frameworks/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/GoogleMapView.as
index b414c2f..733925d 100644
--- a/frameworks/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/GoogleMapView.as
+++ b/frameworks/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/GoogleMapView.as
@@ -453,7 +453,7 @@ package org.apache.flex.maps.google.beads
 			model.addEventListener("zoomChanged", handleZoomChange);
 			model.addEventListener("currentLocationChanged", handleCurrentLocationChange);
 
-			(_strand as UIBase).addChild(_loader);
+			(_strand as UIBase).sprite.addChild(_loader);
 
 			var token:String = GoogleMap(_strand).token;
 			if (token)

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/be2a507c/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/MobileWebBrowserView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/MobileWebBrowserView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/MobileWebBrowserView.as
index 49a3d7e..a75e0cc 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/MobileWebBrowserView.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/MobileWebBrowserView.as
@@ -73,9 +73,9 @@ package org.apache.flex.mobile.beads
 		/**
 		 * @private
 		 */
-		public function get host():IUIBase
+		public function get host():UIBase
 		{
-			return _strand as IUIBase;
+			return _strand as UIBase;
 		}
 
 		/**
@@ -90,16 +90,16 @@ package org.apache.flex.mobile.beads
 		{
 			_strand = value;
 
-			(host as UIBase).addEventListener("widthChanged", handleSizeChange);
-			(host as UIBase).addEventListener("heightChanged", handleSizeChange);
+			host.addEventListener("widthChanged", handleSizeChange);
+			host.addEventListener("heightChanged", handleSizeChange);
 
-			var model:IEventDispatcher = (host as UIBase).model as IEventDispatcher;
+			var model:IEventDispatcher = host.model as IEventDispatcher;
 			model.addEventListener("urlChanged", loadPage);
 
-			stageWebView.stage = (host as UIBase).stage;
+			stageWebView.stage = host.sprite.stage;
 			
 			var hostOrigin:Point = new Point(0,0);
-			var hostPosition:Point = (host as UIBase).localToGlobal(hostOrigin);
+			var hostPosition:Point = host.sprite.localToGlobal(hostOrigin);
 			stageWebView.viewPort = new Rectangle( hostPosition.x, hostPosition.y, host.width, host.height );
 		}
 
@@ -108,7 +108,7 @@ package org.apache.flex.mobile.beads
 		 */
 		private function loadPage(event:org.apache.flex.events.Event):void
 		{
-			var model:WebBrowserModel = (host as UIBase).model as WebBrowserModel;
+			var model:WebBrowserModel = host.model as WebBrowserModel;
 			stageWebView.loadURL(model.url);
 		}
 
@@ -118,7 +118,7 @@ package org.apache.flex.mobile.beads
 		private function handleSizeChange(event:org.apache.flex.events.Event):void
 		{
 			var hostOrigin:Point = new Point(0,0);
-			var hostPosition:Point = (host as UIBase).localToGlobal(hostOrigin);
+			var hostPosition:Point = host.sprite.localToGlobal(hostOrigin);
 			stageWebView.viewPort = new Rectangle( hostPosition.x, hostPosition.y, host.width, host.height );
 		}
 
@@ -127,7 +127,7 @@ package org.apache.flex.mobile.beads
 		 */
 		private function handleLocationChange(event:flash.events.Event):void
 		{
-			var model:WebBrowserModel = (host as UIBase).model as WebBrowserModel;
+			var model:WebBrowserModel = host.model as WebBrowserModel;
 			model.setURL(stageWebView.location);
 			host.dispatchEvent(new org.apache.flex.events.Event("locationChanged"));
 		}