Paket | spark.filters |
Sınıf | public class GradientFilter |
Miras Alma | GradientFilter BaseDimensionFilter BaseFilter EventDispatcher Object |
Alt Sınıflar | GradientBevelFilter, GradientGlowFilter |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 4 |
Çalışma Zamanı Sürümleri: | 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" />
Varsayılan MXML Özelliğientries
İlgili API Öğeleri
Özellik | Tanımlayan: | ||
---|---|---|---|
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
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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 |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Constructor. | GradientFilter | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | ||
Olay akışına bir olay gönderir. | EventDispatcher | ||
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Propagates a change event when the filter has changed. | BaseFilter | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Belirtilen nesnenin temel değerini döndürür. | Object | ||
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher |
angle | özellik |
angle:Number
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 4 |
Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur 45.
Uygulama
public function get angle():Number
public function set angle(value:Number):void
distance | özellik |
entries | özellik |
entries:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 4 |
Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
Varsayılan değer şudur [].
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange
olayını gönderir.
Uygulama
public function get entries():Array
public function set entries(value:Array):void
type | özellik |
type:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 4 |
Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur BitmapFilterType.INNER.
Uygulama
public function get type():String
public function set type(value:String):void
İlgili API Öğeleri
GradientFilter | () | Yapıcı |
public function GradientFilter(colors:Array = null, alphas:Array = null, ratios:Array = null)
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 4 |
Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Constructor.
Parametrelercolors: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, 01:09 PM Z