- 浏览: 1560048 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (571)
- Flex (301)
- AIR (5)
- ComPiere (8)
- ExtJS (15)
- SAP (0)
- jBPM (3)
- Java-Hibernate (5)
- Java-Spring (10)
- XML (2)
- java-web (30)
- db2 (2)
- websphere (4)
- Google (5)
- 虚拟机 (10)
- eclipse (8)
- Win2003 (11)
- Ubuntu (27)
- VMware (4)
- CentOS (3)
- JSON (1)
- Oracle (15)
- SilverLight (1)
- 大事记 (6)
- VirtualBox (5)
- Solaris (10)
- AIX (6)
- 云计算 (10)
- MacOS (4)
- iOS (1)
- SQLite (1)
- Activiti (1)
- jdk (5)
- hadoop (8)
- Ant (4)
- PhoneGap (2)
- JavaScript (11)
- jQuery (1)
- FireFox (1)
- HBase (2)
- sqoop (0)
- ffmpeg (7)
- mencode (0)
- jdbc (1)
- SQLServer (1)
- 组件平台 (12)
- struts2 (4)
- intellj (4)
- android (1)
- ExtJS4 (1)
- 色卡司 (1)
- Linux (3)
- ExtJS5 (1)
- zookeeper (2)
- maven (1)
- Java (6)
- vpn (0)
- squid (1)
- MySQL (2)
- webpackage (1)
- antd (1)
- lucene (1)
最新评论
-
qq_24800465:
请问这里的库从哪下载啊
ffmpeg所有的编码器(encoders) -
neusoft_jerry:
貌似这里没用到StreamingAMFChannel哦,只是用 ...
Flex BlazeDS 推送技术 -
anyone:
感谢你的博文,看了受益匪浅
记住这个IntelliJ IDEA的编译设置 -
keren:
现在还有什么应用需要用flex来开发的?
flex tree的展开,关闭,添加、删除子节点 -
neusoft_jerry:
简洁明快,好贴好贴!楼主V5!
flex tree的展开,关闭,添加、删除子节点
一,首先,給flex builder安装ant插件,参照:
http://blog.jodybrewster.net/2008/04/09/installing-ant-in-flex-builder-3/
具体步骤如下:
1. Launch Flex Builder
2. Go to Help > Software Updates > Find and Install
3. Search for new features to install, click next
4. Select “Eclipse.org update site”, click finish
5. Select “Eclipse Java Development Tools”, click next
6. Accept the license agreement, click next
7. Click finish to start download
8. Eclipse downloads Java Development Tools
9. Click “Install all” to install Java Development Tools
10. Restart the Eclipse workbench
就是要安装 Eclipse Java Development Tools这个Plugin
[参考:http://space.zdnet.com.cn/html/84/289384-2789427.html]
二,写build.xml:
http://blog.jodybrewster.net/2008/04/09/installing-ant-in-flex-builder-3/
具体步骤如下:
1. Launch Flex Builder
2. Go to Help > Software Updates > Find and Install
3. Search for new features to install, click next
4. Select “Eclipse.org update site”, click finish
5. Select “Eclipse Java Development Tools”, click next
6. Accept the license agreement, click next
7. Click finish to start download
8. Eclipse downloads Java Development Tools
9. Click “Install all” to install Java Development Tools
10. Restart the Eclipse workbench
就是要安装 Eclipse Java Development Tools这个Plugin
[参考:http://space.zdnet.com.cn/html/84/289384-2789427.html]
二,写build.xml:
<?xml version="1.0" encoding="utf-8"?> <project name="Compc build" basedir="." default="main"> <!-- defines all values for the Compc compiler --> <property name="FLEX_HOME" value="D:/Adobe/fb3_plugin/sdks/3.2.0"/> <property name="APP_ROOT" value="${basedir}"/> <property name="compc.exe" value="${FLEX_HOME}/bin/compc.exe"/><!-- 没用到 --> <property name="src-dir" value="${APP_ROOT}/src"/> <property name="output.dir" value="${APP_ROOT}/swc"/> <property name="swf.dir" value="${APP_ROOT}/bin-debug"/> <property name="output.file" value="myLovo.swc"/> <property name="namespaces" value="http://myLovo2009"/> <property name="application.locale" value="zh_CN"/> <!-- compiled mxml/as file Name --> <property name="fileName" value="main" /> <!-- compiled mxml/as file ext --> <property name="fileExt" value="mxml" /> <!-- modular application's main application fileName --> <property name="mainApp" value="" /> <!-- output package direction,end with / --> <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" /> <taskdef resource="net/sf/antcontrib/cpptasks/antlib.xml"> <!-- 如果在本地编译,那么要指定这个jar的目录<classpath> <pathelement location="D:/ant171/lib/ant-contrib-version.jar"/> </classpath>--> </taskdef> <target name="buildAssertsSWC"> <fileset id="assets.flex" dir="${src-dir}" includes="**/*.gif,**/*.jpg,**/*.png,**/*.css,**/*.swf,**/*.TTF,**/*.jpeg,**/*.xml" /> <pathconvert pathsep=" " property="assets.flex.output" refid="assets.flex" dirsep="/"> <map from="${src-dir}/" to=""/> </pathconvert> <echo message="...Resources being considered..."/> <!--<macrodef name="filelist"></macrodef> <macrodef name="prefixfilelist">-include-file</macrodef>--> <for list="${assets.flex.output}" delimiter=" " param="asset"> <sequential> <echo>Asset: @{asset}</echo> <var name="filelist_tmp" value="${filelist}"/> <var name="filelist" unset="true"/> <var name="filelist" value="${filelist_tmp} ${prefixfilelist} @{asset} '${src-dir-assets}/@{asset}'"/> </sequential> </for> <echo message="-output '${basedir}/flex_libs/assets.swc' ${filelist}"/> <exec executable="${FLEX_HOME}/bin/compc.exe" failonerror="true"> <arg line="-output '${basedir}/flex_libs/assets.swc' ${filelist}"/> </exec> </target> <!-- compile a mxml/as file --> <target name="mxmlc" depends=""> <mxmlc file="${APP_ROOT}/src/${fileName}.${fileExt}" output="${APP_ROOT}/${swf.dir}/${fileName}.swf" actionscript-file-encoding="UTF-8" keep-generated-actionscript="false" incremental="true"> <!-- Get default compiler options. --> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" /> <!-- List of path elements that form the roots of ActionScript class hierarchies. --> <source-path path-element="${FLEX_HOME}/frameworks" /> <!-- List of SWC files or directories that contain SWC files. --> <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true"> <include name="libs" /> <include name="/locale/${application.locale}" /> </compiler.library-path> <!-- 自定义或第三方包 --> <compiler.library-path dir="${basedir}" append="true"> <include name="libs" /> </compiler.library-path> <compiler.source-path path-element="${src-dir}"/><!-- ?????? --> <!-- Set size of output SWF file.--> <default-size width="1000" height="600" /> <delete> <!-- Deletes cache file --> <fileset dir="${APP_ROOT}/src" includes="${fileName}*.cache" defaultexcludes="false"/> </delete> </mxmlc> </target> <target name="main" depends="clean"> <fileset dir="${src-dir}" id="src.files"> <include name="**/**"/> </fileset> <echo message="${src.files}" /> <pathconvert property="evaFramework_classes" pathsep=" " dirsep="." refid="src.files" > <map from="\" to="/"/> <map from="${src-dir}/" to=""/> <mapper> <chainedmapper> <globmapper from="*.as" to="*"/> </chainedmapper> </mapper> </pathconvert> <echo message="${evaFramework_classes}"/> <compc output="${output.dir}/${output.file}" locale="${application.locale}" include-classes="${evaFramework_classes}" optimize="true" benchmark="true" fork="true" > <!-- Specify namespaces.--> <namespace uri="${namespaces}" manifest="my-manifest.xml" /> <source-path path-element="${src-dir}" /> <!-- add assets files:资源文件目录--> <include-file name="assets/default/icon/desktop.jpg" path="src/assets/default/icon/desktop.jpg"/> <include-file name="assets/default/main.css" path="src/assets/default/main.css"/> <!-- Namespaces to include. --> <include-namespaces uri="${namespaces}" /> <!-- List of SWC files or directories that contain SWC files. --> <external-library-path dir="${FLEX_HOME}/frameworks/libs" append="true"> <include name="*.swc" /> <include name="/air/*.swc" /> <include name="/locale/${application.locale}/*.swc" /> </external-library-path> <!-- the thirty party swc --> <external-library-path dir="${APP_ROOT}/libs" append="true"> <include name="*.swc" /> </external-library-path> </compc> </target> <target name="clean"> <delete dir="${output.dir}" failonerror="true"/> <mkdir dir="${output.dir}"/> </target> <!-- wrapper a swf with html express-installation template--> <target name="wrapper" depends="clean_htmlWrapper"> <html-wrapper title="自动生成的swf_html" width="100%" height="100%" application="flexApp" swf="${fileName}" version-major="9" version-minor="0" version-revision="0" history="true" template="express-installation" output="${APP_ROOT}/${swf.dir}" /> <!--<move file="${APP_ROOT}/${swf.dir}index.html" tofile="${APP_ROOT}/${fileName}.html" />--> </target> <!-- clean preview previous compile file --> <target name="clean_swf"> <!--<delete dir="${APP_ROOT}/${package}"/>--> <delete> <fileset dir="${APP_ROOT}/${swf.dir}" includes="${fileName}*.swf" /> </delete> </target> <!-- clean preview previous wrapper file --> <target name="clean_htmlWrapper"> <delete> <!-- Deletes history.swf --> <fileset dir="${APP_ROOT}/${package}" includes="history.swf" defaultexcludes="false" /> <!-- Deletes playerProductInstall.swf --> <fileset dir="${APP_ROOT}/${package}" includes="playerProductInstall.swf" defaultexcludes="false" /> <!-- Deletes ${fileName}.html --> <fileset dir="${APP_ROOT}/${package}" includes="${fileName}*.html" defaultexcludes="false" /> <!-- Deletes history.htm --> <fileset dir="${APP_ROOT}/${package}" includes="$history.htm" defaultexcludes="false" /> <!-- Deletes history.js and AC_OETags.js --> <fileset dir="${APP_ROOT}/${package}" includes="*.js" defaultexcludes="false" /> </delete> </target> </project>
发表评论
-
extjs结合flex(flash)的注意事项.
2014-01-02 17:11 2397//for fix bug //flash里使 ... -
flash(flex)crossdomain dtd规范
2013-12-27 13:38 952dtd文件位置: http://www.macromedia. ... -
flash内嵌在html里面的代码
2013-12-27 09:19 1194<!-- 除IE外都可识别 --> < ... -
FlashBuilder4.5 ADT命令详解(官方)
2011-12-16 17:45 1251http://help.adobe.com/en_US/air ... -
FlashBuilder4.5加入ADT插件
2011-12-16 17:24 1808参考: http://renaun.com/blog/2011 ... -
Flex as3commons log的简单使用
2011-11-28 20:26 1593http://www.as3commons.org/ &l ... -
Flex日志工具汇总
2011-11-27 16:29 1247巨兽 monster [能调试 mobile和web air] ... -
【转】[Flex]我经常使用的Flex Tools 和 Resource
2011-11-22 08:36 1307http://www.k-zone.cn/zblog/post ... -
[转]Flex Socket安全策略<policy-file-request/>及应对方法
2011-08-27 16:43 1726http://hi.baidu.com/dobodo/blog ... -
flash 安全策略文件
2011-08-27 16:31 2149<?xml version="1.0&qu ... -
Request请求头的格式
2011-08-27 15:38 2361每次提交http请求时,请求头是什么样的的格式呢? GET方 ... -
flash Tooltip类
2011-08-27 15:06 1136http://www.flepstudio.com/flash ... -
flash SQLite包装类
2011-08-27 15:00 2231[转]http://www.flepstudio.com/fl ... -
[转](原创)flex解决跨域问题的策略文件的写法
2011-08-04 09:59 1557http://hi.baidu.com/wosinmaiken ... -
[转](整理)flex常用验证控件
2011-08-04 08:30 1381http://hi.baidu.com/wosinmaiken ... -
Flex4.5 skin组建皮肤的应用
2011-07-28 08:52 2815http://www.iyoya.com/2011/06/04 ... -
如何成为一个合格的iOS开发者?
2011-07-17 14:59 1346转:http://www.adobe.com/cn/devne ... -
flex4.5移动设备开发-添加应用背景图片
2011-07-17 10:50 2291【转】http://spy6.blogspot.com/201 ... -
flex4.5移动设备开发-应用访问权限设置
2011-07-16 14:19 1361在构建flex4.5 mobile application的时 ... -
flex4.5移动设备开发-表格效果
2011-07-15 23:12 1804做了个实验,没想到做出表格的效果
相关推荐
直接使用flex的sdk生成swc文件,很繁琐,而且对于大项目来说,是个头痛的事情。ant在对java打包生成jar时,它优良的设计显露无疑,这里我们使用它,来生成swc,完成项目编译打包。
NULL 博文链接:https://huagenli.iteye.com/blog/710475
这是flex3引用的swc包,创建项目的时候用的,类似java的jar包。供大家参考使用,谢谢!
flex解析json的swc包(entity-flex-v1-02)及例子
Flex Mate框架swc包及Mate用法。
flex 翻页效果swc包 例子代码 http://blog.csdn.net/xuhuanchao/archive/2009/11/12/4804276.aspx#1373163
flex反编译工具 ,对swf swc 文件进行反编译
可惜的是没有可以直接拿来使用的响应插件包,本人费了一番力气,将源码打包成swc,可以直接拿来使用了(high!) 内附:Flex2PrimitiveExplorer、Flex2PrimitiveExplorer 插件(library.swc)、使用了library.swc的...
flex更容易操作Excel,导入excel文件等操作
用FlashBuilder开发ActionScript项目时,使用fl包中的组件需要的SWC包.
Flex中利用as3xlsUTF8.swc库文件导出Excel文件,支持中文
最新的扩展Cairngorm框架swc包
swc的打包要纠缠于讨厌的命令行和无尽的错误提示,实在让人郁闷,现在好了,我找到一款air编写的swc的打包工具,可以方便的对您选择的文件进行打包,提示人性化,还具有api生成功能,快下吧,还等什么?
在Flex应用中嵌入HTML代码或者网页,可以使用Iframe实现
SWC是Flash项目的资源库,如果您手里没有Flash Builder等工具,而又想把一些类编译为SWC库,那么使用这个工具是非常好的选择,使用简便,效果很好。
Flex的JSON解析包,使用的时候记得加引用 import com.adobe.serialization.json.*;
用这个包,你可以很快的给Flex3 VBox等添加上背景图片
3. In Flex builder, add the API Library to the project through Project -> Properties -> Flex Build Path -> Library Path -> Add SWC (and locate the "agslib-1.2-2009-05-15.swc") 4. In Flex builder, ...
spring actionscript 必须的.swc包
FlexPaper的flex的swc文件,两个swc文件,引入flex工程便可以调用api。