# Load dynamic image using loadBitmap

**URL:** <https://forum.kirupa.com/t/load-dynamic-image-using-loadbitmap/237428>\
**Category:** Uncategorized\
**Created:** [August 30, 2007, 8:59am UTC](https://forum.kirupa.com/t/load-dynamic-image-using-loadbitmap/237428 "2007-08-30T08:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwiniquit](https://avatars.discourse-cdn.com/v4/letter/i/7993a0/32.png) [@iwiniquit](https://forum.kirupa.com/u/iwiniquit)\
**Post date:** [August 30, 2007, 8:59am UTC](https://forum.kirupa.com/t/load-dynamic-image-using-loadbitmap/237428/1 "2007-08-30T08:59:33Z")

</div>

i’m messing around with senoculars example for doing a transition ([http://senocular.com/flash/source.php?id=0.167](http://senocular.com/flash/source.php?id=0.167)). the only problem is that he’s using images that are being exported from the library. i want to use it by loading images dynmically but i can’t figure out how. i don’t know much about the bitmap class and have been failing on figuring it out for hours now.

the main function where the problem is:

```auto
function loadTransBitmap(id){
    var tempbmp = flash.display.BitmapData.loadBitmap(id);
    transbmp.copyPixels(tempbmp, tempbmp.rectangle, basepoint);
    tempbmp.dispose();
}

```

the ‘id’ would just be a path of an image like “images/test.jpg”

i know you can’t use loadBitmap for dynamic images and my logic is that i have to load the image in a movieclip, and then loadBitmap that movieclip but I can’t seem to get that to work. i think in order to get the transition to work though i need to use that loadBitmap eventually. any help would be greatly appreciated!
