I am trying to duplicate a flex component at runtime.
For example, if I have this
mx: Button label = "btn" id = "btn" click = "handleClick (event)" / ">
i should be able to call the DuplicateComponent () function, and it should return the user interface component to me in the same way as above, including the listen button for events.
Can someone help me? thanks in advance
source
share