Customactions - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Example
The following example changes the
of
to
.
true
false
import flash.filters.ConvolutionFilter;
import flash.display.BitmapData;
var preserveAlpha:Boolean = false;
var filter:ConvolutionFilter = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 1,
1, 1, 1, 1], 9, 0, preserveAlpha);
var myBitmapData:BitmapData = new BitmapData(100, 80, true, 0xCCFF0000);
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
myBitmapData.noise(128, 0, 255, 1 | 2 | 4 | 8, false);
mc.onPress = function() {
myBitmapData.applyFilter(myBitmapData, myBitmapData.rectangle, new
Point(0, 0), filter);
}

CustomActions

Object
|
+-CustomActions
public class CustomActions
extends Object
The methods of the CustomActions class allow a SWF file playing in the Flash authoring tool
to manage any custom actions that are registered with the authoring tool. A SWF file can
install and uninstall custom actions, retrieve the XML definition of a custom action, and
retrieve the list of registered custom actions.
You can use these methods to build SWF files that are extensions of the Flash authoring tool.
Such an extension could, for example, use the Flash Application Protocol to navigate a UDDI
repository and download web services into the Actions toolbox.
Availability: ActionScript 1.0; Flash Player 6
property of
preserveAlpha
from its default value
filter
CustomActions
469

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF