我試圖使用chromeColor的(或其他火花風格相關的項目)時,爲什麼我收到一個錯誤弄清楚:柔性 - 火花風格還沒有成型火花是當前主題
<s:Button x="10" y="208" label="CALL" width="185" fontWeight="bold" id="bCall" chromeColor="#F90000"/>
這是錯誤:
The style 'chromeColor' is only supported by type 'spark.components.Button' with the theme(s) 'spark'.
然而,在項目屬性中,主題設置爲Spark。我也嘗試將它設置爲暈,然後回到星火。
這裏是我的應用程序定義:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="800" minHeight="600" width="100%" height="100%">
我已經看到了定義MX命名空間的引用 「的xmlns:MX =」 庫://ns.adobe.com/flex/halo」,但隨後我的MX組件破裂(TabNavigator的舉例) - 不知道這會解決它安韋
我正在使用Flex 4.1庫(我相信當Flex Builder中是在4.0,如果該事項項目最初創建) 沒有。其他庫包括在內 項目屬性設置爲MX + Spark
另外,如果我刪除chromeColor的,項目編制,但有警告,如:
The style 'borderAlpha' is only supported by type 'spark.components.TitleWindow' with the theme(s) 'spark'. Flex Problem
(和其他人 - BORDERCOLOR,cornerRadius,dropShadowVisible)
你介意對此進行闡述嗎?我目前在我的代碼中似乎有一個相關的問題... http://xkcd.com/979/ – finalman 2012-10-26 14:09:24