# MovieClip to BitmapData

**URL:** https://forum.kirupa.com/t/movieclip-to-bitmapdata/240572
**Category:** flash
**Created:** [October 4, 2007, 3:35am UTC](https://forum.kirupa.com/t/movieclip-to-bitmapdata/240572 "2007-10-04T03:35:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nickcherryjiggz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nickcherryjiggz/32/2107_2.png) [@nickcherryjiggz](https://forum.kirupa.com/u/nickcherryjiggz)
#### Post date: [October 4, 2007, 3:35am UTC](https://forum.kirupa.com/t/movieclip-to-bitmapdata/240572/1 "2007-10-04T03:35:29Z")

</div>

I’m trying to take a movieclip (exported for actionscript in the first frame) and eventually use copyPixels to crop and render it to the stage, but I am stuck just trying to get it to display at all. Am I making some stupid mistake or going about this the wrong way? Nothing appears on the stage at all when I compile.

```auto
import flash.display.BitmapData;

var mc:MovieClip = _root.createEmptyMovieClip("mc_guy", _root.getNextHighestDepth());
//mc.attachMovie("mc_guy", "mc_guy", mc.getNextHighestDepth()); //this attaches the mc properly when uncommented
//note: the content of the movie clip is about 225px wide x 400px tall, positioned at 0,0
var myBitmapData:BitmapData = new BitmapData(400, 400);
myBitmapData.draw(mc_guy);
mc.attachBitmap(myBitmapData, mc.getNextHighestDepth());

```

Thanks for any help. 8^)
