Pakiet | spark.filters |
Klasa | public class GradientFilter |
Dziedziczenie | GradientFilter ![]() ![]() ![]() ![]() |
Podklasy | GradientBevelFilter, GradientGlowFilter |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | 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" />
Domyślna właściwość MXMLentries
Powiązane elementy interfejsu API
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
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
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
Constructor. | GradientFilter | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Propagates a change event when the filter has changed. | BaseFilter | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher |
angle | właściwość |
angle:Number
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | 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.
Wartością domyślną jest 45.
Implementacja
public function get angle():Number
public function set angle(value:Number):void
distance | właściwość |
entries | właściwość |
entries:Array
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
Wartością domyślną jest [].
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange
.
Implementacja
public function get entries():Array
public function set entries(value:Array):void
type | właściwość |
type:String
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | 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.
Wartością domyślną jest BitmapFilterType.INNER.
Implementacja
public function get type():String
public function set type(value:String):void
Powiązane elementy interfejsu API
GradientFilter | () | Konstruktor |
public function GradientFilter(colors:Array = null, alphas:Array = null, ratios:Array = null)
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructor.
Parametrycolors: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, 12:06 PM Z