flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mike (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33373) bindable styles in ColorTransform
Date Wed, 30 Jan 2013 14:47:12 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

mike updated FLEX-33373:
------------------------

    Description: 
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
    
    <fx:Metadata>
        [HostComponent("spark.components.Button")]
    </fx:Metadata>
    
    <s:states>
        <s:State name="up" />
        <s:State name="over" />
        <s:State name="down" />
        <s:State name="disabled" />
    </s:states>
    
    <s:BitmapImage
        source="@Embed('icon.png')"
        >
        <s:transform>
            <s:Transform>
                <s:ColorTransform
                    color="{getStyle('myColor')}"
                    color.over="{getStyle('myColorOver)}"
                    />
            </s:Transform>
        </s:transform>
    </s:BitmapImage>
    
</s:Skin>

current code working, but for default state 
    color="{getStyle('myColor')}"
it show black color

  was:
{code:mxml}
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
	
    <fx:Metadata>
		[HostComponent("spark.components.Button")]
	</fx:Metadata>
	
	<s:states>
		<s:State name="up" />
		<s:State name="over" />
		<s:State name="down" />
		<s:State name="disabled" />
	</s:states>
	
	<s:BitmapImage
		source="@Embed('icon.png')"
		>
		<s:transform>
			<s:Transform>
				<s:ColorTransform
					color="{getStyle('myColor')}"
					color.over="{getStyle('myColorOver)}"
					/>
			</s:Transform>
		</s:transform>
	</s:BitmapImage>
	
</s:Skin>
{code}

current code working, but for default state {code}color="{getStyle('myColor')}"{code} it show
black color

    
> bindable styles in ColorTransform
> ---------------------------------
>
>                 Key: FLEX-33373
>                 URL: https://issues.apache.org/jira/browse/FLEX-33373
>             Project: Apache Flex
>          Issue Type: Wish
>          Components: Skinning
>            Reporter: mike
>            Priority: Minor
>              Labels: colortransform,, skinning
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
>     
>     <fx:Metadata>
>         [HostComponent("spark.components.Button")]
>     </fx:Metadata>
>     
>     <s:states>
>         <s:State name="up" />
>         <s:State name="over" />
>         <s:State name="down" />
>         <s:State name="disabled" />
>     </s:states>
>     
>     <s:BitmapImage
>         source="@Embed('icon.png')"
>         >
>         <s:transform>
>             <s:Transform>
>                 <s:ColorTransform
>                     color="{getStyle('myColor')}"
>                     color.over="{getStyle('myColorOver)}"
>                     />
>             </s:Transform>
>         </s:transform>
>     </s:BitmapImage>
>     
> </s:Skin>
> current code working, but for default state 
>     color="{getStyle('myColor')}"
> it show black color

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message