598
ActionScript classes
Returns
Object
-
Example
The following example uses
Function.call()
to make a function behave as a method of
another object, without storing the function in the object:
function myObject() {
}
function myMethod(obj) {
trace("this == obj? " + (this == obj));
}
var obj:Object = new myObject();
myMethod.call(obj, obj);
The
trace()
statement displays:
this == obj? true
See also
apply (Function.apply method)
GlowFilter (flash.filters.GlowFilter)
Object
|
+-flash.filters.BitmapFilter
|
+-flash.filters.GlowFilter
public class
GlowFilter
extends BitmapFilter
The GlowFilter class lets you apply a glow effect to various objects in Flash. You have several
options for the style of the glow, including inner or outer glow and knockout mode. The glow
filter is similar to the drop shadow filter with the
distance
and
angle
properties of the drop
shadow set to 0.
The use of filters depends on the object to which you apply the filter:
■
To apply filters to movie clips, text fields, and buttons at runtime, use the
filters
property. Setting the
filters
property of an object does not modify the object and can be
undone by clearing the
filters
property.
■
To apply filters to BitmapData instances, use the
BitmapData.applyFilter()
method.
Calling
applyFilter()
on a BitmapData object takes the source BitmapData object and
the filter object and generates a filtered image as a result.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...