Adobe Flash Builder 4 ¼òÌåÖÐÎÄÕýʽ°æ ÏÂÔØ:
http://subject.csdn.net/adobedownload/index.html
ʹÓÃÏà¹ØµÄÓò£¬ÀûÓÃAdobe Livecycle Designer´´½¨Ò»¸öPDFÄ£×飬ÒÔXML½ÚµÄÃû³Æ£¨ÓëPDFÄ£×éÖеÄÓòµÄÃû³ÆÆ¥Å䣩ÏòPDFÔ¶³Ì¶ÔÏó·¢ËÍXMLÊý¾Ý£¬È»ºóÄúµÄFlexÓ¦ÓóÌÐò¾Í»á´ò¿ªPDF, »ò½«PDFÎļþ·ÅÈëÄúµÄwebserverÉÏ£¬Ê¹ÓÃurlµ÷Óá£Ö®ºó£¬Í¬ÑùµÄ¹ý³Ì»á±»Öظ´¡£µ«ÊÇÈçºÎÔÚÒ»¸öFlex Ó¦ÓóÌÐòÖдò¿ªword doc£¿
ÔÚAIRÖУ¬Ö»Òª´´½¨Ò»¸ö´ÓÓû§±¾µØÎļþϵͳÖнøÐе÷ÓõÄURLRequest¡£Ô´ÂëÈçÏ£º
1.
public
function
clickButton
()
:
void
{
2.
var
request
:
URLRequest
=
new
URLRequest
(
'
C:
\\
documents
\\
test.doc
'
)
;
3.
navigateToURL
(
request
)
4.
}
ÒòΪFlexÓ¦ÓóÌÐò¿ÉÒÔÓëjavascriptºÍjavascript¹µÍ¨£¬´´½¨Ò»¸öMicrosoft Word¶ÔÏ󣬲ÉÓÃÈçÏ´úÂ룺
1.
var
oApplication
=
new
ActiveXObject
(
"
Word.Application
"
)
;
2. ......
½ñÌìÔÚ×öÏîĿʱºò£¬ÔÚ¿ªÊ¼ÏîĿʱºòÓÐÒ»¸öºÜÖØÒªµÄÎÊÌ⣬¾ÍÊÇÔÚ×ö»ÃµÆµÄÏîĿʱºò£¬ÒòΪ³õʼ»¯µÄʱºò½«Í¼Æ¬È«²¿¼ÓÔؽø³ÌÐò£¬Ôì³ÉÏîÄ¿Æô¶¯µÄʱºò£¬»úÆ÷¾Í±ÀÀ£ÁË£¬ÒòΪÏîÄ¿ÒѾÍê³ÉÁË£¬Ö»ÄÜÏëһЩ²¹¾ÈµÄ·½·¨£¬¾ÍÊÇÀûÓÃflashplayµÄÀ¬»ø»ØÊÕ£¬ÒÔÏÂÊÇÁ½ÖÖ·½·¨¡£
1. flash.system.System.gc();
2. try
{
var lc1:LocalConnection = new LocalConnection();
var lc2:LocalConnection = new LocalConnection();
lc1.connect("gcConnection");
lc2.connect("gcConnection");
}
catch (e:Error)
{
}
¿ÉÒԺܺõĽ«ÏîÄ¿ÖÐûÓÐÓõÄÄÚÈÝ»ØÊÕ¡£ ......
Ê×ÏÈÒªÇó´ó¼Òµ½Êý¾Ý¿â½¨Á¢Ò»¸öÊý¾Ý¿â£¬ÔÚÎÒÕâÀý×ÓÖÐÊý¾Ý¿âÃûΪuserDb,½¨Á¢Ò»¸ö±íuserInfo£¬ÀïÃæÉèÖÃÁ½¸ö×Ö¶ÎÒ»¸öΪid£¬Ò»¸öΪname¡£
´´½¨ÒÔÏÂjava´úÂëÔÚsrcĿ¼ÏÂ
User.java
package org.rjb.java;
public class User {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name=name;
}
}
UserDao.java
package org.rjb.java;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class UserDao {
public static Connection getConnection() {
Connection c = null;
try{
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/userDb";
String username = "root";
String password = "1235";
Class.forName(driver);
c=DriverManager.getConnection(url,username,password);
} catch (Exception e) {
System.out.println(e.getMe ......
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Script>
<![CDATA[
import mx.core.BitmapAsset;
import mx.core.DragSource;
import mx.events.DragEvent;
import mx.managers.DragManager;
private var xoffset:Number;
private var yoffset:Number;
private static const FORMAT:String = "box" ;
private function mouseDownHandler(evt:MouseEvent ):void {
xoffset = evt.localX;
yoffset = evt.localY;
var initiator:Box = evt.currentTarget as Box;
var proxyBox:BitmapAsset = new BitmapAsset();
proxyBox.bitmapData = new BitmapData(initiator.width,initiator.height );
proxyBox.bitmapData.draw( initiator );
var dragSource:DragSource = new DragSource();
dragSource.addData( initiator, FORMAT );
DragManager.doDrag( initiator, dragSource, evt,proxyBox, 0, 0, 0.5 );
}
private function dragEnterHandler( evt:DragEvent ):void {
if ( evt.dragSource.hasFormat( FORMAT ) ) {
DragManager.acceptDragDrop(Canvas(evt.currentTarget));
}
}
private function ......
Flex Viewer½âÎö-----Òý
FlexViewerÊÇESRI¹«Ë¾ÀûÓÃFlex¼¼Êõ£¬»ùÓÚ±¾ÉíÒÑ¿ª·¢ºÃµÄFlex API°ü¿ª·¢µÄÒ»¸ö³ÉÊìµÄWebGISʵÀý¿ò¼Ü¡£ÆäÍêÈ«ÊÇ¿ª·ÅµÄ£¬¿ÉÒÔ´Ó¹Ù·½ÍøÕ¾ÉϵÄCode GalleryÖ±½Óϵ½Ô´Âë¡£Ò²¿ÉÒÔ´Ó±¾È˵Ä×ÊÔ´µãÏÂÔØ¡£ÍøÖ·£º
http://download.csdn.net/source/2374602
ÏÂÔØÍê³Éºó½âѹֱ½Óµ¼ÈëAdobe Flex 3 BuilderÏîÄ¿¼´¿ÉʹÓá£
FlexViewer×Ô´Ó09ÄêÔÚÉç»áÉϳöÏÖÒÔÀ´£¬Òý·¢ÁËÒ»³¡ÈÈÁÒµÄWebGIS¿ª·¢Èȳ±¡£ÆäÍêÃÀµÄ½«Server Flex APIµÄÓŵãÕ¹ÏÖ³öÀ´£¬Ê¹ºÜ¶àµÚÒ»´Î¼ûµ½ÕâÖÖÌåÑéЧ¹ûµÄÈËÐij±ÅìÅÈ¡£Flex APIµÄ×î´óµÄ×î´óÓÅÊÆÒ²Ðí¾ÍÔÚ´Ë°É¡£¾ÍÊÇËûÒÀ¿¿ÁËÒ»¸ö¾ßÓкܺÃÓû§ÌåÑéЧ¹ûµÄƽ̨FLEX¡£
¾ßÓÐÒ»°ã³ÌÐò¾ÑéµÄ³ÌÐòÔ±Ò»°ãÓ¦¸Ã¶¼¿ÉÒÔ¿´¶®AS´úÂ룬ËùÒÔ»ùÓÚFlexµÄWebGIS¿ª·¢Ó¦¸ÃÊDz»Äѵģ¬¾ÍÊÇÒ»¸öAPI°ü£¬³Ô͸Á˾ÍÊÇÇüÖ¸¿ÉÊýµÄ¹¦ÄÜ£¬»ù±¾ÉϾÍÊǼòµ¥µÄµØͼ²Ù×÷£¬µ±È»·ÖÎö¹¦ÄÜ»¹ÊÇÓеģ¬ÄǾͲ»ÊÇFlex API°üÀ´Íê³ÉµÄÁË¡£Ôڴ˲»ÔÙÈßÊö¡£
½üЩʱ¼ä£¬×ÜÓÐÈËÎÊÎÒ¹ØÓÚFlexViewµÄÎÊÌ⣬¶øÇÒ¶¼ÊÇһЩÏà¶Ô»ù´¡µÄÎÊÌâ¡£¶ÔFlexVIewµÄ½á¹¹²»ÊÇÌ«Àí½â£¬Òò´Ë½«×Ô¼º¶ÔÆäµÄÀí½âд³ÉÒ»¸ö½âÎö£¬ÄÚÈÝÎÒ½«»áÔÚÒÔºóµÄʱ¼äÀï½ÐøµÄ´«µ½blogÀïÃ棬¹©ÍøÓѲÎÔÄ¡£²»×ãÖ®´¦»òÕß´íÎóÖ®´¦ÄÑÃâ»áÓУ¬Çë´ ......
flex Ò³ÃæÌøת
·½·¨Ò»£ºÊ¹ÓÃnavigateToURL
var url:String = "http://localhost/flex/test.jsp";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self");
·½·¨¶þ£ºÒýÓÃflashÖÐµÄ import flash.external.ExternalInterface Õâ¸ö½Ó¿Ú
ËûÄÜÌṩÏñjsÖÐwindow.location.href·½·¨Ò»Ñù·½±ã
ExternalInterface.call("function(){ "
+ " window.location.href='http://localhost/flex/test2.jsp';"
+ "}")
²Î¿¼£º http://blog.csdn.net/tianpeijun/archive/2009/04/17/4088496.aspx
......