Child elements specifying default property value must be contiguous
<s:Button label="aaa"/><fx:Script><![CDATA[protected function button1_clickHandler(event:MouseEvent):void{txt.text ="的确很有flash的风范啊,难怪给改叫FlashBuilder";}]]></fx:Script><org:FormPanel id="a1" isClickable="true" isClose="false" layout="vertical" ><s:Button label="HAHA" click="button1_clickHandler(event)"/><mx:Label id="txt" text="速度好像快了很多啊" x="3" y="26"/></org:FormPanel>
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 }
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 }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。