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…