Here's a bit of code that those of you working with Flash UI Components might find handy.
Some smart person, I've lost the original link, has worked out the right globalStyleFormat for FMX to mimick the standard Windows UI colour scheme.
Include this ActionScript somewhere in your movie, probably best in an ActionScript layer in the first frame:
globalStyleFormat.darkshadow = 0x424142;
globalStyleFormat.face = 0xD6D3CE;
globalStyleFormat.highlight = 0xFFFFFF;
globalStyleFormat.highlight3D = 0xD6D3CE;
globalStyleFormat.shadow = 0x848284;
globalStyleFormat.scrollTrack = 0xEBE9E7;
globalStyleFormat.applyChanges();
Better still, I've saved this code as a file called "winUI.as" and include it in any Flash movie if required with the following command in my ActionScript: #include "winUI.as"
Posted by at 01:37 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/10

