Flash Filters & ActionScript Parameters

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Creating Filters with ActionScript

 

Free Flash Tutorial


Step 5    <<   Previous      Intro   1   2   3   4   5    >>      

 

Step Five: Filter Parameters

In this section detailed information is given on each of the GlowFilter parameters. This will enable you to set the Filter parameter's correctly. Additional help is given so that you will know how to look up the settings for other filters.

Alpha: 0 to 1 - Default: 1
In Flash Alpha means transparency or the alpha transparency value for the color. Valid values are 0 to 1. For example, .25 sets a transparency value of 25%. The default value is 1.

BlurX: 0 to 255 - Default: 6
The amount of horizontal blur. Valid values are 0 to 255. The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.

BlurY: 0 to 255 - Default: 6
The amount of vertical blur. Valid values are 0 to 255. The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.

Strength: 0 to 255 - Default: 2
The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the glow and the background. Valid values are 0 to 255. The default is 2.

Quality: 0 to 15 - Default: 1
The number of times to apply the filter. Valid values are 0 to 15. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality, and a value of 3 is high quality. Filters with lower values are rendered more quickly. For most applications, a quality value of 1, 2, or 3 is sufficient. Although you can use additional numeric values up to 15 to achieve different effects, higher values are rendered more slowly. Instead of increasing the value of quality, you can often get a similar effect, and with faster rendering, by simply increasing the values of blurX and blurY.

Inner: true or false - Default: false
Specifies whether the glow should be seen inside the object. The value true indicates an inner glow. The default is false, an outer glow (a glow around the outer edges of the object). True and false are case sensitive and must be in typed in lower case only: true or false

Knockout: true or false - Default: false
Specifies whether the object has a knockout effect - removes the original shape and only the glow is visible. A value of true makes the object's fill transparent and reveals the background color of the document. The default is false (no knockout effect). True and false are case sensitive and must be in typed in lower case only: true or false

Color:
Sets the color of the filter. In many programs color is written as a hexadecimal number. If you are not familiar with hexadecimal numbers they can be a bit tricky but in ActionScript they are always prefixed with Zero Ex and followed by six digits or letters:

A Hexadecimal number as written in ActionScript: 0xff00ff

Tip: To find the colour code you want look at the color pallet in the Flash tool box:


The hexadecimal code is displayed at the top of the pallet.

Note: Do not write the number as displayed in the color pallet. You need to remove the # and replace it with Zero Ex: 0xff00ff

Case Sensitive: The Ex is case sensitive: 0Xff00ff will result in an error message. For this reason use lower case for the x. Correct syntax: 0xff00ff or 0xFF00FF

Other Parameters: If you use other filters they may have different parameters than those listed on this page. If you come across parameters that you do not understand it is easy to find help. Whilst in the Actions panel click inside the name of the filter such as GlowFilter and then click the help button at the top of the Actions panel: . This will take you to the Help Window and it will be open on the correct page. All the parameters for that filter will be listed. You will then be able to click on the parameter name to get additional information. That is how I got the information displayed on this page!!

I hope you have found this useful. If so perhaps you could recommend this site to others and link to webwasp!

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 5    <<   Previous      Intro   1   2   3   4   5    >>      


16370 visitors to this page since March 07 •

Phil Schulz's Facebook Profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page HomeMembers Tutorials Forum iSnapChat Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.