Flex SWFLoader ¼ÓÔØµÄ Application ÔõÃ´Ð¶ÔØ£¿
ÈçÌ⣬ÇëÏê½â£¡£¡£¡
ʹÓÃflash.media.SoundMixer.stopAll();ÊÔÊÔ
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
public class LoaderExample extends Sprite {
private var url:String = "Image.gif";
public function LoaderExample() {
var loader:Loader = new Loader();
configureListeners(loader.contentLoaderInfo);
loader.addEventListener(MouseEvent.CLICK, clickHandler);
var request:URLRequest = new URLRequest(url);
loader.load(request);
addChild(loader);
}
private function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispatcher.addEventListener(Event.INIT, initHandler);
Ïà¹ØÎÊ´ð£º
ÎÒÊǸöjava ²ËÄñ µ«ÊǶÔjava ºÜ¸ÐÐËȤ Ïë×ö¸öÀàËÆÍ¨Ñ¶qq·½ÃæµÄ¼´Ê±Í¨Ñ¶Èí¼þ µ«ÊÇȱ·¦Õâ·½ÃæµÄ×ÊÁÏ £¡£¡Ï£ÍûÄÄλ¸ßÊÖÄܸøÎÒµã×ÊÁÏ ×îºÃÊÇȫһµãµÄ ÈÃÎÒ¼ÌÐø×ßÏÂÈ¥ £¡£¡ ÖÔÐĸÐл £¡£¡£¡ ÓÊÏä rz_string@126.com ......
×î½üÔÚ¿´¹ØÓÚflexºÍjavaÏà¹ØµÄ¶«Î÷£¬ÔÚÍøÉÏÏÂÁËЩDEMO·ÅÔÚEclipseÏÂÔËÐÐÒ²¿ÉÒÔ£¬¿É¾ÍÊÇ×Ô¼ºÐ´¸ö¼òµ¥µÄÀý×ÓÒ»²¿ÊðTomcat¾Í±¨´í£¬ºÜÊÇÓôÃÆ¡£¡£¡£
ÄÇλ´óÏÀ×ö¹ýÕâ·½ÃæµÄ¿ª·¢£¬°Ñ¿ª·¢²½Öè·ÖÏíϰɣ¡£¡£¡
ÍøÉÏÏÂÔØµÄ´ó² ......
Õý³£Çé¿öÏ£¬Ê¹ÓÃdatagird°ó¶¨Ò»¸öarraycolltetionµÄʱºò£¬ÐèÒª½øÐÐÈçÏ´úÂë
XML code:
<mx:DataGrid x="10" y="20" dataProvider="{employees}">
<mx:colum ......
ÎÒÏëÓÃflexµ÷ÓÃservletÖеÄdoget·½·¨£¬Çë´ó¼Ò°ïæ¿´Ò»ÏÂÄÄÀïÓÐÎÊÌâ~¶àл
servlet¶Ë£º
package com.abc.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletExcept ......
ÎÒÔÚjavaÀàдÁËÒ»¸öµÇ½·½·¨£º
//Óû§ÃûºÍÃÜÂëµÇ½
public boolean loginDemo(String name,String password){
Login login = new Login();//id,name,password 3¸ö²ÎÊý
boolean resultLogin=fal ......