flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Jurat (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33795) CSS style does not applied for spark Alert with standard spark namespace (@namespace s "library://ns.adobe.com/flex/spark";)
Date Fri, 04 Oct 2013 04:52:42 GMT
Maxim Jurat created FLEX-33795:
----------------------------------

             Summary: CSS style does not applied for spark Alert with standard spark namespace
(@namespace s "library://ns.adobe.com/flex/spark";)
                 Key: FLEX-33795
                 URL: https://issues.apache.org/jira/browse/FLEX-33795
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Apache Flex 4.10.0
            Reporter: Maxim Jurat


Steps to reproduce:
1. Create css file like this:
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark"; 
@namespace mx "library://ns.adobe.com/flex/mx";

s|Alert
{
    skinClass: ClassReference("skins.SimpleAlertSkin");
}
2. Create custome Alert skin.
3. Create simple application to test like this one: 
<?xml version="1.0"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Script><![CDATA[
        import spark.components.Alert;
        ]]></fx:Script>
    <s:Button click="Alert.show('Hello, world')" label="Say Hello"/>
    <fx:Style source="styles.css"/>
</s:Application>

Workaround:
Use another namespace:
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace sparkComponents "spark.components.*";
@namespace mx "library://ns.adobe.com/flex/mx";

sparkComponents|Alert
{
    skinClass: ClassReference("skins.SimpleAlertSkin");
}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message