<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Editing stylesheets in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191198#M4462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a heap Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I've been working with the beta version of flexviewer, turns out I hadn't unzipped flexviewer-src-1.3.zip. Found them in there!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Aug 2010 22:12:46 GMT</pubDate>
    <dc:creator>MattSmith</dc:creator>
    <dc:date>2010-08-02T22:12:46Z</dc:date>
    <item>
      <title>Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191196#M4460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently in the early stages of developing a web map, but am having trouble with stylesheets - I'd like to have a white background as I have transparent layers in my map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read a bit about editing CSS files, but I'm using ArcGIS Viewer for Flex 2.0 beta 2 (I don't see any point having to re-invent my web map) but there don't seem to be any CSS files there, only SWF's. I also downloaded Flex Viewer 1.3 but couldn't find anything in there either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's got to be something I'm missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the samples section at&amp;nbsp; says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use different stylesheets: &lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;blackgold.swf - gold color title texts on black background, with most text being white.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;darkangel.swf - white text on a dark background.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;lighterside.swf - black text on a light grey background&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;or create your own stylesheet in Flash Builder&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But doesn't go any detail about how to build one in Flash Builder. Not that I'd expect it to, but it kind of leaves me at a dead-end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can point me in the right direction it would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt Smith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 04:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191196#M4460</guid>
      <dc:creator>MattSmith</dc:creator>
      <dc:date>2010-08-02T04:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191197#M4461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The CSS files are under src/default package folder in the package explorer tree in flash builder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 11:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191197#M4461</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-08-02T11:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191198#M4462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a heap Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I've been working with the beta version of flexviewer, turns out I hadn't unzipped flexviewer-src-1.3.zip. Found them in there!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 22:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191198#M4462</guid>
      <dc:creator>MattSmith</dc:creator>
      <dc:date>2010-08-02T22:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191199#M4463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm now having a little trouble compiling back to SWF in Flash Builder. I've made a few basic changes, but I'm getting errors regarding namespaces &amp;amp; CSS selectors, e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Type 'Alert' in CSS selector 'Alert' must be qualified with a namespace.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...pretty much for the whole document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know the reason stylesheets are now pre-compiled to SWF in Flex Builder 2.0 Beta? Have there been changes to CSS and/or Flex 4 (as my CSS works perfectly with the Flex Viewer 1.3)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or (and this is much more probable), am I missing something really simple?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 04:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191199#M4463</guid>
      <dc:creator>MattSmith</dc:creator>
      <dc:date>2010-08-03T04:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191200#M4464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You are definitely missing something simple as CSS has always need to be compiled to a SWF. Just right click on the CSS file and choose compile to SWF if you have not already. There has been some minor changes to CSS in Flex 4 and that is what you are running into with the namespace issue. If you are attempting to use a CSS file that you had working in Flex 3 now in Flex 4 than you have to add namespaces like this at the beginning of the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
/* CSS file - Standard Stylesheet */
@namespace "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace esri "http://www.esri.com/2008/ags";
@namespace viewer "com.esri.viewer.*";
@namespace MapSwitcher "widgets.MapSwitcher.*";
@namespace components "com.esri.ags.components.*";
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then use those name spaces like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
mx|Alert
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; background-alpha: 0.8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* same as for viewer|WidgetTemplate */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: #000000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* controls the panel content area. */
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: white;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* main text color */
&amp;nbsp;&amp;nbsp;&amp;nbsp; corner-radius: 10;
&amp;nbsp;&amp;nbsp;&amp;nbsp; title-style-name: "myAlertTitle";
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191200#M4464</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T09:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191201#M4465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt, the CSS files used are very different between the Sample Flex Viewer and the 2.0 beta of the ArcGIS Viewer for Flex.&amp;nbsp; You will be much better of using the appropriate CSS files than taking 1.x SFV CSS files and trying to "fix" them for the 2.0 beta.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 14:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191201#M4465</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2010-08-03T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191202#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Matt, the CSS files used are very different between the Sample Flex Viewer and the 2.0 beta of the ArcGIS Viewer for Flex.&amp;nbsp; You will be much better of using the appropriate CSS files than taking 1.x SFV CSS files and trying to "fix" them for the 2.0 beta.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Bjorn, but there don't seem to be any CSS files supplied with the 2.0 beta, only pre-complied SWF's. (I'm not sure if that's what you meant or not). I desperately need a white background for my web map, thus why I can't use the supplied blackgold, darkangel or lighterside SWF's (lighterside comes close but still nowhere near ideal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Robert thanks for your assistance, I might try putting that stuff in. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm purely a cartographer, so all this is a pretty steep learning curve for me. I appreciate both of your assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 21:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191202#M4466</guid>
      <dc:creator>MattSmith</dc:creator>
      <dc:date>2010-08-03T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191203#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt, the CSS requires compilation into SWF.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two different downloads for Flex Viewer: the ready-to-use, pre-compiled version, and the "source code" (which requires the code to be compiled).&amp;nbsp; The CSS files are only included in latter because they need to be compiled into SWF files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/index.html"&gt;http://help.arcgis.com/en/webapps/flexviewer/index.html&lt;/A&gt;&lt;SPAN&gt; the box on the right side has download links for both.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to summarize, in order to change the CSS you need the "source code" as well as a way to compile that source code.&amp;nbsp; The easiest way is to use Flash Builder.&amp;nbsp; If you're not a developer or "techie" this might be a bit challenging, but still possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bjorn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 22:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191203#M4467</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2010-08-03T22:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Editing stylesheets</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191204#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Matt, the CSS requires compilation into SWF.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;There are two different downloads for Flex Viewer: the ready-to-use, pre-compiled version, and the "source code" (which requires the code to be compiled).&amp;nbsp; The CSS files are only included in latter because they need to be compiled into SWF files.&lt;BR /&gt;&lt;BR /&gt;On &lt;A href="http://help.arcgis.com/en/webapps/flexviewer/index.html"&gt;http://help.arcgis.com/en/webapps/flexviewer/index.html&lt;/A&gt; the box on the right side has download links for both.&lt;BR /&gt;&lt;BR /&gt;So to summarize, in order to change the CSS you need the "source code" as well as a way to compile that source code.&amp;nbsp; The easiest way is to use Flash Builder.&amp;nbsp; If you're not a developer or "techie" this might be a bit challenging, but still possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Bjorn&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AH, wonderful thanks Bjorn. Now, I understand! With the help of Robert's presentation at the user conference, I've been able to change the CSS files for 1.3 and make them apply, so the changes won't be too much of a drama I don't think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this is the last you hear from me! Well, on this topic anyway! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 23:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/editing-stylesheets/m-p/191204#M4468</guid>
      <dc:creator>MattSmith</dc:creator>
      <dc:date>2010-08-03T23:10:20Z</dc:date>
    </item>
  </channel>
</rss>

