             }
             else
             {
-                addEventListener(Event.ENTER_FRAME, stateEnterFrameHandler, false, 0, true);
+                addEventListener(Event.ENTER_FRAME, transitionEnterFrameHandler, false, 0, true);
                 
                 // If the new transition is starting inside the current transition, start from
                 // the current frame location.

    //  Public variables
    //
    //--------------------------------------------------------------------------
    
    //----------------------------------
    //  x

    
    private var oldY:Number;
    
    private var oldWidth:Number;
    
    private var oldHeight:Number;
