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()·½·¨£¬Òª²»È»²»¹ÜÓÃŶ£¡
Ïà¹ØÎĵµ£º
FlexÖ§³ÖµÄÑùʽÉèÖ÷½Ê½
1.Ö±½ÓʹÓÃCSSÎļþ,ϵͳĬÈÏʹÓÃdefault.css
<mx:Style source=“style.css”/>
2.ʹÓÃ<mx:Style>±êÇ©
3.ʹÓÃstyleÉè¼ÆÆ÷£¨->MXML£©
4.ʹÓöÔÏóµÄgetStyle( )ºÍsetStyle( )
5.ʹÓÃStyleManagerÀà
Ö÷ÌâÊÇÒ»Ì×ÅäÖÃÍê³ÉµÄÑùʽ·ç¸ñ
FlexÌṩµÄ¼¸ÖÖÖ÷Ì⣬ÎļþÀàÐÍ.swc
......
½ñÌìÍ»·¢ÆæÏ룬ÏëÊÔÒ»ÊÔFlexµÄ±£´æ¹¦ÄÜ£¬ÖªµÀFileReferenceÕâ¸öÀàÀïÃæÖ±½Ó¾ÍÓÐsave·½·¨£¬APIҲ˵µÄºÜÇå³þ£¬¿ÉÊÇFBÀïÃæËÀ»î¾ÍÊÇÕÒ²»µ½Õâ¸ö·½·¨£¬ÎÞÄÎÉÏÍøÒ»ÕҲŷ¢ÏÖÔÀ´Õâ¸ö¹¦ÄÜÊÇFlash10µÄ¹¦ÄÜ£¬¶øÎÒµÄFBµÄĬÈÏÅäÖÃÊÇFlash9£¬¾ßÌåÐ޸ķ½·¨£ºµãÏîÄ¿ÊôÐÔ->FLex Compiler->Requiment Flash Player Version¸ÄΪ10.0.0¾Í¿É ......
±¾ÎıàÒëºóµÄ²¹¶¡ÏÂÔØÁ´½Ó http://download.csdn.net/source/1908278
¶àÄ£¿éÓ¦Óã¬Ã¿¼ÓÔØÒ»¸öÄ£¿é¶¼»áÖظ´¼ÓÔØÄ£¿éËùʹÓõÄRSL£¬ÏÖÔÚÔö¼ÓÒ»¸ö
private static var loadedRSLs:Dictionary = new Dictionary(); À´±£´æÊÇ·ñÒѼÓÔØ
mx.core.RSLListLoader
//////////////// ......
±¾ÏµÁÐÎÄÕÂÖ÷Òª½éÉÜÁ˹ØÓÚFlexÓë.NET½áºÏ¿ª·¢ÖеÄһЩ»¥²Ù×÷ÐÔ£¬°üÀ¨ÍøÂçͨÐÅ¡¢Êý¾Ý¼ÓÔØ¡¢Êý¾Ý´«Êä¡¢Îļþ´«Êä¡¢ÒÔ¼°Ó¦ÓÃÓÚFlexÓë.NETÐ×÷¿ª·¢µÄͨÐÅÍø¹Ø¿ªÔ´ÏîÄ¿FluorineFxµÄÏà¹Ø֪ʶµã¡£
¿ªÔ´ÏîÄ¿FluorineFx¾ÍÊÇרÃÅÕë¶Ô.NETƽ̨ÓëFlexͨÐÅÌṩµÄAMFÐÒéͨÐÅÍø¹Ø£¬ÎÒÃÇ¿ÉÒÔͨ¹ ......