Search Flex Samples

Windows classic skin for Flex 3

While I generally think that imitating operational system isn’t a good idea at all—in particular old-fashioned Microsoft Windows—however I have found that sometimes it is suitable, and even the best way to sketch-up your new Flex application. Especially when you are rewriting an old Windows legacy software and your client is a Mr. Dursley. Why not let him to use familiar look and feel?

Picture 2 copy.png

Therefore I created an new skin for Flex. This skin imitates Windows classical look and feel. I have used Flex 3 beta 3 and Flex skin design extensions for Adobe Flash. All you need is to import the skin artwork, or simply put .SWC file your in the Flex project folder. You should use both—Flash .SWC library and cascading style sheet file.

Picture 1.pngFieldset (or so-called Windows frame control) is extended Panel (see an example bellow). MenuBar does not use in the demo default List border skin. As a matter of fact I have not finished yet all the UI components: tabs are based purely in the CSS, Accordions and ButtonBar are unfinished.


You can see live demo here. Window management in my demo is based in SuperPanel extension implemented by Wietse Veenstra. Download skin ( 106).

  1. package {
  2. import mx.containers.Panel;
  3. import mx.core.UIComponent;
  4. import mx.core.UITextField;
  5. public class Fieldset extends Panel {
  6. private var pTitleBar:UIComponent;
  7. private var t:UITextField = new UITextField();
  8. public var fieldsetLabel:String;
  9. public function Fieldset() {}
  10. override protected function createChildren():void {
  11. super.createChildren();
  12. this.pTitleBar = super.titleBar;
  13. t.text = fieldsetLabel;
  14. t.background = true;
  15. t.backgroundColor = 0xD4D0C8;
  16. this.pTitleBar.addChild(t);
  17. }
  18. }
  19. }



Related Flex Samples

Learn Flex: Flex Samples | Flex Video Tutorials Flex Examples