Jeff,

File.nativePath is really funky on unix machines. I would try
img1.source = tempImg.url

of course, you didn't mention exactly what the breakdown was or what 
behavior did happen, but that might help..

Lushen


Jeff Hindman wrote:
>
> AIR gurus,
>
> The following code in my AIR app works fine on a PC, but not on a
> Mac:
>
> protected function handleDragEnter(event:NativeDragEvent):void {
> if (event.clipboard.hasFormat
> (ClipboardFormats.FILE_LIST_FORMAT)) {
> NativeDragManager.acceptDragDrop(event.currentTarget as
> InteractiveObject);}
> }
>
> protected function handleDrop(event:NativeDragEvent):void {
> var temp:Object = event.clipboard.getData
> (ClipboardFormats.FILE_LIST_FORMAT);
> var tempImg:File = temp[0] as File;
> if (tempImg.extension == "jpg" || tempImg.extension == "JPG" ||
> tempImg.extension == "gif" || tempImg.extension == "GIF" ||
> tempImg.extension == "png" || tempImg.extension == 'PNG') {
> img1.source = tempImg.nativePath;
> img1.maintainAspectRatio = true;
> } else {
> Alert.show("File is not an image.", "Oops!");
> }
>
> Any clues (or directionts to further research) would be greatly
> appreciated.
>
> Thanks!
>
> --jake
> }
>
>  

Reply via email to