Flash Prototypes: Drop Shadow

I made this 13 years 30 weeks ago

how to use the Drop Shadow prototype

  1. Import the as_createdropshadow.as ActionScript file
  2. Create a movie-clip, and text-area dynamically
    var oMC = _root.createEmptyMovieClip("oMC", getNewDepth());
    var oTF = oMC.createTextField("oTF", getNewDepth(), 0, 0, 20, 20);
  3. Set text attributes and add the Text Format object
    
    with (oTF)
    {
    	autoSize = "left";
    	text = "Zatoichi";
    	setTextFormat(tfPink);
    }
  4. 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);