This content has been marked as final. Show 6 replies
Anybody? Is very hard to find information in these topics about Flex.
Not my area of expertise, but I'm not clear what your problem is.
You say you can't get it to work. Why not? What behavior are you expecting? What behavior are you not seeing?
I will add the style metdata is used for code hinting only; I do not believe it provides any functionality.
You probably have to override styleChanged ( http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html#styleChanged() ) and/or add code to updateDisplayList to reflect the modified styles.
More info on this is here:
The behavior I am expecting is for my custom component to be drawn using the code in the LiteButtonSkin class.
After searching I found that inside framework.swc there is a default.css stylesheet that adds the ClassReferences for the halo skin to all the Flex components.
I want to do the same, add a stylesheet to my library of components and have them custom drawn using programmatic skin.
Even if I override styleChanged what does not make sense is why wouldn't the component be drawn using the programmatic skin, is not like I am styling the component, this is supposed to be the default style.
Besides what other code should I add to the updateDisplayList? The programmatic skin currently just a draws a rectangle and is not even checking up/down/selected states.
Anyone? This is the last time I bring back up this topic, promised but it just strikes as amazing that I can't get an solution.
"jbucaran" <email@example.com> wrote in message
> Anyone? This is the last time I bring back up this topic, promised but it
> just strikes as amazing that I can't get an answer.
I think the issue is that it takes a lot of study to understand how the
programmatic skins work, and so most people just understand enough about
them to do whatever _they_ need to do, and no so much what anyone else needs
to do. Sometimes, you just need to solve your own problem. Your best bet
is to probably go on to something else for a while and then reread the docs
on skinning. I found that they made a lot more sense to me when I came back
several months later.
That is good advice Amy.
But maybe I was not clear about my situation, would you care to look at it in this other thread where I am clearly specifying what my problem is.