{"id":68,"date":"2008-08-29T17:58:26","date_gmt":"2008-08-29T15:58:26","guid":{"rendered":"http:\/\/www.crydust.be\/blog\/?p=68"},"modified":"2009-07-28T10:48:17","modified_gmt":"2009-07-28T08:48:17","slug":"css-in-flex","status":"publish","type":"post","link":"http:\/\/www.crydust.be\/blog\/2008\/08\/29\/css-in-flex\/","title":{"rendered":"Css in Flex"},"content":{"rendered":"<p>\nI had some issues today to change the background color of a button in Flex. The up-skin was set for the Button selector which meant setting the fill-colors property for the Button.special selector had no effect. Setting the up-skin to null was the only solution. This was easy to do in code with setStyle, but I wanted to do it in css. Writing null wasn&#8217;t quite enough. Apearently you need to use ClassReference(null). Hope this helps someone out.\n<\/p>\n<pre>\r\nButton {\r\n  up-skin: Embed(source='img\/example.png');\r\n}\r\nButton.special{\r\n  <strong>up-skin: ClassReference(null);<\/strong>\r\n  fill-alphas: 1.0, 1.0;\r\n  fill-colors: #00FF00, #00FF00;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I had some issues today to change the background color of a button in Flex. The up-skin was set for the Button selector which meant setting the fill-colors property for the Button.special selector had no effect. Setting the up-skin to &hellip; <a href=\"http:\/\/www.crydust.be\/blog\/2008\/08\/29\/css-in-flex\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-css","category-flex"],"_links":{"self":[{"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":1,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":114,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/114"}],"wp:attachment":[{"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crydust.be\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}