Try this: if(Capabilities.os.search("Mac") >= 0) img1.source = "file://" + tempImg.nativePath; else img1.source = tempImg.nativePath;
On 1/7/09 1:26 PM, "Jeff Hindman" <jake...@cox.net> 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 }