# BitmapData not working when uploaded

**URL:** https://forum.kirupa.com/t/bitmapdata-not-working-when-uploaded/315207
**Category:** flash
**Created:** [October 20, 2010, 8:44am UTC](https://forum.kirupa.com/t/bitmapdata-not-working-when-uploaded/315207 "2010-10-20T08:44:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fikontrollet](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)
#### Post date: [October 20, 2010, 8:44am UTC](https://forum.kirupa.com/t/bitmapdata-not-working-when-uploaded/315207/1 "2010-10-20T08:44:48Z")

</div>

Hey  
I’m loading thumbnail images from youtube and upon adding them to the stage I have encountered some issues.

If I simply addChild the loader to my parent it all works nice and dandy both locally and uploaded,  
if I convert it to bitmapdata, it works locally but not uploaded.

Any thoughts on why I’m having this problem?  
[LEFT]Note: The commented section is the one that is working locally but not uploaded.  
[/LEFT]

```auto

private function buildThumb() : void {
            $loader = new Loader();
            $loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
            $loader.load(new URLRequest(DataProxy.getInstance().getPlaylists()[$playlist][$id].thumbnail.image));
            addChild($loader);   
        }
        
        private function onComplete(e : Event):void{
// var bmp:Bitmap = new Bitmap(Convert.TO_BITMAPDATA($loader));
// this.addChild(bmp);
        }

```
