royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alinak...@apache.org
Subject [royale-asjs] branch develop updated: Update Container.as getChildren() Added
Date Thu, 04 Oct 2018 07:53:00 GMT
This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 239e2fe  Update Container.as  getChildren() Added
239e2fe is described below

commit 239e2fe565e0533e9b81ed4ce8358f12a5726830
Author: alinakazi <ALINAKAZI1990@GMAIL.COM>
AuthorDate: Thu Oct 4 12:52:44 2018 +0500

    Update Container.as  getChildren() Added
---
 .../MXRoyale/src/main/royale/mx/core/Container.as  | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index eafa3de..e87b3aa 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -1337,6 +1337,35 @@ public class Container extends UIComponent
 
         //setActualCreationPolicies(value);
     }
+    /**
+     *  Returns an Array of DisplayObject objects consisting of the content children 
+     *  of the container.
+     *  This array does <b>not</b> include the DisplayObjects that implement

+     *  the container's display elements, such as its border and 
+     *  the background image.
+     *
+     *  @return Array of DisplayObject objects consisting of the content children 
+     *  of the container.
+     * 
+     *  @see #rawChildren
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    public function getChildren():Array
+    {
+        var results:Array = [];
+        
+        var n:int = numChildren;
+        for (var i:int = 0; i < n; i++)
+        {
+            results.push(getChildAt(i));
+        }
+
+        return results;
+    }
 
 }
 


Mime
View raw message