Question
copy exact structure, data of textflow to its derieved class
Hi All,
I am writing a class inherited the TextFlow ( public class myclass extends TextFlow {} )
Now in my new class, i want it able to read textFlow from a xml format file. So we could have a tempoary this way:
After file reading completion event, we could have:
tempFlow = TextFilter.importToFlow(e.target.data, TextFilter.TEXT_LAYOUT_FORMAT);
Then now i want my class owns this structure and data. (this = tempFlow)
of course, we can assign this = tempFlow.
Do you know how to do this exact copy?
Thank you for your answer,
Best,
-Hoang Long
I am writing a class inherited the TextFlow ( public class myclass extends TextFlow {} )
Now in my new class, i want it able to read textFlow from a xml format file. So we could have a tempoary this way:
After file reading completion event, we could have:
tempFlow = TextFilter.importToFlow(e.target.data, TextFilter.TEXT_LAYOUT_FORMAT);
Then now i want my class owns this structure and data. (this = tempFlow)
of course, we can assign this = tempFlow.
Do you know how to do this exact copy?
Thank you for your answer,
Best,
-Hoang Long
