import mx.core.BitmapAsset;
[Embed(source="a.gif")]
[Bindable]
public var imgCls:Class;
public var varOne:String = "This is a public variable";
private function modImage():void {
var imgObj:BitmapAsset = new imgCls() as BitmapAsset;
imgObj.bitmapData.noise(4);
myImage.source=imgObj;
}