I'm new to Flex ,creating a demo, and appreciate any help
I'm creating multiple Model Objects in an Input Accordion
I am then 1) creating a HTML formatted string of text for
(that's used as visual display for user),
2) programmably putting this string as HTMLText into a
(to maintain formatting),
3) adding the TextArea to a VBox display using addChild
(also saving the model object properties in a separate
All above seems to work.
I now want to click to select a TextArea childObject in the
VBox, get an Index
and use the index - to either delete or edit the object.
So, how do I determine what VBox childObject was selected
There is no "selectedItem" type function in VBox objects.
Issue seems to be that VBox itself has no ArrayCollection of
even though I can add children programmatically.
If I use a List object (does have collection), I loose the
HTML formatting of the text (?options?)
I could use a Repeater within the VBox, but can update only
thru a bindable
dataProvider - and I don't know how to update
programmatically as I'm
doing now by programmatically adding new TextArea's to the
1. use List object and learn how to format text.
2. create an ArrayCollection of text and use as provider to a
Thanks for your reply - I've re-architected to use repeater
around a text area inside a vBox,
and it is displaying well.
But, still cannot seem to click on one of the text areas to
identify it for editing/delete.
Dont see a selectedItem and cannot seem to find a way to get
the index for the clicked
Currently trying to define a cursor, with using sort,
cursor.remove, etc, but not certain
if this works outside of a list?