# Flash 8 BitmapData

**URL:** <https://forum.kirupa.com/t/flash-8-bitmapdata/214793>\
**Category:** flash\
**Created:** [February 1, 2007, 2:17am UTC](https://forum.kirupa.com/t/flash-8-bitmapdata/214793 "2007-02-01T02:17:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayFranchize](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JayFranchize](https://forum.kirupa.com/u/JayFranchize)\
**Post date:** [February 1, 2007, 2:17am UTC](https://forum.kirupa.com/t/flash-8-bitmapdata/214793/1 "2007-02-01T02:17:10Z")

</div>

I’m using Flash 8, with this code in the first frame:

import flash.display.BitmapData;

rissa.\_x=Stage.width/2;  
rissa.\_y=Stage.height/2;

var plaid:BitmapData.loadBitmap(“plaid”);

function fillBG(){  
this.beginBitmapFill(“plaid”);  
this.moveTo(0,0);  
this.lineTo(Stage.width,0);  
this.lineTo(Stage.width,Stage.height);  
this.lineTo(0,Stage.height);  
this.lineTo(0,0);  
this.endFill(0,0);  
}

```
var StageL:Object=new Object();
StageL.onResize= function(){
    fillBG();

```

rissa.\_x=Stage.width/2;  
rissa.\_y=Stage.height/2;  
}  
Stage.addListener(StageL);

When I publish the file, I’m getting the following error message in the Output panel:

**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 7: The class or interface ‘BitmapData.loadBitmap’ could not be loaded.  
var plaid:BitmapData.loadBitmap(“plaid”);

Total ActionScript Errors: 1 Reported Errors: 1

Any answers to why this error message is appearing? Any assistance is immensely appreciated…
