         }
 
         var containerController:IContainerController =
-            textFlow.displayController.getContainerControllerAt(0);
+            textFlow.flowComposer.getContainerControllerAt(0);
         
         if (horizontalScrollPositionChanged)
         {

    private function textFlow_scrollHandler(event:Event):void
    {
        var containerController:IContainerController =
            textFlow.displayController.getContainerControllerAt(0);

        var newHorizontalScrollPosition:Number =
            containerController.horizontalScrollPosition;

        
        // Tell the TextFlow to generate TextLines within the
        // rectangle (0, 0, unscaledWidth, unscaledHeight).
        var displayController:IFlowComposer = textFlow.flowComposer;
        var containerController:IContainerController =
            displayController.getContainerControllerAt(0);
        containerController.updateComposeSize(unscaledWidth, unscaledHeight);
