Flash Prototypes: Drop Shadow
I made this 6 years 27 weeks ago
how to use the Drop Shadow prototype
- Import the as_createdropshadow.as ActionScript file
- Create a movie-clip, and text-area dynamically
var oMC = _root.createEmptyMovieClip("oMC", getNewDepth()); var oTF = oMC.createTextField("oTF", getNewDepth(), 0, 0, 20, 20); - Set text attributes and add the Text Format object
with (oTF) { autoSize = "left"; text = "Zatoichi"; setTextFormat(tfPink); } - Use the createDropShadow method to add a Drop Shadow
Specify: Text Format, Horizontal Off-Set, Vertical Off-Set
var oDS = oTF.createDropShadow(tfDS0, 3, 2);