Dragonbones導出插件修改

  1. 使用flash builder進行開發,新建flex項目,項目路徑選擇,修改編譯參數-locale en_US zh_CN ja_JP fr_FR -source-path ./locale/{locale} -allow-source-path-overlap=true
  2. build發佈爲swf,拷貝到export目錄
  3. 使用extension manager進行打包,須要導入mxi文件。先生成mxi文件,格式內容以下: 申明爲flash的插件,關聯了swf和jsfl文件flex

    <macromedia-extension name="MyDragonBonesDesignPanel for cocos2d-x" version="2.2.2" type="command">
    <author name="DragonBones Team"/>
    <products>
        <product name="Flash" version="11" primary="true"/>
    </products>
    <description>
        <![CDATA[
    ]]>
    </description>
    <ui-access>
        <![CDATA[
    ]]>
    </ui-access>
    <license-agreement>
        <![CDATA[
    ]]>
    </license-agreement>
    
    <files>
        <file source="DragonBonesDesignPanel/myskeleton.jsfl" destination="$flash/WindowSWF/DragonBonesDesignPanel"/>
        <file source="MyDragonBonesDesignPanel.swf" destination="$flash/WindowSWF"/>
    </files>

  4. 根據需求修改jsfl文件,好比修改保存到xml的數據項ui

  5. 使用ext manager進行zxp打包
  6. 使用ext manager安裝zxp插件
  7. 打開flash項目,enjoy
相關文章
相關標籤/搜索