/**

  * @param1 원본

  * @param2 찾을문자

  * @param3 바꿀문자

  */

  private function replaceAll( source:String, find:String, replacement:String ):String

  {

         return source.replace(new RegExp(find, "g"), replacement);

  }

 



 /**

  * @param1 원본

  * @param2 찾을문자

  * @param3 바꿀문자

  */               

  private function replaceAll( source:String, find:String, replacement:String ):String

  {

         return source.split( find ).join( replacement );

  }


[출처] : Flex doesn't have a String#replaceAll()?

저작자 표시 비영리 변경 금지
신고
YOUR COMMENT IS THE CRITICAL SUCCESS FACTOR FOR THE QUALITY OF BLOG POST