MyEclipse°²×°Flex 3 ²å¼þ¼°Ð½¨FlexÏîÄ¿ÑÝʾ
Ò»¡¢×¼±¸¹¤×÷£º
ËùÐèÒªµÄÈí¼þ£º
Tomcat 5£º http://tomcat.apache.org/
FlexBuilder3 beta2 ²å¼þ°æ: FB3_WWEJ_Plugin
Eclipse 3.3 : www.eclipse.org
»òÕß
MyEclipse 6.0£ºhttp://www.myeclipseide.com/
Blazeds.war£ºhttp://flexorg.wip3.adobe.com/blazeds/3.0.x/milestone/3978/blazeds-bin-3.2.0.3978.zip
¶þ¡¢°²×°¹ý³Ì£º
1. °²×°MyEclipse6.0¡£
2. °²×°FlexBuilder3 beta2 ²å¼þ°æ(FB3_WWEJ_Plugin.exe)£¬Çë²Î¿¼ÏÂͼËùʾ
£¨1£©Ë«»÷¿ÉÖ´ÐÐÎļþ
£¨2£©µ¯³ö¶Ô»°¿ò£¬²»ÓùÜËü£¬Ö±½Óµã»÷”OK”¾Í¿ÉÒÔÁË
£¨3£©ÏÖÔÚÊÇѯÎÊÄãÊÇ·ñÒª°²×°FLEX BUILDER 3²å¼þ£¬Ñ¡Ôñ“next”¡£
£¨4£©ÏÖÔÚÊÇѯÎÊÄãÊÇ·ñͬÒâÐÒ飬ѡÔñ“ͬÒ┣¬µã»÷“next”°´Å¥¡£
£¨5£©ÇëÄãÑ¡ÔñFLEX BUILDERµÄ°²×°Â·¾¶£¬Äã¿ÉÒÔ×ÔÐÐÑ¡Ôñ£¬È»ºóµã»÷“next”°´Å¥¡£
£¨6£©×¢Ò⣺ÕâÒ»²½ºÜÖØÒª£¬ÊÇÒªÄãÑ¡ÔñMyEclipse6.0ÖеÄEclipseµÄ°²×°Â·¾¶£¬Çë×Ð
ϸѡÔñ¡£
È»ºóµã»÷“next”°´Å¥¼´¿É¡£
£¨7£©È»ºóÄÍÐĵȴý£¬¹ýÒ»»á¶ù¿ÉÄܻᵯ³öÒ»¸ö¶Ô»°¿ò£¬Ñ¯ÎÊÄãÊDz»ÊÇ°²×°µÄÊÇEclipse3.2»ò3.3ÒÔ¼°¸ü¸ß°æ±¾£¬Èç¹ûÓУ¬Çë´ó¼ÒÑ¡Ôñ
“Proceed with Caution”°´Å¥¼´¿É¡£
£¨8£©´Ë½çÃæÊÇѯÎÊÄãÊDz»ÊÇÒª°²×°IEºÍFireFoxä¯ÀÀÆ÷ÉϵÄflash play
9£¬½¨ÒéÁ½Ïѡ---±ãÓÚµ÷ÊÔ¡£È»ºóµã»÷“next”°´Å¥¡£
£¨9£©µ¯³ö´°¿Ú£¬µã»÷“°²×°”¡£
£¨10£©´ò¿ªÄãFlexBuilder²å¼þ°²×°µÄÎļþ¼Ð(±¾ÈË°²×°Ê±,Ŀ¼±»×Ô¶¯´ò¿ª)£¬´ò¿ªÏÂÃæµÄ“eclipse”Îļþ¼Ð£¬½«featuresºÍpluginsÁ½¸öÎļþ¼ÐÀïÃæµÄÄÚÈÝcopyµ½MyEcipse6.0ϵÄeclipseÎļþ¼ÐÏÂ
µÄfeaturesºÍpluginsÁ½¸öÎļþ¼ÐÄÚ£¨Ò»Ò»¶ÔÓ¦ÉÏ£¬²»Òª·Å´í£©¡£
£¨11£©È»ºó½«FlexBuilder²å¼þ°²×°µÄÎļþ
¼ÐÖеÄsdks·ÅÈëµ½MyEcipse6.0ϵÄeclipseÎļþ¼ÐÏ¡£
£¨12£©ÅäÖûù±¾Íê³É¡£Ö»ÊÇÄã¾Í¿ÉÒÔÔÚ
MyEclipse6.0ÏÂÇл»ÊÓͼ£¬´ÓÖÐÕÒµ½Flex¶ÔÓ¦µÄµÄÊÓͼ½á¹¹¡£
ÔÚMyEclipse6.0Öв¿ÊðFLEXµÄWEB¹¤³ÌµÄ
¹ý³Ì
1£© ½¨Á¢FlexÏîÄ¿£¬Ê×ÏÈÔÚMyEclipseÏ´ò¿ªFlexÊÓͼ£¬ÓÒ¼ü½¨Á¢Flex¹¤³Ì¡£
ÔÚÆäÖÐÊäÈëÏîÄ¿Ãû³Æ£¬×¢Òâ:Server technologyϵÄApplication
server typeÇëÑ¡ÔñJ2EE£¬
È»ºóµã»÷“Next”°´Å¥¡£
2£©´ËÒ³Ãæµã»÷“New”°´Å¥---ΪÁ˽¨Á¢Tomcat·þÎñÆ÷ÒÔ¼°Ö¸¶¨Í¨ÐÅÎļ
Ïà¹ØÎĵµ£º
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt5.html
Èç¹ûÄúÒªÏÔʾ´óÁ¿ itemRenderer£ÎÞÂÛÔÚ DataGrid »¹ÊÇÔÚ AdvancedDataGrid ÖУÈç¹ûÎÞ·¨ÓÐЧ±àдÕâЩ itemRenderer, ÄúµÄÓ¦ÓóÌÐòÐÔÄÜ¿ÉÄÜÊܵ½¸ºÃæÓ°Ïì¡£ÒÔÏÂÊÇһЩ¿ÉÄÜÓÐËù°ïÖúµÄÌáʾ:
ÏÞÖÆʹÓà itemRenderer µÄÁÐÊý¡£ÊÇ·ñÕæµÄÐèÒª½«Ã ......
1. ÕûÌåµÄ½á¹¹·Ö²¼£º
¸÷Ä£¿éʹÓÃModuleÀ´»®·Ö£¬Ã¿¸öÄ£¿éµÄÒ³Ãæ¼°ÆäÏà¹ØµÄ×é¼þÔªËض¼ÊÇʹÓÃComponentÀ´»®·Ö£»
Ä£¿éµÄÇл»Ê¹ÓüÓÔصķ½Ê½£¬Ä£¿éÄÚ²¿µÄÇл»Ê¹ÓÃÒ³ÃæÌøתµÄ·½Ê½£»
¼¼ÊõÎÊÌ⣺ģ¿éµÄÇл»ÓëÒ³ÃæµÄÇл»µÄ¹ý³Ì£¡
ModuleLoaderÓëModuleManagerÖ®¼äµÄÈ¡ÉᣬѡÔñÁ˺óÕߣ¬¿É¿ØµÄ¸ü¶à£¬µ«ÊÇÄ¿Ç°µÄÓ°Ïì²¢²»´ó£¡
¹ØÓÚM ......
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä·µ»ØµÄÖµ¾ÍÊÇJsº¯ÊýËù·µ»ØµÄÖµ
Jsµ÷ÓÃAsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.exte ......
ÕâÑùµÄÒ»ÖÖÇé¿ö£º
ʹÓÃLoaderÈ¥loadÒ»¸öswf:
var fileURL:String = “assets/test.swf”
var swfLoader:Loader = new Loader();
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
swfLoader.load(new URLRequest(fileURL));
function swfLoaded(evt:Event):void{
&n ......
Flex×é¼þÄÚÖÃÁË´¦ÀíÍÏקʼþµÄ½Ó¿Ú£¬ÓÐЩ¿Ø¼þÒѾʵÏÖÁËÍÏק¹¦ÄÜ£¬±ÈÈçList¡¢DataGrid¡¢Menu¡¢
HorizontalList¡¢ PrintDataGrid¡¢TileList¡¢Tree£¬ÔÚÉèÖÃÏà¹ØµÄÍÏקÊôÐÔºó£¬ËüÃǶ¼¿ÉÒÔÔÚÏàͬÀàÐ͵Ä×é
¼þÖ®¼äÀûÓÃÊó±êÀ´ÊµÏÖÊý¾ÝµÄתÒÆ¡£
allowDragSelection ......