1 Reply Latest reply on Apr 1, 2010 11:03 AM by Flex harUI

    Get Children By Name That is Contained in a Container

    alice_data Level 1

      Hi,

       

        Has anyone tried to remove the children that has the names that contains certain string in a single container?

       

        I have a container here called vbox, and it contains several children that may have the name that begins with "ui". Is it possible that I can delete the children that is in this container that contains ui in one go? If yes, what is the syntax?

       

        Here is what I have, which is not working by the way:

       

        vbox.removeChild(vbox.contains(ui));
                    trace(vbox.contains(ui));          

       

      Is it possible to achieve what I want to do here?
      Thanks for your help.

       

      Alice