How can I copy or duplicate the bitmapdata from a mx:image component?
I need to display the same image in multiple screens of my application and don’t want to have to download the image multiple times.
I could just use a urlrequest to download the image as a bitmap and copy that but I like the way you can can just set the source of the image component.
ImageextendsSWFLoaderwhich has a content property that will contain theBitmapobject that was loaded. Wait for the image to load, cast the content to Bitmap and read itsbitmapData