royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alinak...@apache.org
Subject [royale-asjs] branch feature/MXRoyale updated: Update Container.as
Date Wed, 13 Jun 2018 05:13:09 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new e0424bc  Update Container.as
e0424bc is described below

commit e0424bcee093bf9283ddb406d982e9340d88b5b2
Author: alinakazi <ALINAKAZI1990@GMAIL.COM>
AuthorDate: Wed Jun 13 10:12:57 2018 +0500

    Update Container.as
---
 .../MXRoyale/src/main/royale/mx/core/Container.as       | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

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 44aadce..1482ceb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -1265,7 +1265,22 @@ public class Container extends UIComponent
             removeElementAt(i);
         }
     }
-    
+     /**
+     *  Removes all children from the child list of this container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function removeAllChildren():void
+    {
+        while (numChildren > 0)
+        {
+            removeChildAt(0);
+        }
+    }
+
     /**
      *  Removes a child DisplayObject from the child list of this Container
      *  at the specified index.

-- 
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.

Mime
View raw message