如何生成swc库文件
生成swc库文件的若干方法: 一、建立Flex?library?project项目 1.建立Flex?Library?Project项目 2.编写程序文件 3.确认编译无误 4.在项目上点击右键-->flex?library?build?path --->classes--->选择所要打包的类--->点击OK 即可自动生成需要的swc库文件。 二、ant方式打swc 首先,请修正工程下的build.properties文件,文件如下: #?Window?and?document?title?for?the?documentation title?=?ASDocs?Test?Library ? #?Class-folders?you?want?to?search?for?classes?to?be?included?in?the?docs,?seperated?by?spaces?(for?example???../com/?../net/??) #?to?include?every?.as?and?.mxml?file?within?your?project,?just?state???../ domainextensions?=?./flex-src ? #?The?Location?of?deployment?library?on?your?Computer?(PC/Mac)?for?compiled?SWC?file liboutputfolder?=?bin liboutputfile?=?PureMVC_MultiCore.swc libpath?=?libs ? #?The?Location?of?the?output?folder?for?your?generated?documents docsoutputfolder?=?bin/docs ? #?Home?directory?for?flex?sdk?3,?change?this?to?build?for?Mac?or?PC?using?#?as?comment #?FLEX_HOME?=?C:/Program?Files/Adobe/Flex?Builder?3/sdks/3.0.0 FLEX_HOME?=?D:/Program?Files/Adobe/Flex?Builder?3?Plug-in/sdks/3.0.0 ???? #?The?location?of?your?asdoc.exe,?change?this?to?build?for?Mac?or?PC?using?#?as?comment #asdoc.exe?=?C:/Program?Files/Adobe/Flex?Builder?3/sdks/3.0.0/bin/asdoc.exe asdoc.exe?=?D:/Program?Files/Adobe/Flex?Builder?3?Plug-in/sdks/3.0.0/bin/asdoc.exe ? 需要修正的地方: ? domainextensions?=?./flex-src:这个是你要打包的src路径 liboutputfolder?=?bin:这个是swc输出的路径 liboutputfile?=?PureMVC_MultiCore.swc:这个是输出swc的名字 libpath?=?libs:这个需要打包src用到的类库 docsoutputfolder?=?bin/docs:这个是asdoc输出的路径 FLEX_HOME?=?X:/Program?Files/Adobe/Flex?Builder?3?Plug-in/sdks/3.0.0:你的flex?SDK的路径 asdoc.exe?=?X:/Program?Files/Adobe/Flex?Builder?3?Plug-in/sdks/3.0.0/bin/asdoc.exe:这个是asdoc的路径 在eclipse中window->preferences选择ant中的Runtime,将D:Program?FilesAdobeFlex?Builder?3?Plug-insdks3.0.0antlibflexTasks.jar引入? 然后执行build.xml生成SWC (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |