Flex css 實現多種皮膚切換

來源:互聯網
上載者:User

在 flex builder 中,用右鍵點擊css 檔案,然後選擇“compile css to swf”

然後,代碼如下咯~~~
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    initialize="StyleManager.loadStyleDeclarations( 'style1CSS.swf' )">
   
    <mx:ComboBox
        id="styleCombo"
        top="10" left="10" right="10"
        dataProvider="['style1CSS','style2CSS','style3CSS']"
        change="StyleManager.loadStyleDeclarations( styleCombo.selectedItem + '.swf' )"/>
</mx:Application>

完了,簡單吧~

轉一個Y.Boy的皮膚

皮膚詳情見:http://www.riahome.cn/?p=248

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.