Skip to content

Instantly share code, notes, and snippets.

@s9tpepper
Created November 25, 2011 21:57
Show Gist options
  • Save s9tpepper/1394507 to your computer and use it in GitHub Desktop.
Save s9tpepper/1394507 to your computer and use it in GitHub Desktop.
modal styles
var css:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration('global');
css.setStyle('modalTransparency', transparency);
css.setStyle('modalTransparencyColor', color);
css.setStyle('modalTransparencyBlur', blur);
css.setStyle('modalTransparencyDuration', duration);
@thanksmister
Copy link

You are the man! You can do this in a .css file too of course:

global
{
modalTransparency: .25;
modalTransparencyBlur: .25;
modalTransparencyColor: #000000;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment