Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʵÌåÀà

JDBC¶ÁÈ¡Êý¾Ý¿âÔªÊý¾Ý,Éú³ÉJAVAʵÌåÀà
package com.nffish.util;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import com.nffish.c ......

Java°æÖ§¸¶±¦½Ó¿Ú¿ª·¢

Java°æÖ§¸¶±¦½Ó¿Ú¿ª·¢
ÐèÇ󣺵÷ÓÃÖ§¸¶±¦½Ó¿ÚµÄ½Ó¿Ú²¢¼¯³Éµ½É̳Ç
µ÷ÓÃÖ§¸¶±¦½Ó¿ÚËùÐèÒªµÄ“Ö§¸¶±¦ºÏ×÷»ï°éid”ºÍ“Ö§¸¶±¦°²È«Ð£ÑéÂ딹«Ë¾¶¼¸øÌṩºÃÁË£¬Ö§¸¶±¦¹Ù·½ÄÇÀïÒ²ÓиýӿڵēʵÎïÉÌÆ·½»Ò×·þÎñ¼¯³É¼¼ÊõÎĵµ”¼°Ïà¹ØµÄDEMOÔ´Âë¡£¹«Ë¾ÈÃÎÒÓÃJAVAÀ´Ð´£¬ÖÕÓÚÔÝʱ²»ÓÃÔÙдJSÁË£¬ºÙºÙ&hel ......

ͨ¹ýJava¼¸ÐдúÂë½ØÈ¡ÆÁÄ»

ͨ¹ýjava.awt.RobotµÄcreateScreenCapture½ØÆÁ¡£
    public static void captureScreen(String fileName) throws Exception {
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Rectangle screenRectangle = new Rectangle(screenSize);
& ......

flex ǶÈë×ÖÌå

  ±¾ÎÄϵԭ´´£¬²Î¿¼ÁËFlexµÄ¹Ù·½Îĵµ£¡
       ÔÚ´¦ÀíÎı¾Ê±£¬ÎªÁËÃÀ¹Û£¬ÓÐʱ»á¸øÎı¾Ñ¡ÔñһЩÌØÊâµÄ×ÖÌ壬ʹµÃÎı¾²»ÄÇôµ¥µ÷£¬Õâ¾Í»áÒý·¢Ò»¸öÎÊÌ⣺ÓÉÓÚÿ¸öÓû§µÄϵͳÓвîÒ죬µ±¶Ô·½»úÆ÷ÉÏûÓа²×°ÄãÖ¸¶¨µÄ×ÖÌåʱ£¬Flash Player»á×Ô¶¯Ñ¡ÔñÒ»¸öºÏÊʵÄ×ÖÌ壬ÎÞ·¨±£Ö¤ÎÄ×ÖµÄÍâ¹ÛÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ