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);
Ïà¹ØÎÊ´ð£º
Õý³£Çé¿öÏ£¬Ê¹ÓÃdatagird°ó¶¨Ò»¸öarraycolltetionµÄʱºò£¬ÐèÒª½øÐÐÈçÏ´úÂë
XML code:
<mx:DataGrid x="10" y="20" dataProvider="{employees}">
<mx:colum ......
ÎÒ°´ÕÕÍøÉÏÀý×Óhttp://fhuan123.javaeye.com/blog/427179#
´îÁËÍÆËÍ¿ò¼Ü£¬²¢´ïµ½ÁËÔ¤¶¨Ð§¹û£ºÊý×Ö²»¶Ï±ä¶¯£¬µ«Êǽ«»úÆ÷ÏÐÖÃÒ»»áµÄ»°ÔÙ»ØÀ´¿´£¬ËùÓÐÒ³ÃæµÄÊý×Ö¶¼²»»áÌø¶¯ÁË£¬ÊDz»ÊÇchannel³¬Ê±ÁË£¿»¹ÊDZðµÄÔÒò£¿Çó½ ......
ÎÒÓÐÒ»¸ödashboard.mxmlÎļþµ÷ÓÃÁËÒ»¸öJavaÀàµÄgetNextValueµÄ·½·¨£¬´ÓÊý¾Ý¿âÖлñÈ¡Êý¾Ý¡£
ÎÒµÄ×ö·¨ÊǰÑÕâЩÊý¾ÝÔÙ·â×°³ÉÒ»¸öJavaÀࣺRecord.java¡£µ±µ÷ÓÃgetNextValue·½·¨Ê±£¬·µ»ØRecordµÄ¶ÔÏó¡£ÏÖÔÚÕâ¸ödashboard ......
ÎÒÔÚ±ðÈ˵ĵçÄÔÉϽ«flex¿Í»§¶ËÖ±½ÓѹËõ£¬È»ºóÔÚ×Ô¼ºµÄ»ú×ÓÉϽâѹºó´ò¿ªÊ¹Ó㬵«³öÏÖÒ»¸öerror£ûFlex 0.0 (1): Flex SDK location "D:\FXwin\sdks\3.2.0" does not exist.£ý ÎҰѰ²×°°ü½âѹÔÚE:\program fi ......
×î½ü¿ª·¢ÏîÄ¿ÐèÒªÓõ½flexµ«ÊÇһֱû½Ó´¥¹ý£¬²»ÖªµÀÔõôÓÃ`
ÄǸöÓÃÆðÀ´×ÔÎҸоõºÃÏñ»á»»µÄ»°¸üºÃ¡£¡£¡£¡£²»»á»»×ö³öÀ´µÄ¶«Î÷Ò²ºÃ¿´²»µ½ÄÄÀïÈ¥£¡¶àÊÇ×öÄÚÍøÓõĶ«Î÷£¡£¡²»»á»»µÄ»°ÄñðÈË×öºÃµÄSWF¿´Äܲ»ÄÜ×Ô ......