flexÉÏ´«Îļþ
1.flex¶Ë
<mx:Button id="upload" label="ÉÏ´«Îļþ" click="ExternalInterface.call('openUpload');"/>
2ºǫ́
2.1 openUploadÊǺǫ́µÄjs½Å±¾(jsp)
function openUpload(){
var url="/OA/service/upload.jsp";
newWin=jscomNewWinOpenBySize(url,"ÎļþÉÏ´«",350,150);
}
function jscomNewWinOpenBySize(url,target,width,height){
var tt,w,left,top;
if (!width) width=screen.width;
if (!height) height=screen.height-60;
left=(screen.width-width)/2;
if(left<0){ left=0;}
top=(screen.height-60-height)/2;
if(top<0){ top=0;}
tt="toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=yes,";
tt=tt+"width="+width+",height="+height+",left="+left+",top="+top;
w=window.open(url,target,tt);
try{
w.focus();
}catch(e){}
return w;
}
upload.jsp
<%@ include file="/service/common.jsp"%>
<%@ page contentType="text/html; charset=gbk" language="java"%>
<html>
<head>
<title>¸½¼þÉÏ´«</title>
<script type="text/javascript" language="javascript">
addEventSimple(window,"load",initial);
function initial(){
o4lukaForm=document.getElementById("lukaForm");
o4myFile1=document.getElementById("myFile1");
o4asslb=document.getElementById("asslb");
o4ahigbg=document.getElementById("ahigbg");
if(o4myFile1.value!=""){
o4lukaForm.submit();
}else{
o4asslb.style.display="block";
}
}
function getFileSize(filePath){
o4asslb=document.getElementById("asslb");
o4asslb.style.display="none";
var image=new Image();
&nbs
Ïà¹ØÎĵµ£º
FlexÀ¬»ø»ØÊÕºÍÐÔÄÜÓÅ»¯
2009-10-10 10:08
FlexÀ¬»ø»ØÊÕµÄһЩ֪ʶ×ܽ᣺
1¡¢±»É¾³ý¶ÔÏóÔÚÍⲿµÄËùÓÐÒýÓÃÒ»¶¨Òª±»É¾³ý¸É¾»²ÅÄܱ»ÏµÍ³µ±³ÉÀ¬»ø»ØÊÕ´¦Àíµô¡£
2¡¢¸¸¶ÔÏóÄÚ²¿µÄ×Ó¶ÔÏó±»ÍⲿÆäËû¶ÔÏóÒýÓÃÁË£¬»áµ¼Ö´Ë×Ó¶ÔÏ󲻻ᱻɾ³ý£¬×Ó¶ÔÏ󲻻ᱻɾ³ýÓֻᵼÖÂÁ˸¸¶ÔÏ󲻻ᱻɾ³ý¡£
3¡¢Èç¹ûÒ»¸ö¶ÔÏóÖÐÒýÓÃÁËÍⲿ¶ÔÏ󣬵±× ......
ÔÚͨ¹ýblazedsʵÏÖÏûϢʱ£¬FLEX·¢²¼Ê±ÐèÒªÔÚÉèÖÃÀïÃæ½«flexserverÖн«contextrootÓëwebÓ¦ÓõÄcontextrootÃû³ÆÉèÖóÉÒ»ÑùµÄ£¡·ñÔò¾Í²»ÄÜÕýÈ·µÄ½ÓÊÕµ½ÏûÏ¢
ÒÔÏÂÊÇÏà¹ØµÄ²ÎÊýÎÄÕÂ
¹Ø¼ü×Ö: flex blazeds
À´×Ô£ºhttp://hi.baidu.com/%C7%E1%BD%A3/blog/item/33ce7219256b894d42a9ad30.html
Flex µ÷ÓÃÔ¶³ ......
µÚÒ»²½£º *.mxmlÎļþÖÐ
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
creationComplete="playLoad()" color="#0F7085" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
<m ......
1¡¢mian.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="HTTPSrv.send();" width="242" height="442">
<mx:Script>
<!--[CDATA[
import mx.rpc.events.ResultEv ......
±¾ÎĽéÉÜһϹØÓÚflexÐÔÄÜÓÅ»¯,ÒÔ¼°flexÉú³ÉµÄµÄswf´óСÓÅ»¯.
1.¹Øµôbuild automaticly
2.רÐÄ×öÒ»¸öÏîÄ¿£¬¿ªÆðÀ´Ò»¸öflex builder
3.ÓÃflex builder¶ø²»ÓÃEclipse²å¼þ£¬ÕâÑù²»ÓÃÊÜÆäËüµÄ²å¼þµÄÓ°Ïì¡£
ÖÁÓÚºóÀ´ºÍÊý¾Ý¿âµÄ¾ÍÏȲ»ËµÁË,ÒòΪˮƽÓÐÏÞ
as3Ò»³öÀ´,flexÒ²¸ú×Å»ðÒ»°Ñ,ĿǰѧϰflexµÄÈËÒ²Ô½À´Ô½¶àÁË,µ«ÊǹúÄÚfl ......