flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [15/17] git commit: [flex-asjs] [refs/heads/develop] - need to set styleparent
Date Mon, 06 Oct 2014 21:29:34 GMT
need to set styleparent


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

Branch: refs/heads/develop
Commit: 376be30bf473669511dc7bb45a1e3d578b004e44
Parents: b8ef431
Author: Alex Harui <aharui@apache.org>
Authored: Mon Oct 6 14:04:54 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Oct 6 14:04:54 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/ImageAndTextButtonView.as   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/376be30b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
index 492f6f8..988b293 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
@@ -103,6 +103,10 @@ package org.apache.flex.html.beads
 			setupBackground(upSprite, upTextField, 0xCCCCCC);
 			setupBackground(overSprite, overTextField, 0xFFCCCC, "hover");
 			setupBackground(downSprite, downTextField, 0x808080, "active");
+            upTextField.styleParent = value;
+            downTextField.styleParent = value;
+            overTextField.styleParent = value;
+
 		}
 		
 		private var upSprite:Sprite;
@@ -138,7 +142,7 @@ package org.apache.flex.html.beads
 		/**
 		 * @private
 		 */
-		private function setupBackground(sprite:Sprite, textField:TextField, color:uint, state:String
= null):void
+		private function setupBackground(sprite:Sprite, textField:CSSTextField, color:uint, state:String
= null):void
 		{
 			var backgroundImage:Object = image;
 			if (backgroundImage)


Mime
View raw message