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