2009년 9월 24일 목요일

런타임시 스타일 시트를 불러오거나 삭제 할 수 있는 StyleManger

StyleManager를 사용해 런타임시 스타일시트를 컨트롤 할 수 있다.

 

  1. .icons
  2. {
  3. Icon1: Embed('images/icon1.png');
  4. Icon2: Embed('images/icon2.png');
  5. Icon3: Embed('images/icon3.png');
  6. }

 

소스에서 css에 접근

  1. <Button
  2. icon="{StyleManager.getStyleDeclaratio('.icons').getStyle('icon1')}"
  3. />

 

이를 위해선 css가 swf로 컴파일 되어 있어야 한다.

이 글은 스프링노트에서 작성되었습니다.

댓글 없음:

댓글 쓰기