FLEX ERROR
发布时间:2020-12-15 04:26:16 所属栏目:百科 来源:网络整理
导读:Child elements specifying default property value must be contiguous 分析:FlashBuilder4的MXML文件上,不能把fx:Script.../fx:Script标签放在其它标签中间,如: ? ? s:Button label="aaa"/ ? ? ? fx:Script ? ? ? ? ? ![CDATA[? ? ? ? ? ? ? protected
Child elements specifying default property value must be contiguous
ArgumentError: Error #1063: Argument count mismatch Expected 0,got 1.
?I received this error when an event handler I created did not contain an expected parameter. Somehow the compiler missed it but an error was thrown in the browser. The fix was easy. I forgot to add in the event object. Adding that in fixed the problem.
? ? ? ? ? import flash.events.MouseEvent;
? ? ? ? directorySearch_txt.addEventListener(FocusEvent.FOCUS_OUT,directoryFocusOut);? ????????? // this line generated no errors in flex but generated errors at run time? ????????? public function directoryFocusOut():void {? ?????????????? // do something???? ????????? }? ????????? // adding the event object cleared the error? ????????? public function directoryFocusOut( event:FocusEvent):void {? ?????????????? // do something???? ????????? } ? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |