0
votes

I am building a form builder in Flex 4.5. For that I need help regarding uploading image at runtime such that any user can just simply place cursor on particular location on image and is able to upload any image from the local file system.

2

2 Answers

0
votes

Maybe try using native extension or native process. But this is only possible with AIR. Here is a simple example: http://thanksmister.com/2011/03/16/upload-s3-curl-air-nativeprocess/

I hope this helps :)

Could you describe more what you are trying to do?

0
votes

It's fairly simple

        private function browseForFile():void
        {
            fr = new FileReference();
            fr.addEventListener(Event.SELECT,handleBrowseForFileSelected);
            fr.browse([]);
        }

        protected function handleBrowseForFileSelected(event:Event):void
        {           
            fr.removeEventListener(Event.SELECT,handleBrowseForFileSelected);

            fr.upload( ...)
        }

in fr.upload fill the parameters as you need, basically a URLRequest to which you will upload the file to.