Education: Training on how to add several Filters with Flash ActionScript.

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Create Multiple Filters with ActionScript

 

Free Flash Tutorial


Step 2    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10   11     Next   >>      

 

Step Two: The ActionScript

  1. In the Timeline insert a new Layer:
  2. Name the Layer: ActionScript
  3. Select Frame 1 of the Actionscript Layer: Frame 1
  4. Open the Actions Panel: Window > Actions (F9)
  5. If Script Assist is on, Switch it off:

    Note: With Script Assist on you cannot type in the Actions Panel. If you want to learn more about Script Assist see the tutorial on the Actions Panel

  6. Type (or paste) the following into the Actions Panel:

    // Makes all possible filters available to use in the Movie.
    import flash.filters.*;

    // Creates variables with info about the Filter settings
    var myGlow = new GlowFilter (0x000066, 0.7, 9, 9, 3, 3, true, false);
    var myDrop = new DropShadowFilter(12, 45, 0x000000, .6, 8, 8, 1, 2, false, false, false);

    // Applies the filters to the object named myObject
    myObject.filters = [myGlow, myDrop];

  7. Test your Movie: Control > Test Movie (Ctrl Enter)

         

Step 2    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10   11     Next   >>      


20351 visitors to this page since 4 April 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.