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.

Share Article

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

Leave a reply

Please fill in the form fields and improve Skynet by completing the captcha!

Thank you! All comments are moderated so yours will appear shortly.

You followed your continuance in the hope that others would follow theirs. You didn’t do it for a reward or a pat on the head. The universe never tells us if we did right or wrong. It’s more important to try to help people than to know that you did. More important that someone else’s life gets better than for you to feel good about yourself. You never know the effect you might have on someone, not really. Maybe one cool thing you said haunts them forever, maybe one moment of kindness gives them comfort, or courage. Maybe you said the one thing they needed to hear. It doesn’t matter if you never know, you just have to try.

— Naomi Nagata, The Expanse