PDA

View Full Version : Inspectable vs. style



spasticfantastic
December 5th, 2007, 05:39 AM
Hello,

Getting my head around using the 'simplified style model' in V3 component creation - anyone have guidance for when making something an inspectable and when to implement is using the styles model, e.g. getStyleDefinition etc. ?

It's difficult to find guidance on using the component style model online, or maybe I'm just missing the point. Anyone link me up?

Ta
spas

spasticfantastic
December 6th, 2007, 03:46 AM
Nevermind, this from the documentation:

"Styles are defined as values that affect the display of a component, including padding, text formats, and skins."


For those who are trying to implement styles by extending UIComponent, see Implementing getStyleDefinition() and UIComponent methods, in this pdf by Jeff Kamarer: http://www.adobe.com/devnet/flash/articles/creating_as3_components/creating_as3_components_pt5.pdf