I am new to the forums here and fairly new to flash, but I could really use some help. I am building an AIR application that needs to allow a user to choose a file while offline, store the file, and record the path to the stored file in a SQLite DB.
I have the SQLite DB working, and I can move the chosen file to the image repository I created in the applicationStorageDirectory.
My problem is that browseForOpen returns Void and file processing is done asynchronously by an event handler. I believe I need to be able to return the path to the image chosen by the user so that I can then store that value in the database so I can retrieve it later.
Does anybody know how to get the filename back to the calling function? Alternatively, is there another paradigm I could follow for getting the file?
I’ve been trying to find a way past this since yesterday. Your help would be greatly appreciated.