Rich Media developer since back in -96. Prefered tools of war: -Flash -Flex -Director (still can´t get over Macromedias backstab)View all articles by Mikael Wirén
I´ve recently done a nice little thingy in flash 8 (don´t ask).
As usual when using components, there are some things you want to customize, like coloring, borders and such.
I for one don´t find skinning very easy to manage. I´m a code mokey for crying out loud.
So i decided to roll with styling the component instead easy peasy or so i thought. The documentation should tell me how to do it. Yeah right!
I had forgotten how many un truths are in those pages.
Now i´ve spent some four work days trying to tap the internet resources about styling / skinning a flash 8 datagrid.
Let´s start by giving dues:
First stop. http://www.flashgamer.com who has an old blogpost from 2006 about skinning the flash dataGrid.
-Ah, ok, thats where you start!
I quickly realized this is way too much work for this budget.
I guess i need to rethink my strategy here.
-What to do?
Tell the client they have to roll with the basic look of the datagrid.
-Naaaah, too easy!
Wouldn´t feel right.
-Actually skin the component?
I gave this approach some research.
The datagrid component consists of a LOT of sub components.
There is the list component, the UIScrollbar component and the rectBorder component to name some.
The documentation is very vague about how to apply styles to the subcomponents. There is next to no information of what part does what.
Here you will find what i found during my extensive research and actually end up with a pretty customable component without having to skin it.
Along the way i had most help from a blog i think is discontinued. Last post is from 2008-01-10 but credits are due anyway. If you have information about the owner/ author, please let me know so i can thank her / him personaly.
That blog has a post about scrollpane customization that to this day is the ONLY information about styling a scrollBar component i have found.