1 Reply Latest reply on Sep 3, 2009 1:23 PM by andreasfridholm

    adding japanese characters to AS

    DPSwebmaster Level 1

      I need to add some Japanese characters into AS in Flash within a function such as

       

      function my_clean_char(x) {
          var okchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧"
          okchars += "abcdefghijklmnopqrstuvwxyz天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧"
          okchars += "0123456789"
          okchars += "-, ()."
          if(okchars.indexOf(x) >= 0) {
              return true
          } else {
              return false
          }
      }

       

      this displays ok within this forum but in the AS all I see is small boxes where the japanese characters are. Anyway to fix this?

        • 1. Re: adding japanese characters to AS
          andreasfridholm Level 1

          Dunno, maybe a font problem? Don't know how to fix it though

           

          Date: Thu, 3 Sep 2009 14:22:05 -0600

          From: forums@adobe.com

          To: andreasfridholm@hotmail.com

          Subject: adding japanese characters to AS

           

           

          I need to add some Japanese characters into AS in Flash within a function such as

           

          function my_clean_char(x) {

              var okchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧"

              okchars += "abcdefghijklmnopqrstuvwxyz天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧"

              okchars += "0123456789"

              okchars += "-, ()."

              if(okchars.indexOf(x) >= 0) {

                  return true

              } else {

                  return false

              }

          }

           

          this displays ok within this forum but in the AS all I see is small boxes where the japanese characters are. Anyway to fix this?

          >