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 external bitmap file (.jpg) into a BitmapData object?
Even AS3 code would be helpful.
AS3 code to load a PNG and "get" its bitmapData
You have to load the external file (.jpg) into a MovieClip and wait for it to load.
Then take a snapshot of the MovieClip that contains the external file, into your BitmapData object.
See Introducing the Image API in Flash 8.
taking from cotton and will, this will display the bitmap after it is loaded:
GUI phase:
Load the image into the library (file -> import -> library).
In the library browser, right-click and hit "properties", notice that it is X by Y pixels.
Open up the "advanced" tab.
Select "export for Action Script". Export as myImg
Actionscript phase:
Refering to the first post by cotton.
Actually each image is a bitmap so all you need to do is
instead of