flex ModuleLoader ERROR¼Ç¼
sdk3.2 Ï»áÓдËÎÊÌâ.
ÏîÄ¿ÖÐÏëÓÃmoduleLoader¼ÓÔØÄ£¿é,´ïµ½Ä£¿é»¯¿ª·¢µÄÄ¿µÄ.µ«ÊdzöÏÖÁ˹²Ïí±äÁ¿µÄÎÊÌâ:
TypeError: Error #1034: Ç¿ÖÆת»»ÀàÐÍʧ°Ü:ÎÞ·¨½« Object@406e651 ת»»Îª mx.messaging.messages.IMessage¡£
´úÂë+ÉÏ// import mx.managers.PopUpManager;
// private var popUpManager: PopUpManager
ÎÊÌâÔÝʱÏûʧ.ÔÚÍøÉϲéÕÒÔÒò:
ÐèÇó±³¾°£º
ͨ¹ýÊ÷Ðβ˵¥¼ÓÔضà¸ö²»Í¬µÄmodule¡£
ÎÊÌâÏÖÏó£ºmoduleÒ³Ãæ´æÔÚÍ϶¯£¬Popup£¬Alert»òÕßcolorpicker³öÏÖ´íÎóÐÅÏ¢£º
TypeError: Error #1034: Ç¿ÖÆת»»ÀàÐÍʧ°Ü:ÎÞ·¨½« mx.managers::PopUpManagerImpl@7155ac1 ת»»Îª mx.managers.IPopUpManager¡£
½â¾ö·½°¸£º
ÔÚApplication¼ÓÈëÈçÏ´úÂëÒýÓãº
<mx:Script>
<![CDATA[
import mx.managers.DragManager;
import mx.managers.IPopUpManager;
/* Create dummy variables. */
//±ÜÃâ³öÏÖ£ºÎÞ·¨½« mx.managers::PopUpManagerImpl@52a09a1 ת»»Îª mx.managers.IPopUpManager ´íÎó
private var dragManager : DragManager;
private var popUpManager : IPopUpManager;
//process....
]]>
</mx:Script>
ÎÊÌâÔÒò·ÖÎö£º
ÊôÓÚModuleLoader shared code problem.
µ±ModuleÖÐʹÓÃmanagersʱ£¨ÈçPopUpManager£¬DragManager, HistoryManagerµÈ)Ôò¿ÉÄܳöÏÖÕâ¸öÎÊÌâ(µ±applicationÀïÔÚloader֮ǰûÓÐÒýÈëÕâЩmanagerµÄÒýÓÃʱ)¡£
managerµÄ·½·¨ÊǾ²Ì¬·½·¨£¬Õû¸öÓ¦ÓóÌÐòÖд´½¨ÁËÒ»¸ö¸Ãmanager½Ó¿ÚµÄ singletonʵÀý,µ«module½öÔÚ×Ô¼ºµÄApplication domainÖÐʹÓøõ¥Àý, µ±¶à¸ömoduleʹÓÃÍ
Ïà¹ØÎĵµ£º
flexµ¯³ö¶Ô»°¿òʾÀý³ÌÐò·ÖΪÁ½²¿·Ö£ºMain.mxmlºÍSimpleTitleWindowExample.mxml£¬ÆäÖÐMail.mxmlΪÖ÷³ÌÐòÎļþ£¬SimpleTitleWindowExample.mxmlΪ¶Ô»°¿òÎļþ£¬¿ÉÒÔͨ¹ýÐÞ¸ÄSimpleTitleWindowExample.mxmlÎļþÀ´Ð޸ĶԻ°¿òÉϵÄ×é¼þ¡£
Main.mxml
<?xml version="1.0" encoding="ut ......
Flex EventºÍJS EventÒ»Ñù£¬¶¼´æÔÚÒ»¸öʼþÁ÷£¬Õâ¸öʼþÁ÷³£³£»áµ¼ÖÂһЩÌäЦ½Ô·ÇµÄBugÒÔ¼°´íÎó£»
Event Flow
l Capturing:
ʼþ²¶»ñ½×¶Î£¬Èç¹ûÒ»¸ö°´Å¥B1·ÅÔÚÒ»¸öPanel P1ÈÝÆ÷µ±ÖУ¬µ±ÎÒÃǽ²P1×¢²áµã»÷ʼþEP£¬½«B1×¢²áµã»÷ʼþEB,Panel p1µÄ¸¸ÈÝÆ÷ΪApplication app£»
& ......
È¥ÄêÒò¼¼ÊõÐèÒª£¬Ñо¿Á˶Îʱ¼äflex3£¬Ê±¸ôÒ»Ä꣬±ÉÈ˸оõÍüµÄ²î²»¶àÁË£¬°¦£¬É¶¼ÇÐÔ°¡£¬ÏÖÔÚ£¬Adobe¹«Ë¾µÄflex°æ±¾ÒѾµ½4ÁË£¬²»¹ý»¹ÔÚbeta½×¶Î£¬ÏÖÔÚÊÇbeta2£¬´Óflex3 µ½flex4 ×îÖ±¹ÛµÄ±ä»¯¾ÍÊÇ»ùÓÚEclipseµÄIDE Flex Builder ¸üÃûΪ Flash Builder£¬
ÆäÖÐFlex 4 Ö§³ÖµÄÐÂÌØÐÔÓÐ:
1. Package explorer(°ü×ÊÔ´¹ÜÀíÆ÷)
ÖÕÓ ......