출처 : http://lostsin.tistory.com/104


이미 컴파일러 옵션을 알고 계신 분들은
100만년 전에 알고 계셨을테지만 ^^;

전 오늘 첨 해봤네요-
그냥 내부적으로 그렇게 된다고만 알고 있었지.. 막상 직접 보니
감회가 새로워서 글로 정리합니다.

서두는 이 정도로 하고

[윈도우즈, 빌더 기준]
C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.1.1739\frameworks\flex-config.xml
C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.1.1739\frameworks\air-config.xml
파일을 열어 다음 구문을 찾습니다.

<!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
<!-- the compiler during mxml translation and are helpful with understanding and   -->
<!-- debugging Flex applications.                                                  -->
<keep-generated-actionscript>false</keep-generated-actionscript>

flase 부분을 true로 바꿉니다.

다시 컴파일하고 나면
프로젝트 폴더의 src 하위에 "generated"라는 폴더가 생깁니다.
이제 그곳을 확인하시면
mxml이 as로 변환된 과정을 확인하실 수 있습니다.


사용자 삽입 이미지

+ Recent posts