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

flex 和 java (web)的组合开发

 1、开发环境:在myeclipse7.0中整合flex plup3.0, 安装flex plup3.0时,选myeclipse 中eclipse的目录,然
      找到flex 的安装好的目录,将plugins和features对应到拷到myeclipse里面 eclipse相应的目录下。
2、创建 flex和 java (Web)的工程(通信框架用blazeds.war):
               1、在myeclipse7下转到flex开发环境,创建flex工程 flexssh:
               2、右键创建好的flex 工程,为flex添加 web能力,使之有web能力,才可以使用ssh框架.
 二、flex和java的通信
写一个java类:
package com.qili.flexssh.test;
import com.qili.flexssh.util.UploadFile;
public class Hello {
 public String say(String yourworld){
  System.out.println("at:"+UploadFile.getNowDatetime()+" you say:"+yourworld);
  return "at:"+UploadFile.getNowDatetime()+" you say:"+yourworld;
 }
}
在WebRoot/WEB-INF/flex/remoting-config.xml 下添加  
<destination id="hello_java_class"> <!-- flex mxml页面要调用的ID -->
        <properties>
         <source>com.qili.flexssh.test.Hello</source> <!-- java中的类 -->
        </properties>
   </destination>
       
 
    3) 页面写 flex程序
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 <mx:Script>
  <![CDATA[
   import mx.events.ResourceEvent;
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   [Bindable]private var returnmess:String;  //获取java类里面的方法回调的值
   function sendMess():void{
    var myworld:


相关文档:

俺经历的Java面试题目

题目都很简单,但有时候让你用笔完整的写出来却不那么容易了.
1.遍历文件夹(被这个题目考了两次)
import java.io.File;
public class ListFile {
public static void main(String[] args) {
// TODO Auto-generated method stub
String path = "C:/Inetpub";
File f = new File(path);
list(f);
}
publ ......

Java线程同步示例

文章用实例代码展示了Java中多线程访问共享资源
时线程同步
的重要性。
分别通过在两个线程中同时访问(调用get_id*方法)经过同步处理(lock及Synchronized)的共享资源(tmp)及未经过同步处理的共享资源(tmp)来说明同步处理的的作用。
main中分两部分:
1)前半部分,non-synchronization部分用来测试没有做同步处理的代码 ......

Java Read()阻塞的一种处理方式

java.io.InputStream的read()方法描述:
        If no byte is available because the end of the stream has been reached, the value -1 is returned.
        到达流的末尾真会放回-1吗?
        ......

通过Java几行代码截取屏幕

通过java.awt.Robot的createScreenCapture截屏。
    public static void captureScreen(String fileName) throws Exception {
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Rectangle screenRectangle = new Rectangle(screenSize);
& ......

flex build 速度快起来

本文介绍一下关于flex性能优化,以及flex生成的的swf大小优化.
1.关掉build automaticly
2.专心做一个项目,开起来一个flex builder
3.用flex builder而不用Eclipse插件,这样不用受其它的插件的影响。
至于后来和数据库的就先不说了,因为水平有限
as3一出来,flex也跟着火一把,目前学习flex的人也越来越多了,但是国内fl ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号