| 패키지 | mx.graphics.shaderClasses |
| 클래스 | public class ColorShader |
| 상속 | ColorShader Shader Object |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
공용 속성
공용 메서드
| 메서드 | 정의 주체 | ||
|---|---|---|---|
Constructor. | ColorShader | ||
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
생성자 세부 정보
ColorShader | () | 생성자 |
public function ColorShader()| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
예제 예제 사용 방법
ColorShaderExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- ColorShaderExample.mxml -->
<s:Application name="ColorShader"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:Panel title="ColorShader Example"
width="75%" height="75%"
horizontalCenter="0" verticalCenter="0">
<s:Group blendMode="normal" horizontalCenter="0">
<s:Rect width="200" height="220">
<s:fill>
<s:SolidColor color="0x33CC99" />
</s:fill>
</s:Rect>
</s:Group>
<s:Group id="group2" horizontalCenter="0">
<s:BitmapImage source="@Embed('/assets/ks5792.jpg')" x="20" y="10"/>
</s:Group>
<s:Button label="Apply ColorShader" click="group2.blendMode='color'"
x="15" y="265" />
</s:Panel>
</s:Application>
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시