flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: Add addToParent to Button
Date Wed, 03 Apr 2013 04:48:54 GMT
Add addToParent to Button


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

Branch: refs/heads/develop
Commit: 51ddf0c1b43bcbaa9d2e1f00fc5e8f7a26841b18
Parents: 355fdd6
Author: Alex Harui <aharui@apache.org>
Authored: Tue Apr 2 21:24:05 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Apr 2 21:25:12 2013 -0700

----------------------------------------------------------------------
 .../org/apache/flex/html/staticControls/Button.as  |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/51ddf0c1/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as b/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
index 04729c8..1077526 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
@@ -19,6 +19,7 @@
 package org.apache.flex.html.staticControls
 {
 	import flash.display.DisplayObject;
+	import flash.display.DisplayObjectContainer;
 	import flash.display.SimpleButton;
 	import flash.events.MouseEvent;
 	
@@ -157,5 +158,10 @@ package org.apache.flex.html.staticControls
 			_width = $width;
 			_height = $height;
 		}
+		
+		public function addToParent(p:DisplayObjectContainer):void
+		{
+			p.addChild(this);
+		}
 	}
 }
\ No newline at end of file


Mime
View raw message