header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Nemsis
Points:0
Posts:0
Answered

3/16/2010 12:04:30 PM

Title: How to change global style dynamically


I want to change style of all my buttons in my flex application. how can i do that in flex



HMS
Points: 200
Posts:0
Accepted Answer
3/16/2010 12:12:33 PM



you can use the style manager class in flex to change the global styles of any component in flex. In the following example I am changing "fillcolors" style of all buttons of my flex application.




StyleManager.getStyleDeclaration("Button").setStyle("fillColors", [0x069000, 0xffffff, 0x69000, 0xeeeeee]);


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions