Skip navigation

background-color: rgba(255, 0, 0, 0.7);

The rgba property allows red, green, and blue—along with the fourth parameter for setting opacity, alpha—to be specified without the child elements inheriting it. In this case, the background would have been red with a 70% opacity. That’s one line of code and no images. Not a problem in AIR.

The documentation for Adobe AIR 1.5 say the CSS “opacity” property is not supported, but you can use rgba()! So nice.

Posted via web from Apphacker’s learning curve


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: