Tag: function

  • Get full file path in AIR

    Normally if you want a file path in Flex to upload a file you use FileReference() with a browse(). Last week I tried the same technique to get a file dragged from the desktop to my AIR application. After fixing a strange problem the code worked but the next problem appeared to me. With FileReference…

  • FileReferenceList() problem in AS3

    Today I noticed a strange thing in Flex. Let me explain the problem. I created FileReferenceList. I added a eventListener to that FileReferenceList that returns me the list of files that the user selects. This is the code: private function openFileReference():void{ var flr:FileReferenceList = new FileReferenceList(); flr.addEventListener(Event.SELECT, onFrlResult); flr.browse();} private function onFrlResult(event:Event):void{ trace(“Select event: “+event.target);…