How to make opacity background for TextField in Flash or add alpha channel for background color

Published by Igor Khrupin on

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

Avatar placeholder

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.