I understand it can be done like that, but then you have your styles
intruding into your code. If you are looking to have clear separation
between form, function, and style, you cannot presently do it with the
current Flex CSS implementation.


On Tue, Jun 11, 2013 at 2:56 AM, Justin Mclean <jus...@classsoftware.com>wrote:

> Hi,
>
> > In CSS3 you can do it by simply having a comma delimited list of
> gradients assigned to the
> > background attribute, and then control the repetition, positioning, and
> > scaling of each in the same fashion, by having those values in a
> > comma-delimited list on the corresponding attribute.
> Can you raise a JIRA for this issue and include some sample code for how
> you think you specify these attributes.
>
>  It's probably not that hard to add as there's a few existing CSS styles
> that support arrays.
>
> > Also, if you are using SASS or LESS you can create variables within the
> > stylesheet that correspond to a particular RGBA color value.
> Flex can support some of this by using PropertyReference but it probably
> just as easy to use setStyle in ActionsScript.
>
> <fx:Script>
>     [Bindable]
>     private var myColour:int = 0x000000;
> </fx:Script>
>
> <fx:Style>
>     @namespace s "library://ns.adobe.com/flex/spark";
>     s|Button {
>         color: PropertyReference("myColour");
>     }
> </fx:Style>
>
> Thanks,
> Justin

Reply via email to