                     {
                         var sizeSet:Boolean = false;
                         
-                            if (holder.contentLoaderInfo.contentType == "application/x-shockwave-flash")
+                        if (holder.contentLoaderInfo.contentType == "application/x-shockwave-flash")
                         {
-                                                        if (childAllowsParent)
-                                                        {
-                                                                if (holder.content is IFlexDisplayObject)
-                                                                {
-                                                                        IFlexDisplayObject(holder.content).setActualSize(w, h);
-                                                                        sizeSet = true;
-                                                                }
-                                                        }
-                                                        
-                                                        if (!sizeSet) 
-                                                        {
-                                                                if (swfBridge)
-                                                                {
-                                                                        swfBridge.dispatchEvent(new SWFBridgeRequest(SWFBridgeRequest.SET_ACTUAL_SIZE_REQUEST, false, false, null,
-                                                                                                                                                                                { width: w, height: h}));
-                                                                        sizeSet = true;
-                                                                }
-                                                        }                               
+                            if (childAllowsParent)
+                            {
+                                if (holder.content is IFlexDisplayObject)
+                                {
+                                    IFlexDisplayObject(holder.content).setActualSize(w, h);
+                                    sizeSet = true;
+                                }
+                            }
+                            
+                            if (!sizeSet && swfBridge) 
+                            {
+                                swfBridge.dispatchEvent(new SWFBridgeRequest(SWFBridgeRequest.SET_ACTUAL_SIZE_REQUEST, 
+                                                        false, false, null,
+                                                        { width: w, height: h}));
+                                sizeSet = true;
+                            }                               
                         }
-//                        if (holder.content is IFlexDisplayObject)
-//                        {
-//                            IFlexDisplayObject(holder.content).setActualSize(w, h);
-//                        }
-                        else
+
+                        if (!sizeSet)
                         {
                             // Bug 142705 - we can't just set width and height here. If the SWF content
                             // does not fill the stage, the width/height of the content holder is NOT

                            {
                                contentHolder.scaleX = w / lInfo.width;
                                contentHolder.scaleY = h / lInfo.height;
                                sizeSet = true;
                            }
                        }
                        
                        // set the size of the loader now if we haven't set the content size yet.
                        if (!sizeSet)
                        {
                            contentHolder.width = w;
                            contentHolder.height = h;
                        }
                    }
                    else if (childAllowsParent &&


            contentHolder.x = x;
            contentHolder.y = y;
        }
        else
        {
