Flash8 BitmapData.loadBitmap() Woes

If you’ve been having trouble getting anything to appear when using the loadBitmap() function then chances are you’ve made a simple mistake. The documentation says to use the linkageId of a library object as the sole argument for this function i.e:

var myBitmap:BitmapData = BitmapData.loadMovie(“libObjectId”);

The key to using this function is that you have to attach an actual image object from the library; so say you’ve imported a jpg/png there, give this a linkageId and use that. Don’t drop an instance of the image into a movieclip/graphic object and give that an Id. That would be the reason it didn’t work. Be warned: you wont get an error message telling you it didn’t work, your bitmap will just be blank.

Comments: None so far...be the first!

Leave a reply

Your email address will not be published. Required fields are marked *

I’m gonna fight. The only way I know how. Ever since I was a boy, all I knew was how to fight. Fight, fight, fight. And when I got tired, I would fight some more. And now that the Man has got our backs to the wall, I ain’t gonna let him hurt the kids. I’m gonna take him down. I’m gonna take them all down!

— Black Dynamite