flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/4] git commit: [flex-asjs] - add initComplete event sort of like creationComplete in current Flex SDK
Date Tue, 30 Apr 2013 14:58:01 GMT
add initComplete event sort of like creationComplete in current Flex SDK


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

Branch: refs/heads/develop
Commit: fe54045f9ea16b9846f47985312375edd920ea6e
Parents: 81a2aab
Author: Alex Harui <aharui@apache.org>
Authored: Tue Apr 30 07:42:43 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Apr 30 07:42:43 2013 -0700

----------------------------------------------------------------------
 frameworks/as/src/org/apache/flex/core/ViewBase.as |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fe54045f/frameworks/as/src/org/apache/flex/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/ViewBase.as b/frameworks/as/src/org/apache/flex/core/ViewBase.as
index 91f569e..f9b96f1 100644
--- a/frameworks/as/src/org/apache/flex/core/ViewBase.as
+++ b/frameworks/as/src/org/apache/flex/core/ViewBase.as
@@ -22,6 +22,7 @@ package org.apache.flex.core
 	import org.apache.flex.events.Event;	
 	import org.apache.flex.utils.MXMLDataInterpreter;
 
+	[Event(name="initComplete", type="org.apache.flex.events.Event")]
 	[DefaultProperty("mxmlContent")]
 	public class ViewBase extends UIBase
 	{
@@ -40,6 +41,8 @@ package org.apache.flex.core
 			
 			MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
 			MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor);
+			
+			dispatchEvent(new Event("initComplete"))
 		}
 		
 		public function get MXMLDescriptor():Array


Mime
View raw message