     {
         // Adjust the partition indexes
         // before the "removed" event is dispatched.
-        noTopMostIndex--;
+        noTopMostIndex = noTopMostIndex - 1;
 
         return rawChildren_removeChild(child);
     }

    {
        // Adjust the partition indexes before the 
        // "added" event is dispatched.
        noTopMostIndex++;

        var oldParent:DisplayObjectContainer = child.parent;
        if (oldParent)

        }

        // Add the application as child 1.
        noTopMostIndex = noTopMostIndex + 1;
        super.addChildAt(DisplayObject(app), 1);

        CONFIG::performanceInstrumentation
