易截截图软件、单文件、免安装、纯绿色、仅160KB

netbeans + flex 第一个DEMO

  首先建一个netbeans的java web项目
然后从网上吧blazeds.war 下载下来用rar 解压 把web-inf 替换掉在netbeans\web 下面的web-inf中的全部文件
然后 部署下
在打开flex builder 新建一个flex project 写上名字和项目路径
在Application server type 选中j2ee
点击 下一步
然后 Root folder选中netbeans 建的项目 下的web路径 例如E:\学习\WebDemo\web  {我的项目交WebDemo}
Root Url 写上你的服务器url路径  例如:http://localhost:8080/WebDemo
Context root 还是/WebDemo
 在output folder 这里注意一下 比如我的项目是E:\学习\WebDemo\ 这个路径下 那么写E:\学习\WebDemo\web  这样的话flex builfer就会把生成的文件都放在web下面了
然后下一步 ok 现在项目算是搭建完事了
现在修改配置文件netbeans 下面的web\web-inf\flex\remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="helloWorld">
<properties>
<source>com.demo.java.HelloWorld</source>
</properties>
</destination>
</service>
<destination id="helloWorld">
            <properties>
            <source>cn.demo.java.HelloWorld</source>
            </properties>
        </destination>
这些是我新加的 helloWrold 是自己新建的名字
 com.demo.java.HelloWorld 是我新建的类
里面代码如下
 /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
p


相关文档:

flex学习日志

*****************************************************
1-0. 安装配置工作环境
*****************************************************
1.安装jdk1.6
设置环境变量:java_home,内容为jdk安装后jdk所在目录,不是jre目录
2.安装tomcal 6.0到d:\
3.安装myeclipse 6.5
4.安装firefox及插件
  安装firefox
&nbs ......

flex 图标设置百分比或者其它符号

<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<!--[CDATA[
//导入相关包
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.ser ......

Flex——Flash Player Not Found

Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description ......

flex 图表使用百分比示例

<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<!--[CDATA[
//导入相关包
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.ser ......

flex textarea 滚动条

今天在修改一个游戏bug问题的时候遇到的
这游戏本来是中文版的,后来被翻译成英文了,英文的字符串的长度一般都会比中文的字符多的,所以很多情况下要加滚动条了
今天又有个显示文字不全的,原本用的是text标签的那个不能显示滚动条所以用textarea替换掉了,可是竟然没有反应不显示滚动条
郁闷!!!!
我添加了  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号