Enterprise APP
Web App과 Air App을 동시에 제작하기 위한 Flex 환경설정 본문
http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html
common, air, web 세 개의 개별 프로젝트를 생성해 Interface를 통한 팩토리 패턴을 활용해 코드를 공유하는 방법.
이때 common에 생성 할 수 있는 것들은 모듈과 컴포넌트만 가능하다.
기존의 web app 프로젝트를 air와 동시 개발하기 위해서는 기존 Application 루트 태그를 DisplayObject 타입(Canvas, Container...)으로 변경해야 한다.
그렇지 않으면...
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/getChildIndex()
at mx.managers::SystemManager/getChildIndex()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1768]
at mx.managers::SystemManager/mouseDownHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3604]
오류 발생
그래도 한 개의 프로젝트에 프로젝트 폴더를 3개씩이나 만드는 것은 형상관리와 리소스 관리 차원에도 불편하니 추후 프로젝트 내에서 모듈, 컴포넌트 처럼 air도 모듈 형태로 들어가는 것이 바람직 할 듯.
그냥 tip...
'Flex General > Tips' 카테고리의 다른 글
무한 스크롤 (0) | 2010.01.18 |
---|---|
Flex 단축키 (0) | 2010.01.13 |
Air .exe 인스톨러 간단 제작 (0) | 2010.01.12 |
Using the Flash FLVPlayback control in Flex (0) | 2010.01.12 |
TabNavigator & TabBar 선택적 corner Radius값 변경 (1) | 2010.01.11 |
Comments