Does anybody know how I could get an image that is dragged from the desktop
into an air application to become the background image for the dropSource.
I've got the drag and drop working and can put the image into the container,
just can't figure out how to pass it to the backgroundImage setStyle
property of the same Box. I tried casting the Image to a Class and then
calling setStyle but I can't do that cast, throws an error. Here is the code
of what I'm trying to do

private function addImage(nativePath:String):void{
var i:Image = new Image();
if(Capabilities.os.search("Mac") >= 0){
i.source = "file://" + nativePath;
} else {
i.source = nativePath;
}

this.showReportBox.setStyle("backgroundImage", Class(i));
}
-- 
[EMAIL PROTECTED]
785-832-9154



Reply via email to