Tag Archives: ActionScript

Singleton: Good or Evil?

Singleton usage is commonly considered an anti-pattern in the OOP world. Its static factory method means you can reach the one allowed instance of the class from anywhere in your application. Inappropriate usage can turn your code into spaghetti as every class couples itself to the Singleton rather than get what it needs through a more appropriate actor.

IDropInListItemRenderer, BaseListData

IDropInListItemRenderer 인터페이스를 사용하면서 구현해 주어야 할 것은 get/set 메소드 하나밖에 없다.
set함수에서는 BaseListData 타입의 값을 넘겨주고 있다.
BaseListData 클래스에는 4개의 속성이 있다.

Accessibility

Accessibility를 위해 구현해야 하는 부분은 크게 두가지이다.

키보드만으로 서비스 이용이 가능할 것.
스크린 리더 사용자를 배려할 것.

에어 디스크립터 파일

에어 어플리케이션의 여러가지 설정을 담당하는 디스크립터 파일의 내용.

badge.swf

빌더에서 샘플로 제공하는 배포파일 (badge.swf) 에 대한 내용.

AIR 에서 LCDS 이용하기

AIR 어플리케이션에서의 LCDS 사용.

byte 단위로 문자열 자르..

긴 한글 포함 문자열을 잘라주어야 할때 바이트 단위로 자름으로써 한글, 영문, 숫자-기호 등 상관없이 일정한 길이로 자를 수 있음.

IEventDispatcher

인터페이스 구현