/*
 There are some caveats to this css sheet that I found. Yes, these issues made me feel stupid.
 Just as it says in the Livedocs:
  
 1. the css file MUST be named “defaults.css”
 2. the css file MUST be at your top level package
 3. only one css sheet per SWC

 see) http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
 see) http://livedocs.adobe.com/flex/3/html/help.html?content=mxmlcomponents_4.html
*/

 

Posted by 미랭군

Label 또는 DataGrid headerText 등에 줄바꿈이 필요할때 \n 대신 
 를 사용

Posted by 미랭군

mx(halo) 스타일 커스텀 컴포넌트 제작 방식

createChildren()

- 추가적인 자식 컴포넌트를 addChild()

updateDisplayList()

- 자식 컴포넌트의 width, height, 위치(x, y)값 등을 지정

- 추가적인 graphics drawing 작업

 

s(spark) 스타일 커스텀 컴포넌트 제작 방식

ComponentSkin

- 추가적인 자식 컴포넌트를 Skin에 구현

- 자식 컴포넌트의 width, height는 left, right, top, height 등을 통해 동적으로 구현

- skin내에 있는 updateDisplayList()에서 getStyle()을 통해 스타일 관련 프라퍼티를 가져와서 값을 지정

Posted by 미랭군