flex ½ÓÊÕ²ÎÊýµÄÎÊÌâ
flexÈçºÎ½ÓÊÕhtmlÀïµÄ²ÎÊý¡£Ïêϸ˵Ã÷һϡ£ÎÒÓÃBlaedzȥȡremoteObject£¬Ô¶³Ì¶ÔÏóÊÇÓÃjavaµÄjdbc´ÓÊý¾Ý¿âÀï²éѯ³öÀ´µÄ£¬µ«²éѯ·½·¨ÀïÒªÓÃÒ»¸ö²ÎÊý¼ÙÉèÊÇÒ»¸öÖ÷¼üid¡£È»ºóÎÒÓÃjspÈ¥¼ÓÔØflexÉú³ÉµÄswfÎļþ£¬ÎÊjspÀïÎÒ¸ÃÈçºÎÉùÃ÷Õâ¸ö²ÎÊýÖ÷¼üid£¬mxmlÀïÓÖ¸ÃÈçºÎÈ¥½ÓÊÜÕâ¸ö²ÎÊý£¬Ð»Ð»¡£
asµ÷ÓÃjs
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "dtid= <%=request.getParameter("dtid")%>&dtname= <%=gb%>&dtnum= <%=request.getParameter("dtnum")%>",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "newflex",
"quality", "high",
"bgcolor", "#cccccc",
"name", "newflex",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
½ÓÊÕ£º dtid=Application.application.parameters.dtid;
FlashVars GOOGLEä¯ÀÀÆ÷ÒÔ¼°×îеÄFF3.5²»ÈÏ¡£
µ÷ÓÃJSÒªºÃÒ»µã
flexµ÷ÓÃaddCallbackÌí¼ÓÒ»¸ö»Øµ÷º¯Êý£¬Íⲿµ÷Óü´¿É
Ïà¹ØÎÊ´ð£º
ÎÒÓÐÒ»¸ödashboard.mxmlÎļþµ÷ÓÃÁËÒ»¸öJavaÀàµÄgetNextValueµÄ·½·¨£¬´ÓÊý¾Ý¿âÖлñÈ¡Êý¾Ý¡£
ÎÒµÄ×ö·¨ÊǰÑÕâЩÊý¾ÝÔÙ·â×°³ÉÒ»¸öJavaÀࣺRecord.java¡£µ±µ÷ÓÃgetNextValue·½·¨Ê±£¬·µ»ØRecordµÄ¶ÔÏó¡£ÏÖÔÚÕâ¸ödashboard ......
ÎÒÔÚjavaÀàдÁËÒ»¸öµÇ½·½·¨£º
//Óû§ÃûºÍÃÜÂëµÇ½
public boolean loginDemo(String name,String password){
Login login = new Login();//id,name,password 3¸ö²ÎÊý
boolean resultLogin=fal ......
ʹÓÃflexµÄExternalInterface.callº¯Êýµ÷ÓÃjsº¯Êý£¬±ÈÈçExternalInterface.call£¨recFlex,"hello"£©¡£½«recFlexº¯ÊýдÈëindex.template.htmlÒ³ÃæÃ»ÓÐÎÊÌâ¡£µ«ÊÇÏÖÔÚÏ뽫flexÉú³ÉµÄswfÎļþµ¼Èëµ½Ò»¸öweb·þÎ ......
ʹÓÃBlazeds½øÐÐjavaºÍflexÖ®¼äµÄͨÐÅ¡£
ÔÚMyEclipseÏ£¬½¨Á¢Ò»¸öFlex project¡£ServerÑ¡ÔñJ2EE£¬Tomcat6¡£
ÅäÖÃÍê³Éºóflex¹¤³ÌÏÂÓÐËĸöÎļþ¼Ð£º
¢Ùbin-debug ¢Úhtml-template ¢Ûlibs ¢Üsrc
²âÊÔÔËÐÐÕý³£¡£
ÏÖÔ ......