패키지 | spark.filters |
클래스 | public class GradientFilter |
상속 | GradientFilter ![]() ![]() ![]() ![]() |
하위 클래스 | GradientBevelFilter, GradientGlowFilter |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |

The <s:GradientFilter>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<s:GradientFilter Properties angle="45" distance="4.0" entries="[]" type="inner" />
기본 MXML 속성entries
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
angle : Number
The angle, in degrees. | GradientFilter | ||
![]() | blurX : Number
The amount of horizontal blur. | BaseDimensionFilter | |
![]() | blurY : Number
The amount of vertical blur. | BaseDimensionFilter | |
![]() | constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | |
distance : Number
The offset distance of the glow. | GradientFilter | ||
entries : Array
An Array of GradientEntry objects
defining the fill patterns for the gradient fill. | GradientFilter | ||
![]() | knockout : Boolean
Specifies whether the object has a knockout effect. | BaseDimensionFilter | |
![]() | quality : int
The number of times to apply the filter. | BaseDimensionFilter | |
![]() | strength : Number
The strength of the imprint or spread. | BaseDimensionFilter | |
type : String
The placement of the filter effect. | GradientFilter |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | GradientFilter | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | |
![]() |
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | |
![]() |
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
Propagates a change event when the filter has changed. | BaseFilter | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | |
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
![]() |
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
angle | 속성 |
angle:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The angle, in degrees. Valid values are 0 to 360. The angle value represents the angle of the theoretical light source falling on the object and determines the placement of the effect relative to the object. If distance is set to 0, the effect is not offset from the object, and therefore the angle property has no effect.
기본값: 45.
구현
public function get angle():Number
public function set angle(value:Number):void
distance | 속성 |
entries | 속성 |
entries:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
기본값: [].
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange
이벤트를 전달합니다.
구현
public function get entries():Array
public function set entries(value:Array):void
type | 속성 |
type:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The placement of the filter effect. Possible values are flash.filters.BitmapFilterType constants:
BitmapFilterType.OUTER
- Glow on the outer edge of the object.BitmapFilterType.INNER
- Glow on the inner edge of the object.BitmapFilterType.FULL
- Glow on top of the object.
기본값: BitmapFilterType.INNER.
구현
public function get type():String
public function set type(value:String):void
관련 API 요소
GradientFilter | () | 생성자 |
public function GradientFilter(colors:Array = null, alphas:Array = null, ratios:Array = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
매개 변수colors:Array (default = null ) — An array of RGB hexadecimal color values to use in the gradient.
For example, red is 0xFF0000, blue is 0x0000FF, and so on.
| |
alphas:Array (default = null ) — An array of alpha transparency values for the corresponding colors in
the colors array. Valid values for each element in the array are 0 to 1.
For example, .25 sets a transparency value of 25%.
| |
ratios:Array (default = null ) — An array of color distribution ratios; valid values are
0 to 255.
|
Tue Jun 12 2018, 03:17 PM Z