 	private function createEmptyTextFlow():TextFlow
 	{
 		var textFlow:TextFlow = new TextFlow();
-		var p:Paragraph = new Paragraph();
-		var span:Span = new Span();
+		var p:ParagraphElement = new ParagraphElement();
+		var span:SpanElement = new SpanElement();
 		textFlow.replaceElements(0, 0, p);
 		p.replaceElements(0, 0, span);
 		return textFlow;

     */
    private function addListeners(textFlow:TextFlow):void
    {
        textFlow.addEventListener(
            ModelChangeEvent.MODEL_CHANGE, textFlow_modelChangeHandler);

        textFlow.selectionManager.addEventListener(
            SelectionChangedEvent.SELECTION_CHANGED,
            editManager_selectionChangeHandler);

        newEvent.operation = event.operation;
        dispatchEvent(newEvent);
    }
}

}
