I’ve been trying to skin the v3 List component via code for over a week now, and I cannot find a way to do so. So I decided to try another approach, which I’m also having problems with. Hopefully someone here can help me.
Since the only information I can ever find about skinning components instructs me to double click on them (which is totally unhelpful when manipulating components in actionscript), I figured that if I could mimic that with code, perhaps I could achieve the same goal.
So I started playing with loading in SWF files with libraries of Sprites intended to act as replacements for the default component skins.
I’m doing this by manipulating the applicationDomain. The theory being that, if a needed asset cannot be found in the parent SWF, it will look in the child SWF. But thus far I haven’t found a way to do this. I keep getting runtime errors because the component is looking for library assets that don’t exist in the main movie.
Can this be done? Looking over ApplicationDomain, it really looks like it should work, but I can’t get it to.