Avoiding sandbox violation in AIR when using DragManager on locally stored images

For a mini AIR project I had some issue with sandbox security violation warnings that kept coming up any time I was using DragManager on images for which the source had been set to some locally held images (within the User Directory).

To bypass these warning, it is required to load the bytes into a bitmap and to get the image component display the bitmap. Code below.

The component that contains the image. The source is bound to the variable imageBitmap

/**
* Override of the clone function of the Event class.
* Such an override is required whenever creating a new class
*/
override public function clone():Event {
return new BitmapLoadEvent(type, bitmap);
}