본문 바로가기

공부방/Flex

(58)
[Flex] Flex file upload examples Uploading files in flex using the filereference class If you want to allow users to upload multiple files at once, you would use the FileReferenceList class instead of FileReference. Flex File Uploaded The component can be configured to include the Accordion image preview display shown in the example below or to just display the upload button and File Uploader browser pop-up. The demo contents a..
[Flex] Adobe AIR SQLite Example AIR applications that doesn’t need to store data on your computer are extremely rare. That is why I have created a basic application that should help you understand and learn how you can store data in SQLite database. The example is really basic but it should get you an idea on how to do it. You can download the AIR application right here (view source is enabled). If you don’t want to download t..
[Flex] Excel 한글 문제 해결 Flex로 Excel Import나 Export 를 하다 보면 한글 문제 때문에 골치가 아프다 ㅠㅠ as3xls 사이트 에서 제공하는 기본 라이브러리를 등록해서 사용하면 Import는 잘 되지만 Export 시에 한글이 깨지는 문제가 발생한다. 그래서 인터넷에 떠도는 은둔고수님(?) 들이 만든 as3xls(한글지원) 라이브러리를 찾아서 사용 했더니 이번엔 export 시에 한글 깨짐 문제는 해길이 되었으나, import 시에 한글이 깨지는 문제가 ㄷㄷㄷ ㅠㅠ 그래서 두개를 잘 조합 하면 문제가 해결 될것 같아서 소스를 분석하기 시작했다. 그래서 아래와 같이 수정 한뒤 사용해보니 문제가 해결되었다. 방법은 아래에 as3xls 사이트에서 제공 하는 라이브러리에서 ExcelFile.as을 열어서 255번라인 ..
[Flex] Flex Datagrid Paging 처리 소규모의 데이터를 다루어서 datagrid에 표시하고는 했는데 이번 프로젝트에서는 데이터의 양이 몇 천개씩 되다 보니 datagrid paging 처리를 생각하게 되었다. togglebuttonbar를 이용해서 처리를 했고, 기본 시스템 개념은 제로보드의 그것을 참조했다. 1. getNumofROW()를 수행하여 데이터 베이스에서 최초로 전체 레코드 크기를 요청 한다. 2. myButtonBar.setCntData( parseInt(event.result.toString()) ) 에서 요청 결과를 바탕으로 한페이지에 게시글 20개씩 게시 할 시 총 페이지의 수를 산출하여 버튼 그룹을 생성한다. 3. 다음 getList(myButtonBar.currentPage)를 통해 해당 페이지의 게시물들을 받아서 출..
[Flex] Flex DataGrid 무한 페이징 처리 방법 긴 목록(list)를 보여 주는 인터페이스로 Web에서는 Paging 처리가 일반적이었지만, 목록을 구성하는 데이타의 속성에 따라서는 이 보다는 전체 목록을 자연 스럽게 스크롤링해서 볼 수 있는 인터페이스가 좀 더 편리합니다. 예를 들면, 구글 리더(Google Reader)나 네이트 메일의 편지함 등이 그렇습니다. 첫페이지가 나타나고 목록을 보다가 스크롤바를 내리면 페이징없이 자연스럽게 계속 목록의 끝까지 볼 수 있는 방식이죠. 보통은 AJAX를 통해 많이 구현하고 있습니다. 이를 Data Grid에 구현해 보면 이렇습니다. 실제 작동 방식은 - 처음 페이지가 로드되면 한 페이지 분량의 데이타를 읽어서 Data Grid의 dataProvider에 채웁니다. - 사용자가 데이타를 더 보기 위해 스크롤 바..
[Flex] NativeWindow 를 센터에 배치하고 최대크기로 띄우기
[Flex] 시작프로그램에 등록하기 윈도우 부팅 시 프로그램이 실행되도록 하고 싶다면 아래 속성을 이용하세요.. NativeApplication.nativeApplication.startAtLogin Boolean값(true, false)을 가집니다..즉.. NativeApplication.nativeApplication.startAtLogin = true; //시작프로그램에 등록 NativeApplication.nativeApplication.startAtLogin = false; //시작프로그램에서 제거
[Flex] 듀얼모니터 사용시 서브 모니터에 풀 스크린으로 실행하기 AIR 어플리케이션을 서브모니터에서 풀스크린으로 실행되게 하고 싶을 때 //두번째 스크린에 띄우기 var screen:Screen = Screen.screens[1]; this.move(screen.visibleBounds.left, screen.visibleBounds.top); //전체 화면 모드 systemManager.stage.scaleMode = StageScaleMode.EXACT_FIT; systemManager.stage.displayState = flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE;