Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÀàµÄÉî¸´ÖÆ£¨À©Õ¹£©


1£º¼ÙÈçÄãÒªÉî¸´ÖÆÒ»¸öÀàA
public class A
{
¡¡¡¡public var vo:B
}
ÄãÊ×ÏÈÒª×öµÄÊÇ×¢²áÀ࣬ÀýÈ磺
public static function registerClass():void
  {
¡¡¡¡//°Ñ×ÓÀà×¢²á
   PackUtil.registerClass(B);
  }
//½ÓÏÂÀ´¾ÍÊǿˡ£º
¡¡¡¡var cloneA:A=clone(A);
cloneA¾ÍÊÇÎÒ ......

FlexÖÐÎļþµÄÉÏ´«ÏÂÔØ

¹Ø¼ü´Ê£ºÎļþÉÏ´«£¬ÎļþÏÂÔØ£¬FileReference£¬FileReferenceList£¬FileFilter
ÔÚÏîÄ¿¿ª·¢¹ý³ÌÖУ¬¾­³£»áÓöµ½ÎļþÉÏ´«ÏÂÔØµÄÎÊÌâ¡£µ«ÔÚflexÖÐÓÉÓÚ°²È«É³ÏäµÄÔ­Òò£¬flex³ÌÐò²»ÄÜÖ±½Ó·ÃÎʱ¾µØÎļþ¡£µ«ÊÇflex SDKÖÐÌṩÁËFileReferenceºÍFileReferenceListÁ½¸öÀ࣬¿ÉÒÔͨ¹ýÕâÁ½¸öÀàÀ´ÊµÏÖ£¬ÕâÁ½¸öÀàλÓÚflash.net°üÖС£
Ò»¡¢ ......

flex datagrid ¶à¸öµ¥Ñ¡°´Å¥

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute" xmlns:ns1="com.component.*">
<mx:Script>
 <![CDATA[
  import com.component.DataHBox;
  import com.component. ......

Flex Framework Fundamentals

ת×Ô£ºhttp://www.cnblogs.com/sharplife/archive/2007/09/03/880641.html
×î½ü¿´Ê±Ñ§Ï°FlexÓ¦Ó㬿ªÊ¼¶ÔFlexºÍFlashµÄ¹ØÏµÓÐЩģºý£¬¶ÁÁËOreillyµÄProgramming Flex
2²ÅËãÊÇÃ÷°×Щ£¬ÏÖ¼ÇÏ¡£
1¡¢FlexÓ¦ÓóÌÐòµÄÉúÃüÖÜÆÚ
FlexÓ¦ÓÃ¾ÍÆä¸ù±¾ÉϽ²¾ÍÊÇFlashÓ¦Óã¬Ö»²»¹ýÆäÊÇ»ùÓÚFlex
Framework£¨ÓÉActionScriptд¾Í£©¿ª· ......

flexµÄ»ù´¡

1.ÔÚflexÀïÃæÏÔʾ²éѯºóµÄlist¼¯ºÏÊý¾Ý
 private var model:ModelConfig=ModelConfig.getOne();
 ModelCongÀàÖдæ·ÅһЩȫ¾ÖµÄ¶«Î÷ҪʵÏÖ½Ó¿Úimplements IModelLocator
£¨Èçpublic var root:String="http://192.168.1.68:8090/OA";--ϵͳÊý¾Ý£¬
public var users:UsersVO=new UsersVO();ÓÃÀ´´æ´¢ÐÅÏ¢µÄ±äÁ¿£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ