I have a box (lets call it 'xBox') on the stage that contains
a couple comboboxes and buttons.
One of the buttons (labelled 'add new search feature') when
clicked will duplicate the whole box 'xbox' and give it a new
unique name that can be referenced. So, now there would be two
boxes on the stage that look exactly the same.
You can click the 'add new search feature' button repeatedly
and each time a new 'xbox' will appear at the bottom below the
previously created 'xbox's....
I have played with states some, but am unsure how that would
apply to an infinite amount of new 'xbox's being created.
Is this possible? Any help is greatly appreciated.
Okay, what you want to do is, make a custom component out of
the xBox. Then in your main application you wan to make an array of
objects. Every time the button (to add xBoxes) is clicked add one
to the array, then also add it to the main app's list of children.
You want to add it to the array so that you can still reference it.
Try something like this: