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 xmlns:mx=
"http://www.adobe.com/2006/mxml"
xmlns:assql=
"com.maclema.mysql.mxml.*"
& ......
flashºÍflexÕë¶Ô²»Í¬µÄÄ¿µÄ£¬ÌṩÁË3ÖÖ²»Í¬µÄ×ø±êϵ¡£
È«¾ÖµÄ¾ÍÊÇ(stage¼¶±ðµÄ)
±¾µØ×ø±êϵ£¨×é¼þ¼¶±ðµÄ£©
ÄÚÈÝ×ø±êϵ£¨Ïà¶ÔÓÚ±¾µØ×ø±êϵ˵µÄ ......
1.ÔÚ<Object>ºÍ<embed>ÖÐÉèÖÃflashVars²ÎÊý£¬ÀýÈ磺
<object id=’mySwf’ classid=’clsid:D27CDB6E-AE6D-11cf-96B8-444553540000′ codebase=’http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab’ height=’100%’ width=’100%&rs ......
±¾ÏµÁÐÎÄÕÂÖ÷Òª½éÉÜÁ˹ØÓÚFlexÓë.NET½áºÏ¿ª·¢ÖеÄһЩ»¥²Ù×÷ÐÔ£¬°üÀ¨ÍøÂçͨÐÅ¡¢Êý¾Ý¼ÓÔØ¡¢Êý¾Ý´«Êä¡¢Îļþ´«Êä¡¢ÒÔ¼°Ó¦ÓÃÓÚFlexÓë.NETÐ×÷¿ª·¢µÄͨÐÅÍø¹Ø¿ªÔ´ÏîÄ¿FluorineFxµÄÏà¹Ø֪ʶµã¡£
¿ªÔ´ÏîÄ¿FluorineFx¾ÍÊÇרÃÅÕë¶Ô.NETƽ̨ÓëFlexͨÐÅÌṩµÄAMFÐÒéͨÐÅÍø¹Ø£¬ÎÒÃÇ¿ÉÒÔͨ¹ ......