F > FStyleFormat.applyChanges |
FStyleFormat.applyChanges
지원 버전
Flash Player 6
구문
myStyleFormat.applyChanges([propertyName1,...propertyNameN])myStyleFormat.applyChanges()
매개 변수
propertyName1...propertyNameN myStyleFormat에 할당된 모든 구성 요소에 업데이트할 속성을 지정하는 일련의 텍스트 문자열입니다.
반환값
없음
설명
메서드; 지정된 스타일 서식 객체의 인스턴스를 업데이트하고 변경된 내용을 이 서식에 할당된 모든 구성 요소에 적용합니다. 수신기를 추가하거나 제거할 때 또는 속성을 설정하거나 변경할 때에는 이 메서드를 호출해야 합니다. 속성을 업데이트할 때에는 아래 구문 1을 사용하여 새 값을 지정하는 속성만 업데이트하는 것이 좋습니다.
구문 1: 매개 변수에 지정된 속성만 업데이트합니다.
구문 2: 변경 여부에 관계 없이 구성 요소와 속성을 할당한 스타일 서식 내의 모든 정보를 업데이트합니다.
예제
구문 1: 다음 예제는 formStyleFormat의 arrow 및 background 속성은 업데이트하고, check 및 highlight 속성은 업데이트하지 않습니다.
formStyleFormat.arrow=0x00ffaa;formStyleFormat.background=0xaabbcc;formStyleFormat.check=0x000000;formStyleFormat.highlight=0xffffff;formStyleFormat.applyChanges("arrow","background");
구문 2: 다음 예제는 formStyleFormat의 모든 속성 즉, arrow, background, check 및 highlight를 업데이트합니다.
formStyleFormat.arrow=0x00ffaa;formStyleFormat.background=0xaabbcc;formStyleFormat.check=0x000000;formStyleFormat.highlight=0xffffff;formStyleFormat.applyChanges();
참고 항목
FStyleFormat.addListener, FStyleFormat.removeListener