http://www.cnblogs.com/mobile/archive/2007/02/02/638038.html
不知道有沒有人想我一樣,剛開始的是怎么都不成功,原來是css文件要編譯成swf文件
慚愧啊。
右鍵選擇css文件,編譯為swf;或者使用mxmlc aaa.css 就可以了,
下面的就是用StyleManager.loadStyleDeclarations('aqua.swf',true)來切換你的css了。
flex 皮膚
http://scalenine.com/blog/2007/01/25/try-themes-with-ease/
http://blog.163.com/to_yht/blog/static/1227257742009741359326/
http://fleksray.org/Flex_skin.html
Obsidian Theme: http://try.scalenine.com/obsidian/obsidian.css
iTunes 7 Theme: http://try.scalenine.com/itunes7/jukebox.css
WMP 11 Theme: http://try.scalenine.com/wmp11/wmp11.css
Moxy CSS Theme: http://try.scalenine.com/moxy/moxy.css
Minty CSS Theme: http://try.scalenine.com/minty/minty.css
Shadow CSS Theme: http://try.scalenine.com/shadow/shadow.css
Darkroom Theme: http://try.scalenine.com/darkroom/darkroom.css
Vista Blue Theme: http://try.scalenine.com/vistaBlue/vistaBlue.css
不知道有沒有人想我一樣,剛開始的是怎么都不成功,原來是css文件要編譯成swf文件

右鍵選擇css文件,編譯為swf;或者使用mxmlc aaa.css 就可以了,
下面的就是用StyleManager.loadStyleDeclarations('aqua.swf',true)來切換你的css了。
flex 皮膚
http://scalenine.com/blog/2007/01/25/try-themes-with-ease/
http://blog.163.com/to_yht/blog/static/1227257742009741359326/
http://fleksray.org/Flex_skin.html
Obsidian Theme: http://try.scalenine.com/obsidian/obsidian.css
iTunes 7 Theme: http://try.scalenine.com/itunes7/jukebox.css
WMP 11 Theme: http://try.scalenine.com/wmp11/wmp11.css
Moxy CSS Theme: http://try.scalenine.com/moxy/moxy.css
Minty CSS Theme: http://try.scalenine.com/minty/minty.css
Shadow CSS Theme: http://try.scalenine.com/shadow/shadow.css
Darkroom Theme: http://try.scalenine.com/darkroom/darkroom.css
Vista Blue Theme: http://try.scalenine.com/vistaBlue/vistaBlue.css
<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Panel x="146" y="35" width="346" height="223" layout="absolute"> <mx:Button x="43" y="125" label="Button"/> <mx:Button x="130" y="125" label="Button"/> <mx:CheckBox x="212" y="125" label="Checkbox"/> <mx:LinkButton x="122" y="71" label="LinkButton"/> </mx:Panel> <mx:Script> <![CDATA[ private function changeStyle():void{ var s:String=test.selectedItem.source; StyleManager.loadStyleDeclarations(s,true); } ]]> </mx:Script> <mx:Style source="http://try.scalenine.com/obsidian/obsidian.css"/> 這樣的話服務器需要安全策略文件crossdomain.xml <mx:HBox> <mx:ComboBox id="test"> <mx:dataProvider> <mx:Object source="style/yflexskin.swf"> </mx:Object> <mx:Object source="assets/skins/flex_skins.swf"> </mx:Object> </mx:dataProvider> </mx:ComboBox> <mx:Button label="changeStyle()" click="changeStyle();"/> </mx:HBox> </mx:WindowedApplication>
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
