1. FLEX 1.5 설치는 어렵지 않게 설치된다.
2. tomcat5.X.X 버전을 설치를 했다.
tommcat 또한 어렵지 한게 설치 가능하다.
필자는 80포트번호로 설정
3. tomcat Admin5.X.X은 웹 브라우저로 좀 더 쉽게 tomcat을 설정할 수 있다.
Admin 다운로드
설치해주시면 됩니다.
4. Admin 설정방법(우선 c:flexclass 폴더를 임의로 만들었다.)
왼쪽에 메뉴 트리 형태의 구성목록이 나와 있다. 그것의 상단부분에
Tomcat Server 하위 디렉토리
Service(Catalina) 하위에
Connector(80), Connector(8009), Host(localhost), Realm for Service(Catalina
4-2 이제 부터 중요한 부분이다.
host 부분을 선택하면 오른쪽 Host Actions 팝업메뉴 에서
'Create New Context'선택
여러 항목의 섹션으로 나뉘고, Context Properties 설정부분이 나온다
이 부분에서
Document Base 항목에 c:flexclass(- 소스가 위치할 디렉토리 지정부분)
Path 부분에 /flexclass 로 설정(- 웹 어플리케이션 접속 URL 상태 이름)
Reloadable : true 값을 주었다.(아래 Loader Properties의 Reloadable도 true값 설정)
Reloadable 부분은 WEB-INF/classes, WEB-INF/lib 클래스나 jar 파일이 변경되면
(자동으로 변경된 내용을 읽어들인다. 새로운 웹 어플리케이션을 개발하는 과정에서
true로 해서 작업 편의성을 가질때 이용)
모두 설정을 했다면 [SAVE]버튼과 Commit Changes 버튼을 눌러 저장
그다음 tomcat Restart
5. hello.mxml파일생성
<?xml version="1.0" encoding="euc-kr"?> <mx:Application xmlns:mx=" http://www.macromedia.com/2003/mxml"> <mx:Panel title="Hello World Application" marginTop="0" marginBottom="10" marginLeft="10" marginRight="10"> <mx:Label text="Hello World!" color="#6601D7" fontSize="24"/> </mx:Panel> </mx:Application>
localhost/flexclass를 익스플로러에서 띄면 하위파일들이 보일것이다
hello.mxml파일 실행하면 hello파일이 보일것이다. |