182008
 

public function parse(loadedStr:String):Boolean
  {
   var xml:XML = new XML(loadedStr);
   try{
//parse
        return true;
   }catch(error:Error)
   {
    return false;
   }
  }

这样的代码结构有错???Flex Builder就给我报了函数没有返回值。FT!

必须要这样才正确。

public function parse(loadedStr:String):Boolean
  {
   var xml:XML = new XML(loadedStr);
   try{
//parse
        return true;
   }catch(error:Error)
   {
    return false;
   }
return true;
  }

 Posted by at 11:44 上午  Tagged with:

  2 Responses to “够无语的Flex Builder”

  1. 可能是IDE认为您的代码写的难以理解,原谅它吧

  2. 好吧……只能这样想了,我写的代码IDE疯了……

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>