Be the first to write a review
Scripting blend modes
Flash Professional 8 includes a range of blend modes similar to those in Fireworks or Photoshop. Blends allow you to change the colour of overlapping objects to achieve different visual effects. The resulting colour depends on the colours of the objects and the blend mode you choose.
Flash Professional 8 includes the following blend modes: Normal, Layer, Darken, Multiply, Lighten, Screen, Overlay, Hard light, Add, Subtract, Difference, Invert, Alpha and Erase. In this article, you’ll find out more about these blend modes and learn how to work with them in ActionScript.
You’ll need a copy of Flash Professional 8 to see the features covered in this article. You can download a trial copy from the Macromedia Web site. You should also install Flash Player 8. Because the article includes changes to ActionScript, you can’t publish the code to Flash Player 7 and earlier. Note that the code samples within the article all use AS2.0.
You can download the files referred to in the tutorial from the blue Properties box that contains the article PDF. There's a heading titled Code Download and you can click the Details link next to it to get the zip file.
Note: If you have difficulties downloading the source files or PDF, you might have a problem with your cookies. Delete the cookies from your machine and try again. In Internet Explorer, you can do this by choosing Tools > Internet Options… and clicking the Delete Cookies… button on the General tab.
This article is part of the new interactive e-book; Out of my mind: Flash 8 Power
Let’s get started by looking at what each blend mode does.
Sas Jacobs
Hello. I'm the Principal of Anything Is Possible, an Australian web development business specialising in web applications development and training. I'm interested in using Flash with dynamic content and I've presented at a number of International conferences on topics relating to applications development, XML and scripting components. I have recently released my second print book Beginning XML with DOM and Ajax to match the first one - Foundation XML for Flash. I have a business web site
and a personal web site.