How do you load a bitmap file into a BitmapData object?

后端 未结 5 1741
遥遥无期
遥遥无期 2020-12-15 21:41

In Flash, the BitmapData object can be used to store bitmaps in RAM, you can later draw them to a MovieClip using the beginBitmapFill() method.

How do you load an ex

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 22:04

    Refering to the first post by cotton.

    Actually each image is a bitmap so all you need to do is

    bitmapData = event.target.content.bitmapData  
    

    instead of

    bitmapData = Bitmap(LoaderInfo(event.target).content).bitmapData;
    

提交回复
热议问题