# Loaded SWF Background dissappears on load!

**URL:** <https://forum.kirupa.com/t/loaded-swf-background-dissappears-on-load/255690>\
**Category:** flash\
**Created:** [March 25, 2008, 11:51pm UTC](https://forum.kirupa.com/t/loaded-swf-background-dissappears-on-load/255690 "2008-03-25T23:51:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerobars](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@zerobars](https://forum.kirupa.com/u/zerobars)\
**Post date:** [March 25, 2008, 11:51pm UTC](https://forum.kirupa.com/t/loaded-swf-background-dissappears-on-load/255690/1 "2008-03-25T23:51:46Z")

</div>

I’m loading a SWF into my movie – using code below. The only thing is that if I have a SWF that has a colored background, and content above that, on loading the background of the imported SWF comes through as _transparent_ (i.e. the color doesn’t show) and only the objects _in_ the imported SWF show up –

Why would this be? How to fix? (I can add a colored rectangle that takes up whole stage – that works OK, but wonder why actual background doesn’t show)

Thanks!

```auto
public function loadContent(url:String):void {
            var request:URLRequest = new URLRequest(url);
            var loader:Loader = new Loader();

            loader.contentLoaderInfo.addEventListener(Progress Event.PROGRESS, loadProgress);
            loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
            loader.load(request);
            addChild(loader);
        }
        function loadProgress(event:ProgressEvent):void {
            var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
            percentLoaded = Math.round(percentLoaded * 100);
            trace("Loading: "+percentLoaded+"%");
        } function loadComplete(event:Event):void {
            trace("Complete");
        }

```
