Flex RPGÓÎÏ·DEMO (2)£ºØ²ÕÛƪ
ÓÉÓÚ±¾ÈË×î½üæÓÚÕÒ¹¤×÷ºÍ±ÏÒµÉè¼Æ£¬Ã»ÓÐʱ¼äÀ´¼ÌÐøÕâ¸öϵÁУ¬ ֻдÁ˵Úһƪ£¬×Ô¼ºÒ²Éî¸Ð²ÑÀ¢£¬Õâһƪ½éÉÜÒ»ÏÂÕâ¸ödemoµÄÕûÌå¼Ü¹¹°É£¬ÏÈÌùÏÂÏÂÔصØÖ·¡£http://download.csdn.net/source/2118707
Ä¿Ç°·þÎñ¶ËÒÑÍê³ÉµÇ½ע²áÄ£¿é£¬Ê¹ÓÃSocket±à³Ì£¬TCPÐÒé¡£µÈ·þÎñ¶ËÍê³É½«ÍêÕûµÄ±àдһ¸öϵÁеĽ̡̳£~~
ÁíÓ¦½ìÖص㱾¿ÆÉúÕÒÈí¼þÐÐÒµ¹¤×÷£¬º¹¡£ÎÒµÄÓÊÏäyaojian198713@163.com ÓÎÏ·ÐÐÒµ×îºÃ¡£
ÏÈ°ÑͼÌùÉÏ°É
MainSceneÀà¼Ì³ÐÖÁUIComponent£¬Ö÷ÒªÍê³É¼ÓÔØmap£¬role£¬mainµÄxmlÅäÖÃÎļþ£¬²¢Ìí¼Ómap£¬buildingµ½Ö÷³¡¾°
MapÀàÖ÷ҪΪÏÔʾµØͼ£¬µØͼʹÓý«Ð¡µØͼ·Å´óµ½Êµ¼ÊµØͼ´óС£¬Êµ¼ÊµØͼʹÓÃÇÐƬ·½Ê½£¬¸ù¾ÝÖ÷½ÇλÖÃʵʱ¼ÓÔصØͼÇÐƬ¡£
search°üÏÂΪѰ·À࣬²Î¿¼ÁËÍøÉϵÄA*Ѱ·Ëã·¨£¬
eventsÏÂΪ±¾demoÖÐʹÓõÄÅÉÉúʼþ¡£
changeÏÂChangeArrayÀ࣬ÒòΪµØͼ±à¼Æ÷ʹÓõÄÊÇÉîÀ¶É«ÓÒÊÖ£¬±ØÐ뽫ÕÏ°Êý×éת»»¡£
utilÏÂÖ÷Òª°üº¬Ò»Ð©¾²Ì¬·½·¨£¬°üÀ¨ÏñËØ×ø±êÓëÍø¸ñ×ø±êÖ®¼äµÄת»»£¬ÏñËØ×ø±êÓëµØͼÇÐƬ×ø±êÖ®¼äµÄת»»£¬Â˾µµÈ
ImageLoaderÀàÖ÷ÒªÍê³É¼ÓÔØͼƬ×ÊÔ´£¬¿É¼ÓÔص¥¸öͼƬ»òÒ»×éͼƬ£¨´«ÈëͼƬURLÊý×飬»ñÈ¡BitmapDataÊý×飩¡£
building°üÏÂΪ¼ÓÔؽ¨ÖþÎ¼ÓÔØrole£¬´¦ÀíÕÚµ²£¨²»¹»ÍêÉÆ£©¡£
role°üÏÂΪ½ÇÉ«À࣬ÓÉRoleManagerÏòbuildingÊäËÍroleºÍ¼ÓÔØ×ÊÔ´µÈ¡£
ÌùϽØͼ°É£º
Õâ¸ödemo¾Í½éÉܵ½Õâ°É¡£Ï£ÍûÄܸøÄã´øÀ´°ïÖú¡£¡£¡£¡£
Ïà¹ØÎĵµ£º
¸Õ½Ó´¥flex. ÔÚÓÃHTTPService»ñÈ¡XML¸ñʽÊý¾ÝÔٰ󶨸øDataGridʱ.Óöµ½Ò»¸öºÜ"Ææ¹Ö"µÄÎÊÌâ ¾ÍÊǵ±xmlµÄÌõĿСÓÚµÈÓÚ1ʱ,¾Í»á³ö´í. ºÜÊÇÓôÃÆÁËÒ»¶Îʱ¼ä ºóÀ´²Å·¢ÏÖ. ÎÊÌâ¼´²»ÊdzöÔÚHTTPServiceÉÏ,Ò²²»ÊdzöÔÚDataGridÉÏ. ¶øÊdzöÔÚ RESULT_FORMAT_E4X ÐÍÊý¾ÝÀàÐÍת»¯ÎªArrayCollectionÉÏ ÔÀ´ event.result ·µ»ØµÄÊÇob ......
PopUpEffect.as
package
{
import flash.display.DisplayObject;
import mx.core.IFlexDisplayObject;
import mx.effects.Blur;
import mx.events.TweenEvent;
import mx.managers.PopUpManager;
public class PopUpEffect
{
public function PopUpE ......
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt3.html
ÔÚ±¾ÏµÁÐµÄµÚ 2 ²¿·ÖÖÐ, ÎÒÏòÄúչʾÁËÈçºÎʹÓà MXML ºÍ ActionScript ´´½¨Íⲿ itemRenderer¡£ÔÚÎÒÓùýµÄʾÀýÖÐ, ÓÐÒ»¸öµ÷¶È×Ô¶¨Ê¼þ BuyBookEvent µÄ Button£ÕâÑùÓ¦ÓóÌÐò¿ÉÒÔ¶ÔËü×÷³öÏìÓ¦¡£±¾ÎĽøÒ»²½ÌÖÂÛÓë itemRenderer µÄͨÐÅ¡£
ÎÒ ......
²»¿É·ñÈÏMyEclipseÏÖÔÚÔ½×öԽǿ´ó£¨±Ï¾¹ÊÇÊշѵÄÂ£¬Ç¿´óµ½¿ªÊ¼ÅųâµÚÈý·½²å¼þ£¬ÕâÓÐЩ²»·ûºÏEclipseµÄ³õÖÔ£¬Eclipse¾ÍÊÇ¿¿Á¼ºÃµÄÀ©Õ¹ÐÔ·¢Õ¹ÆðÀ´µÄ¡£
MyEclipse´Ó7.5¿ªÊ¼£¨7.0ûÓùý£¬²»ÖªµÀ£©£¬ÍêÈ«¸Ä±äÁ˳ÌÐò½á¹¹£¬ÏÖÔÚÀ©Õ¹µÚÈý·½²å¼þ ÔÙҲûÓÐÒÔÇ°ÄÇô·½±ãÁË£¬ÌرðÊÇlink·½Ê½£¬Õâ¶Ô³ÌÐòÔ±À´ËµÊÇÖÂÃüµÄ¡£Flex Plugin ° ......
¹¤×÷Á÷Ó¦ÓÃÔÚÆóÒµÐÅÏ¢»¯½¨ÉèÖÐÔ½À´Ô½À´ÆÕ¼°£¬¶øÇÒÓû§³£³£ÒªÇó×Ô¼º¿ÉÒÔÔÚÒ»¶¨³Ì¶È¸ù¾Ý×Ô¼ºÒµÎñÐèÇó¶ÔÁ÷³Ì½øÐÐÐ޸ġ£¶øÎÒÃÇÒÔÇ°×öÁ÷³ÌÉè¼ÆÆ÷¶¼ÊÇ»ùÓÚC/Sģʽ£¬ÕâÑù¾ÍÔì³ÉÓû§ÔÚʹÓõÄʱºòÐèÒªÀ´»ØÇл»Á½¸öϵͳ£¬¶øÇÒÕâÖּܹ¹²»ÀûÓÚ³ÌÐòͳһÉý¼¶¡£ËùÒÔÎÒ´òË㿪·¢Ò»¸ö»ùÓÚFlexµÄÁ÷³ÌÉè¼ÆÆ÷¡£ ´ÓÒÔÍù¾ÑéÀ´¿´£¬×ö± ......