민서네집

[Flex] File Download 본문

Flex, ActionScript

[Flex] File Download

브라이언7 2012. 9. 6. 10:37

HTTP Multiple File Download with Flex 2 / ActionScript 3

 

http://multidmedia.com/support/technotes/?id=33

 

Flex SDK 3.4 에서는 컴파일 에러남. 옛날 API를 사용하는 듯.

 

Create Directory, Create File, Write to File in Flex/Actionscript

 

http://charliesflexblog.wordpress.com/2010/01/18/create-directory-create-file-write-to-file-in-flexactionscript/

 

AIR 버전에서는 디렉터리 생성이나 파일 생성이 문제 없이 된다.

 

Downloading files in Flex using the FileReference class

 

http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/

 

위 예제는 AIR 버전이 아니고, 잘 실행은 되는데, 파일 저장 대화상자가 떠서 디렉터리를 지정해 주어야 한다.

사용자가 개입 안하고 정해진 위치로 다운로드는 되지 않는것 같다.

 

다른 Flash Player 및 AIR 인스턴스와 통신

http://help.adobe.com/ko_KR/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7c7e.html

 

사용자가 개입 안하고 정해진 위치로 다운로드 되게 하기 위해서는 AIR 프로그램을 설치하고 이것과 통신하도록 해야할것 같다.

 

Comments