Why not this shadowfilter?

It seems to check, but I don't see no shadow on my text.
------- code -------------
import flash.filters.DropShadowFilter;
var shdw:DropShadowFilter = new DropShadowFilter (5, 45, 0 x 000000, 0.5, 10, 10, 3, 6);
tLabel.filters = [shdw];

This.createTextField("hello_txt",0,10,10,100,20) ("tLabel", this.getNextHighestDepth (), 50, 100, 110, 110);

441
tLabel.textColor = 0xFFFFFF;
tLabel.text = "what?"
tLabel.font = "Monotype Corsiva";
tLabel.multiline = true;
tLabel.wordWrap = true;
makes it impossible to select for copypaste text
tLabel.selectable = true;

var style_fmt:TextFormat = new TextFormat();
style_fmt.font = "Monotype Corsiva";
style_fmt. Size = 18;
tLabel.setTextFormat (style_fmt);

you apply a filters property to a non-existent object (tLabel). to fix this, move this line down.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for