Hi, here I want to show you how to add alpha channel for TextField background color in Flash.

You can do it using next source code below:

textField = new TextField();
textField.blendMode = BlendMode.LAYER;
textField.alpha = .9; // opacity = 90%
textField.background = true;
textField.backgroundColor = 0x000000;

Happy coding!


1 Comment

zermok · 2 June, 2017 at 18:20

nice! thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.