Manipulating Filter Effects With Code - MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

3.
Select Control > Test Movie to test the document.
Move your mouse pointer around the Stage to re-create a displacement map by calling the
method, which changes the appearance of the JPEG image.
perlinNoise()

Manipulating filter effects with code

Flash Basic 8 and Flash Professional 8 let you dynamically add various filters to your movie
clips, text fields, and buttons on the Stage, instead of having to add filters in the Flash
Professional 8 authoring environment (using the Filters tab in the Property inspector). When
you add and manipulate filters during playback, you can add realistic shadows, blurs, and
glows that react to mouse movements or user events.
For examples of how to manipulate filters with code, see the following topics:
"Adjusting filter properties" on page 530
"Animating a filter by using ActionScript" on page 532
"Using the clone() method" on page 533
Adjusting filter properties
The array of filters applied to an object can be accessed through standard ActionScript calls by
using the
MovieClip.filters
object currently associated with the MovieClip. Each filter has a set of properties unique to
that filter. The filters can be accessed and modified just like an array object, although getting
and setting the filters by using the
instead of a reference.
530
Animation, Filters, and Drawings
property. This process returns an array that contains each filter
property returns a duplicate of the filters object
filters

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents