InlineGraphicElements, ContainerController and SimpleCompose
Using Hero (4.5.0.17689)
I've got to a point where I can parse custom XML tags using my own (or rather, extended) HtmlImporter class, but I've run into an error with InlineGraphicElements.
The InlineGraphicElements are correctly parsed (as far as I can tell) and inserted into the flow. I added a StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE event listener to the flow, which then calls textFlow.flowComposer.updateAllControllers(). At this point I get a run-time error at line 1754 in ContainerController.as.
The function in this class is attempting to cast _shapeChildren[0].userData (which is wildcard type) as a TextFlowLine, but the data type is contains is an integer. I've tracked this property assignment to line 151 in the function endLine() in the elusive class SimpleCompose.as, where it overwrites a TextFlowLine object.
I'm not sure whether this is related in some way to https://bugs.adobe.com/jira/browse/SDK-22792.
I'm also using a Configuration object, which contains an inlineGraphicResolverFunction, when converting to a flow with TextConverter.importToFlow(source, myFormat, myConfiguration).
Am I going about this the wrong way? I'm thinking so since I haven't found mention of any other similar problem. Many thanks.
