본문 바로가기

개발/Flex

Flex 4.5 TextInput 컴파일러 버그

상황
Flex 4.5 환경에서 spark.components.TextInput 를 MXML 파일로 상속받아서 새 class를 만들려고 할때에 아래와 같은 [버그 메시지]가 발생

버그 메시지
Multiple initializer values for default property, 'text', of type 'String'

해결 방법
상속 받으려는 파일을 mxml이 아닌 as 파일로 만듬 

참고
http://stackoverflow.com/questions/3139486/flex-custom-component-doesnt-accept-script-multiple-initializer-values-for-def