Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Macromedia Flash - Apply Glow Effects to Images with as Code

Macromedia Flas is the focus of this article. In this article we will look at how to apply Glow filter to any image using the AS code.

Table of Contents

Understanding Macromedia Flas requires more than a headline. The overview below breaks down the key facts, changes, and user impact.

Macromedia Flas Overview

Step 1 Create a new flash document. Press Ctrl + J key on the keyboard ( Document Properties ) and set your Frame rate to 30 and click OK.

Macromedia Flash - Apply Glow Effects to Images with as Code

Step 2 Now select File > Import > Import to Stage ( Ctrl + R ) and import any image into the flash stage. Step 3 While the image is still selected, press F8 key ( Convert to Symbol ) to convert it into a Movie Clip Symbol

Macromedia Flash - Apply Glow Effects to Images with as Code (2)

Step 4 While the newly created movie clip is still selected, go to the Properties Panel below the stage. In the left pane, you will see the Instance name field, name this Movie Clip image as shown below:

Macromedia Flash - Apply Glow Effects to Images with as Code (3)

Step 5 Call the current layer image. Double-click on its default name ( Layer 1 ) to rename it. Press Enter when you have finished typing the new name. Step 6 Create a new layer above the layer image and name it action Step 7 Select the first frame of layer action and go to the Action Script Panel ( F9 ). Then, enter this code in the actions section:

Import flash. Filters. *; var gf: GlowFilter = new GlowFilter (0x70A146, 15, 18, 14, 3, 3, true, false); var ds: DropShadowFilter = new DropShadowFilter (2, 35, 0x70a146, 5, 5, 5,.8, 3, false, false, false); image. Filters = [gf, ds]; image. OnRollOver = function () { this. OnEnterFrame = function () { gf. BlurX + = (80-gf. BlurX) ??/ 5; gf. BlurY = gf. BlurX; image. Filters = [gf, ds]; }; }; image. OnRollOut = function () { this. OnEnterFrame = function () { gf. BlurX + = (20-gf. BlurX) ??/ 5; gf. BlurY = gf. BlurX; image. Filters = [gf, ds]; if (gf. BlurX <21) { delete this. OnEnterFrame; } }; };

Check your movie now ( Ctrl + Enter ) Good luck!

FAQ

What does Macromedia Flash - Apply Glow Effects to Images with as Code explain?

Understanding Macromedia Flas requires more than a headline.

Who is most affected by Macromedia Flas?

The overview below breaks down the key facts, changes, and user impact.

What are the key takeaways from this topic?

Macromedia Flas Overview Step 1 Create a new flash document.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.