Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

insert hebrew letters in variables

Explorer ,
Mar 23, 2015 Mar 23, 2015

i am trying unsuccessfully to write a code which includes hebrew letters, some thing like:

var hebrew_words:Array= [״אבא״,״אבג״,״גבע״]

how can i do it?

TOPICS
ActionScript
478
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2015 Mar 23, 2015

i assume you're using that to display in a textfield.  if so, make sure you're embedding your font and that it's capable of displaying hebrew and you may need to use some rtl legerdemain.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 24, 2015 Mar 24, 2015

the problem is not with the text field which is ok.

the problem is simply writing the script in the actions .צילום מסך 2015‏.03‏.24 ב‏.7.59.53 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2015 Mar 24, 2015

use a font that supports hebrew characters.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 25, 2015 Mar 25, 2015

how can i change the fonts used to write scripts?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 25, 2015 Mar 25, 2015

click edit>preferences>code editor>font>select an appropriate font.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 25, 2015 Mar 25, 2015

i did as you suggested however the problem with the right to left writing. the letters overlaps when trying to put comma between words in array

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 25, 2015 Mar 25, 2015

create an xml or plain text file with that arrary and load it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 11, 2015 Apr 11, 2015
LATEST

i created plain text file with the array but when pasting in actions still get LTR instead RTL.

very strange - when i paste it in "actions" the letters are LTR and unreadable however when i paste it again (for example in this post - as you can see)  it is ok.

so the problem is in mixing lft and rtl in code editor. tried to change preferences but no result.

var milim:Array=[״דג״,״בן״,״בת״,״פז״,״הר״,״פר״,״טל״,״כר״,״קר״,״תן״,״אף״,״גל״,״דב״,״דף״]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines