# Convert to Bitmap

**URL:** https://forum.kirupa.com/t/convert-to-bitmap/321083
**Category:** flash
**Created:** [April 10, 2011, 8:50am UTC](https://forum.kirupa.com/t/convert-to-bitmap/321083 "2011-04-10T08:50:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darkbold](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@darkbold](https://forum.kirupa.com/u/darkbold)
#### Post date: [April 10, 2011, 8:50am UTC](https://forum.kirupa.com/t/convert-to-bitmap/321083/1 "2011-04-10T08:50:31Z")

</div>

Hello …

var req:URLRequest=new URLRequest(“img1.jpg”)  
var ldr:Loader = new Loader();  
ldr.load(req)

ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadFNC)  
function loadFNC(evt:Event):void  
{  
var bmp:Bitmap = Bitmap (evt.target.content)  
bmp.smoothing=true;  
addChild(bmp)  
}

swf and the image problem on different domains --\> “var bmp:Bitmap = Bitmap (evt.target.content)” line consists of. How do I resolve this ??

but, swf no problem and the picture is not the same domains.

Thank You…
