flexʵÏÖ¶ÁÈ¡±¾µØÎļþ
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
private var loader:URLLoader = new URLLoader();
private var request:URLRequest = new URLRequest("a.txt");
private function initComplete():void
{
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete);
}
private function onComplete(event:Event):void
{
var loader:URLLoader = event.target as URLLoader;
if (loader != null)
{
trace(loader.data);
}
else
{
trace("loader is not a URLLoader!");
}
}
Ö®ËùÒÔÒª¶ÁÈ¡±¾µØÎļþ£¬ÊÇÒòΪÎÒûÓа²×°FlexDataServiceûÓз¢ÅäÖÃWebServiceµÄWSDLËùÒÔ´ÓÎı¾ÖаÑËü¶Á³öÀ´£¬¸³Öµ¸øWebServiceµÄwsdlÊôÐÔ£¬µ«ÊÇÎÒ¿´FlexDeveloperGuidÉÏÓÐÒ»¾ä»°
You configure destinations in the Flex services configuration file
or a file that it includes by reference.
ÕâºÃÏñÊÇ˵¿ÉÒÔ²»ÓÃFDS,µ«ÊÇÓв»ÖªµÀÔõôŪ£¬Ö»ºÃÓÃÕâ¸ö²»°²È«µÄ·½·¨£¬ÆäʵÎÒÃÇ¿ÉÒÔ°Ñ×Ö·û´®¼ÓÃÜ....ºÇºÇ
¶ÔÁËÕâÑùдµÄʱºòÐèҪעÒâÒ»µãÊǸøWebServiceµÄwsdlÖ¸¶¨ÁËÖ®ºó»¹ÐèÒªµ÷ÓÃÒ»¸öloadWSDL()·½·¨£¬Òª²»È»²»¹ÜÓÃŶ£¡
Ïà¹ØÎĵµ£º
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Panel width="458" height="313" layout="absolute">
<mx:Label id="lbl" x="19" y="10" text="" width="171" height="20"/>
<mx:DataGrid id="dg" x="19" y="58" dataProvider="{arr}" editable="true" ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application fontSize="12" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
public var treeXml: XML = <nodes name="ËùÓÐ">
&n ......
1.ÏÂÔØeclipseµÄ²å¼þ°ü£ºFB3_WWEJ_Plugin.exe
µØÖ·£ºhttp://trials.adobe.com/Applications/Flex/FlexBuilder/3/FB3_WWEJ_Plugin.exe
2.ÔÚÈÎÒâĿ¼½¨Ò»¸öÒÔϽṹµÄĿ¼£ºflex_plugin->eclipse->pluginsºÍfeatures
3.½øÈëFlex Builder 3 µÄ°²×°Ä¿Â¼ ½«pluginsĿ¼ÏÂËùÓÐÒÔ com.adobe ¿ªÍ·µÄÎļþ»òÎļþ¼Ðcopyµ½ÉÏ ......
±¾ÎıàÒëºóµÄ²¹¶¡ÏÂÔØÁ´½Ó http://download.csdn.net/source/1908278
¶àÄ£¿éÓ¦Óã¬Ã¿¼ÓÔØÒ»¸öÄ£¿é¶¼»áÖØ¸´¼ÓÔØÄ£¿éËùʹÓõÄRSL£¬ÏÖÔÚÔö¼ÓÒ»¸ö
private static var loadedRSLs:Dictionary = new Dictionary(); À´±£´æÊÇ·ñÒѼÓÔØ
mx.core.RSLListLoader
//////////////// ......
firefoxϵ±flashÉèÖòÎÊý wmode Ϊ transparent »òÕß Opaque ʱºòÎı¾¿òÖÐÊäÈëÖÐÎÄ»á³öÏÖÎÊÌâ¡£
µÍ°æ±¾µÄfirefoxÖÐÎÞ·¨ÊäÈëÖÐÎÄ£¬¸ß°æ±¾ÖÐÔò³öÏÖÂÒÂë¡£
ÂÒÂëÓëflashºÍÒ³Ãæ±àÂ뷽ʽ¶¼Ã»ÓйØÏµ£¬ÊÇfirefoxµÄbugÔì³ÉµÄ¡£
½â¾ö·½·¨Ö»ÓÐʹÓÃwmodeµÄĬÈÏÖµ£¬µ«ÊÇÕâÑùʹµÃflashÔÚÕû¸öÒ³ÃæµÄ×îÉϲ㣬divµÈ¶¼»á±»ÆäÕÚµ²×¡¡£
¼Ç ......