Drop shadow photo effect using the AS
Submited in: Flash
| Total Views: 12623
Using this thoroughly explained, detailed action script 3 flash lesson, you will see how to apply drop shadow effect on any photo.
Create a new flash document.
Choose now File > Import > Import to stage (Ctrl+R) and import any photo into a flash stage.
While the image is still selected, hit F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.
While the new made Movie Clip is still selected, go to the Properties Panel below the stage. On the left side, You will find the Instance name input field there. Call this Movie Clip photo_mc. See the picture below!
Call the current layer photo. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!
Select now the first frame of layer photo and go to the AS panel (F9). After that, enter this code inside the actions panel:
var myShadow:DropShadowFilter = new DropShadowFilter();
myShadow.distance = 10;
myShadow.color = #63C732;
myShadow.blurX = 10;
myShadow.blurY = 10;
myShadow.quality = 3;
photo_mc.filters = [myShadow];
We're done now!
Test your movie (Ctrl+Enter) and enjoy!