0 Replies Latest reply on Dec 12, 2012 12:46 AM by polyedre62

    Problem with CSS / Flash Builder 4.6

    polyedre62

      Hello, I have a problem with the Design view of Flash Builder 4.6

      I want to use CSS Styles to design a skin to the Button.

      The Design View doesn't show the Style properly, but it works when I launch the application.

       

      Source : EssaiCSS.mxml

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                                           xmlns:s="library://ns.adobe.com/flex/spark" 
                                                           xmlns:mx="library://ns.adobe.com/flex/mx">
                <fx:Style source="css/core.css"/>
                <fx:Declarations>
                </fx:Declarations>
                <mx:Button x="137" y="50" styleName="Ajout"/>
      </s:WindowedApplication>
      

       

      Source : core.css

       

      /* CSS file */
      @namespace s "library://ns.adobe.com/flex/spark";
      @namespace mx "library://ns.adobe.com/flex/mx";
      
      
      mx|Button.Ajout
      {
                disabledSkin: Embed("assets/ajouter-D-128.svg");
                skin: Embed('assets/ajouter-128.svg');
      }
      

       

       

       

      design.jpg

       

       

      Any ideas please ?