# URL Loaded image -\> BitmapData?

**URL:** <https://forum.kirupa.com/t/url-loaded-image-bitmapdata/282758>\
**Category:** flash\
**Created:** [February 26, 2009, 3:00am UTC](https://forum.kirupa.com/t/url-loaded-image-bitmapdata/282758 "2009-02-26T03:00:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [February 26, 2009, 3:00am UTC](https://forum.kirupa.com/t/url-loaded-image-bitmapdata/282758/1 "2009-02-26T03:00:54Z")

</div>

How can I make this work? Basically I want to load an image from a URL, then set it as bitmapData, as shown below (down incorrect)…

```auto

var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest("http://www.mysite.com/hair/hair_" + hairStyleId + "_" + hairColorId);
imageLoader.load(image);
hairBitmap = new imageLoader(0,0) as BitmapData;

```
