# Rotating Bitmap

**URL:** <https://forum.kirupa.com/t/rotating-bitmap/288430>\
**Category:** flash\
**Created:** [May 15, 2009, 3:21pm UTC](https://forum.kirupa.com/t/rotating-bitmap/288430 "2009-05-15T15:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dygfloyd](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@dygfloyd](https://forum.kirupa.com/u/dygfloyd)\
**Post date:** [May 15, 2009, 3:21pm UTC](https://forum.kirupa.com/t/rotating-bitmap/288430/1 "2009-05-15T15:21:05Z")

</div>

Ok, I’m getting a weird error on something that should be way too easy. It’s only a few lines of code so I’m hoping I’m just missing something stupid. Hopefully someone else can see the error.

```auto
 
// I'm using the BulkLoader class to import my images. 
// I'm creating a new Bitmap because I'm reusing the same image lots of times.
var Grass31:Bitmap = new Bitmap(BulkLoader.getLoader("main-site").getBitmapData("Grass"));
Grass31.rotation = 180;
 
// Adding it to a larger clip so that I can move and manipulate the whole thing.
var rd31:MovieClip = new MovieClip();
rd31.addChild(Grass31);
RoadClips.addChild(rd31);

```

When I execute, I get:  
ArgumentError: Error #2015: Invalid BitmapData.  
at flash.display::BitmapData()

Seriously. WTF? I’ve done this a million times. I gotta be missing something small.

Thanks for your help!
