بسم الله الرحمن الرحيم
In the name of Allah the compassionate the most mercifull
  Who is Allah ?

May peace and Allah mercy and blessings be upon you   السلام عليكم ورحمة الله وبركاته

Flaraby3 Bidirectional Arabic Persian Urdu and Latin support in Flash
Home | What is Flaraby3 ? | Demonstration | Important Notes | Download Flaraby3Lite (FREE) | Flaraby3 / Flaraby3Lite License | Flaraby3 Public Methods | Flaraby3 Events | Example Code | Clients | Need Arabic in Flash Help ? | Feedback | Flaraby Actionscript3 Flex Demo (New) | Video Tutorial | Arabic Translation / Localisation | Advertise | Buy Flaraby3

 

Flaraby3 demonstration (Last updated 16-10-2007)








Flaraby3

فلارابي3 هو مكون (.mxp) يدعم اللغة العربية في الفلاش ويمكن من عرض النص العربي أو الفارسي أو الأوردي مع النصوص اللاتينية مثل الإنجليزية والفرنسية والإسبانية والإيطالية في ملفات swf. في وقت التشغيل. فلارابي3 يمكن إستخدامه في الفلاش بدءاً من Flash MX 2004 ويمكن عرضه على Flash player 6 فما فوقه (Actionscript 2).

Flaraby3 is a Flash Arabic support component (.mxp) that enables Flash bidirectional Arabic, Persian or Urdu and Latin text in .swf files at runtime. Flaraby3 can be used starting from Flash MX 2004 and above, and can work on Flash player 6 and above (Actionscript 2 only).




*- فلارابي3 يدعم الآن اللغة العربية والفارسية والأوردية بالإضافة إلى اللغات اللاتينية مثل الإنجليزية والفرنسية والإسبانية والإيطالية.

*- فلارابي3 يدعم خاصية التشكيل في النص العربي.

*- يجب إستخدام TextFormat مع فلارابي3 لتعيين نوع الفونت وحجمه وتنسيقه، وسيتم تطبيق تنسيق الـ TextFormat على الحقل النصي كله، أما إستخدام أكثر من TextFormat في نفس الحقل النصي فهو غير مدعم.

*- فلارابي3 يدعم خاصية embedFonts والتي يمكن بها تضمين فونت عربي داخل ملف الفلاش وذلك يجعل النص مقروء حتى ولو لم يدعم جهازالمستخدم اللغة العربية. ولكن نتيجة لطبيعة الفونتات المختلفة ففلارابي يدعم فقط بعض الفونتات مثل Traditional Arabic و Andalous. عند إستخدام خاصية "embedFonts = true" يجب أن يكون هناك فونت في المكتبة بنفس اسم الفونت المحدد في "TextFormat.font" .

*- فلارابي3 يدعم الـ Html Tags التالية فقط "<font>" (color attribute only), "<u>", "<a>". الـ Html Tags المتداخلة والتي تحمل نفس الإسم غير مدعمة، مثلاً:

<font color="blue">Flaraby supports <font color="red">Html</font> tags</font>

يجب أن تكون الـ Html Tags منسقة بشكل جيد.

*- نظراً لأن الفلاش لا يدعم خاصية Right-To-Left في الحقل النصي فإن فلارابي3 يقوم بعمليات معقدة لمحاولة حل هذه المشكلة، فيجب تجنب إستخدام نص كبير نسبياً لأنه كلما زاد النص كلما زادت العمليات اللازمة لعرض النص وبالتالي زاد الإحتياج إلى الوقت لتنفيذ تلك العمليات وعرضها على الشاشة.

*- فلارابي3 غير متوافق مع Actionscript 3، فهو يعمل فقط مع Actionscript 2 على ال الـ Flash player 6 فما فوقه. لوكنت تستعمل Flash CS3 يجب عليك حفظ ملفك كـ Flash 8، مع Actionscript 2 لكي تستطيع رؤية Flaraby3 في الـ Components panel ومن ثم إستعماله.


Important Notes:

*- Flaraby3 now supports Arabic, Persian or Urdu, in addition to Latin languages like English, French, Spanish and Italian.

*- Flaraby3 supports Tashkeel in Arabic text.

*- You MUST use a TextFormat object with Flaraby3 to specify which font to use, it's size and alignment. These TextFormat properties will be applied to the whole textField, ie. Multiple text formats are NOT supported in the same textField.

*- Flaraby3 supports the "embedFonts" property which enables the .swf file to display the Arabic text even if the target user doesn't have Arabic language installed. However, due to the way the fonts are made, only some fonts succeed to show correctly, examples are "Traditional Arabic" and "Andalous". If you use the "embedFonts = true", a Font must exists in the Library, with a linkage name to be called from within the textFormat object.

*- Supported Html Tags are "<font>" (color attribute only), "<u>", "<a>". Nested tags with the same tag Name are not supported, eg. <font color="blue">Flaraby supports <font color="red">Html</font> tags</font>. Also tags must be well formated.

*- You should take into consideration the fact that Flash doesn't support Right-To-Left in the TextField, so you shouldn't use relatively large amount of text for Flaraby3 to render, due to the complexity of the operations needed to properly render the text , and hence the time to accomplish these operations.

*- Flaraby3 is NOT compatible with Actionscript 3, it only works on Actionscript 2 on Flash players from 6 and above. If you are using Flash CS3, your document should be saved as Flash 8, with Actionscript 2, to be able to see Flaraby3 in the Components panel and use it.





فلارابي3 متاح من خلال إصدارين: Flaraby3 (تجاري) و Flaraby3Lite (مجاني). والجدول بأسفل يبين الفروق بينهما.


Download:

Flaraby3 is available in two editions: Flaraby3 (Commercial) and Flaraby3Lite (Free). The table below shows a comparison between the 2 editions:



Flaraby3 Flaraby3Lite
Supported RTL Languages Arabic, Persian and Urdu Arabic (Limited)
Supported LTR Languages Latin (255)
like English, French, Spanish and Italian
English
Right-To-Left Yes Yes
Left-To-Right Yes Yes
Arabic Tashkeel ( تشكيل ) Yes Yes
Alignment Left-Center-Right Left-Center-Right
Multiline Yes Yes
Embeded Fonts Yes Yes
Html tags support Limited No
Digits support Yes Limited
License Commercial Free


إستخدم الوصلة التالية لتحميل Flaraby3Lite.mxp مجاناً وقم بتثبيته بإستخدام "Extension Manager".


Flaraby3Lite (.mxp) is available for download for free.
Double click the (.mxp) file to open into "Extension Manager" and install.




رخصة استخدام Flaraby3

بسم الله الرحمن الرحيم - In the name of Allah the most gracious the most compassionate

Arabic:
=======

هذه هي رخصة إستخدام Flaraby3 component:
هذه الرخصة تصلح لمطور واحد فقط، بمعنى أنه عند شراء فلارابي3 يمكن فقط إستخدامه بواسطة شخص واحد فقط، ويمكن إستخدام فلارابي على أي عدد من الأجهزة: مثل الحاسب الشخصي، الجوالات، حاسب الجيب، إلخ
فلارابي3 هو مكون للفلاش أو الفلكس (swc.) يمكن من عرض النص العربي أو الفارسي أو الأوردي مع النصوص اللاتينية مثل الإنجليزية والفرنسية والإسبانية والإيطالية في ملفات swf. في وقت التشغيل. فلارابي3 يمكن إستخدامه في الفلاش بدءاً من Flash MX 2004 ويمكن عرضه على Flash player 6 فما فوقه (Actionscript 2).

-------------
يمكنك
-------------
1- يمكنك إستخدام Flaraby3 component في منتجاتك الفلاشية (.swf) التجارية وغير التجارية.

-------------
لا يمكنك
-------------
1- لا يمكنك إستخدام Flaraby3 component في أي شئ يخالف الإسلام أو الشريعة الإسلامية من أي وجه.
2- لا يمكنك توزيع أو إعادة توزيع أو بيع أو إعادة بيع Flaraby3 component أو أي جزء منه.

---------------------------------------------------------------------------------------

Flaraby3 License:

English:
========

This is the license for Flaraby3 component:
This is a 'per developer' license, meaning once Flaraby3 purchased it should only be used by 'one' developer , but can be installed on any number of devices: PCs, Mobiles, Pocket PCs, ...
Flaraby3 is a Flash/Flex component (.swc) that enables bidirectional Arabic, Persian or Urdu and Latin text in .swf files at runtime. Flaraby3 can be used starting from Flash MX 2004 and above, and can work on Flash player 6 and above (Actionscript 2).

-------------
You may
-------------
1- You may use Flaraby3 component in your commerical and/or non-commercial flash (.swf) products.

-------------
You may NOT
-------------
1- You may NOT use Flaraby3 component in ANYTHING that is againest Islam or Islamic teachings.
2- You may NOT distribute, redistribute, sell or resell Flaraby3 component or any part of its contents.

---------------------------------------------------------------------------------------

Support info
============

http://www.arabicode.com
shagarah@gmail.com

---------------------------------------------------------------------------------------

والله هو الرقيب
Allah is the observer

---------------------------------------------------------------------------------------

رخصة استخدام Flaraby3Lite

بسم الله الرحمن الرحيم - In the name of Allah the most gracious the most compassionate

Arabic:
-------

بتحميلك Flaraby3Lite فأنت توافق على الشروط التالية:
1- يمكن إستعمال Flaraby3Lite كما تشاء بشرط تضمين الملفين (readme.txt و license.txt) مع كل ملف .swf يستخدم فيه Flaraby3Lite.
2- يمكنك إعادة توزيع Flaraby3Lite.zip مجاناً فقط ولا يجوز أن تبيعه، بشرط أن يحتوي على ال 3 ملفات الآتية:
Flaraby3Lite.swc
license.txt
readme.txt


---------------------------------------------------------------------------------------

Flaraby3Lite License:

English:
--------

By downloading Flaraby3Lite, you agree on the following terms and conditions:
1- You can use Flaraby3Lite as much as you like, under the condition that you include the 2 files (readme.txt و license.txt) with every .swf file inwhich you used Flaraby3Lite.
2- You may only redistribute Flaraby3Lite.zip as Free product, and you may not ever resell it. The redistributed file (Flaraby3Lite.zip) must contain these files:
Flaraby3Lite.swc
license.txt
readme.txt

---------------------------------------------------------------------------------------

والله هو الرقيب
Allah is the observer
---------------------------------------------------------------------------------------






  • addPersianSupport():Boolean
    • تضيف الدعم للفارسية في Flaraby3
    • لاحظ أنه إذا كانت الأوردية مدعمة بالفعل (تم إستخدام addUrduSupport()) فإن دعم الفارسية سيضاف تلقائياً ولا حاجة لإستخدام هذه الوظيفة
    • تعيد true عند النجاح أو false بخلاف ذلك

    • Adds Persian support to Flaraby3
    • Note that if Urdu support already exists (addUrduSupport() method was previously called), Persian support is automaticaly added, so no need to use this function
    • Returns true on success or false otherwise

  • removePersianSupport():Boolean
    • تلغي الدعم للفارسية من Flaraby3
    • لاحظ أنه إذا كانت الأوردية مدعمة بالفعل (تم إستخدام addUrduSupport()) فإن دعم الفارسية لا يمكن إلغاؤه
    • تعيد true عند النجاح أو false بخلاف ذلك

    • Removes Persian support from Flaraby3
    • Note that if Urdu support already exists (addUrduSupport() method was previously called), Persian support cannot be removed.
    • Returns true on success or false otherwise

  • addUrduSupport():Void
    • تضيف الدعم للأوردية في Flaraby3
    • تضيف الدعم للفارسية تلقائياً
    • تعيد لا شئ

    • Adds Urdu support to Flaraby3
    • Automaticaly adds Persian support
    • Returns true on success or false otherwise

  • removeUrduSupport():Void
    • تلغي الدعم للأوردية من Flaraby3
    • تلغي الدعم للفارسية تلقائياً
    • تعيد لا شئ

    • Removes Urdu support from Flaraby3
    • Automaticaly removes Persian support
    • Returns nothing

  • convertArabicString(inputStr:String, tF:TextField, tfrmt:TextFormat):String
    • الوظيفة الأساسية في Flaraby3, تستخدم لإظهار النص الثنائى الإتجاه من اليمين إلى الشمال أومن الشمال إلى اليمين. يمكن تحويل النص العربي أو الالفارسي أو الأوردي أو الإنجليزي أو الفرنسي و الإسباني أو الإيطالي أو مزيج من كل ذلك
    • inputStr: النص المراد تحويله
    • tF: الحقل النصي الذي سيظهر فيه النص
    • tfrmt: الـ TextFormat المستخدم لإعطاء النص خصائصه من اسم الـ font و حجمه و تنسيقه. يجب أن يكون هناك font موجود في الـ library وله linkage identifier لإستخدامه في TextFormat.font
    • تعيد inputStr وقد تم تحويلها لتظهر بشكل جيد في ملف الـ swf

    • The main function in Flaraby3, used to render bidirectional RTL or LTR text, including Arabic, Persian, Urdu, English, French, Spanish and Italian
    • inputStr: the string to be converted
    • tF: the target text field in which text would be rendered
    • tfrmt: the TextFormat object that gives text its properties, like: Font name, size and alignment. A font must exist in the library with a linkage identifier to be used in TextFormat.font
    • Returns inputStr converted to a formatted string properly rendered in the swf file

  • convertArabicChar(p:Number, str:String):String
    • تقوم بتحويل حرف ASCII عربي أو فارسي أو أوردي إلى حرف Unicode بحسب موقعه في النص
    • p: موقع الحرف في النص
    • str: النص أو الكلمة الموجود بها الحرف
    • تعيد حرف Unicode عربي أو فارسي أو أوردي

    • Converts an ASCII character (Arabic/Persian/Urdu) to a Unicode one (Arabic/Persian/Urdu) depending on its position in str
    • p: position of character in str
    • str: string/word in which the character exists
    • Returns a Unicode Arabic/Persian/Urdu character

  • isArabic(char:String):Boolean
    • تحدد ما إذا كان الحرف هو عربي أو فارسي أو أوردي
    • char: الحرف المراد التأكد منه
    • تعيد true أو false

    • Finds whether the specified character is an Arabic/Persian/Urdu character
    • char: the character to be checked
    • Returns true or false

  • isLatin(char:String):Boolean
    • تحدد ما إذا كان الحرف هو لاتيني (إنجليزي أو فرنسي أو إسباني أو إيطالي)
    • char: الحرف المراد التأكد منه
    • تعيد true أو false

    • Finds whether the specified character is a Latin (English/French/Spanish/Italian)
    • char: the character to be checked
    • Returns true or false

  • isDigit(char:String):Boolean
    • تحدد ما إذا كان الحرف هو عدد
    • char: الحرف المراد التأكد منه
    • تعيد true أو false

    • Finds whether the specified character is a Digit
    • char: the character to be checked
    • Returns true or false

  • isPunc(char:String):Boolean
    • تحدد ما إذا كان الحرف هو علامة. العلامة هي كل ما هو ليس بعربي أو فارسي أو أوردي أو لاتيني أو عدد ويشمل المسافة
    • char: الحرف المراد التأكد منه
    • تعيد true أو false

    • Finds whether the specified character is a Punctuation. A punctuation is considered a non Arabic, Persian, Urdu, Latin or digit character including space
    • char: the character to be checked
    • Returns true or false

  • isTag(str:String):Boolean
    • تحدد ما إذا كان الحرف هو tag. الـ tag هو أي نص يبدأ بـ ">" وينتهي بـ "<"
    • char: الحرف المراد التأكد منه
    • تعيد true أو false

    • Finds whether the specified string is a tag. A tag is considered any string with a "<" at the start and a ">" at the end
    • str: the string to be checked
    • Returns true or false

  • removeTags(str:String):Object
    • تستخلص النص من نص محوط بـ tag.
      مثال:
      removeTags("<a href='path/to/link'>وصلة ما</a>")
      تعيد:
      "وصلة ما"
    • str: النص المحوط بـ tag
    • تعيد النص المستخلص أو false لو لم تكن str نص محوط بـ tag

    • Extracts the string part of a tagged string.
      Example:
      removeTags("<a href='path/to/link'>Some Link</a>")
      returns:
      "Some Link"
    • str: the tagged string
    • Returns the extracted string or false if the string is not a tag

  • getStringWidth(str:String):Number
    • تحسب عرض النص str
    • يجب إستخدامها بعد إستخدام وظيفة convertArabicString()
    • str: النص المراد معرفة عرضه
    • تعيد رقم يمثل عرض النص str

    • Computes the width of the string str
    • Must be called after a call to convertArabicString() method
    • str: the string to return its width
    • Returns a number representing the width of str

  • getCharArrWidth(arr:Array):Number
    • تحسب عرض مصفوفة من الحروف أو النصوص
    • يجب إستخدامها بعد إستخدام وظيفة convertArabicString()
    • str: المصفوفة المراد معرفة عرض ما بها من حروف أو نصوص
    • تعيد رقم يمثل عرض ما بالمصفوفة

    • Computes the width of an array of strings/characters
    • Must be called after a call to convertArabicString() method
    • str: the array of strings/characters to return their width
    • Returns a number representing the width of the array of strings/characters

  • replaceNewlines(str:String):String
    • تقوم بإستبدال الحروف المحددة لنهايات السطور في النص
    • لو html=true; أو multiline=false; تحول كل الحروف المحددة لنهايات السطور (\r\n, \r, \n) إلى " "
    • لو multiline=true; و html=false; تحول الحروف المحددة لنهايات السطور \r\n, \r إلى "\n"
    • str: النص المراد تحويله
    • تعيد نص به الحروف المحددة لنهايات السطور مستبدلة

    • Replaces newline characters in str
    • If html=true; or multiline=false; all newline characters (\r\n, \r, \n) will be converted to " "
    • If multiline=true; and html=false; newline characters \r\n, \r will be converted to "\n"
    • str: the string to be replaced
    • Returns a string with newlines replaced

  • getLines():Array
    • يجب إستخدامها بعد إستخدام وظيفة convertArabicString()
    • تعيد مصفوفة من السطور الناتجة

    • Must be called after a call to convertArabicString() method
    • Returns an array of lines representing the converted string lines

  • getDir():String
    • تعيد الإتجاه الحالي للنص وهو إما من اليمين إلى الشمال أو من الشمال إل اليمين. والإتجاه هو نص مكون من: "RTL" (مبدئي) أو "LTR"

    • Returns the current direction setting, either Right-to-Left or Left-to-Right. The direction is a string either: "RTL" (default) or "LTR"

  • setDir(dir):Void
    • تحدد إتجاه النص وهو إما من اليمين إلى الشمال أو من الشمال إل اليمين
    • dir: إتجاه النص وهو نص مكون من: "RTL" (مبدئي) أو "LTR"
    • تعيد لا شئ

    • Sets the output text direction, either Right-to-Left or Left-to-Right
    • dir: The direction of the output text, either: "RTL" (default) or "LTR"
    • Returns nothing

  • getExtraTextWidth():Number
    • تعيد رقم يمثل عرض إضافي للنص يحدد من خلال المستخدم (مبدئياً = -1)

    • Returns a number representing the extra text width specified by user (default = -1)

  • setExtraTextWidth(w:Number):Void
    • تحدد عرض إضافي للنص w
    • العرض الإضافي للنص هو عرض إضافي يمكن إضافته في حالة أن النص لا تظهر فيه السطور بشكل جيد عند التجربة بالإعدادات الحالية مثل (font و size)
    • w: عرض إضافي للنص
    • بشكل عام، القيم من 1 إلى 3 تصلح النص
    • تعيد لا شئ

    • Sets the extra text width number w
    • Extra text width is an extra width that can be added in case experiments showed that the text is not well wrapped using current settings (font and size)
    • w: extra text width
    • In general, a value of 1 to 3 should fix the text wrap
    • Returns nothing

  • addListener(obj:Object):Void (New)
    • تضيف Listener أو منصت لأحداث فلارابي ويتم تنفيذ وظيفة خاصة بهذا المنصت بنفس إسم الحدث عند حدوثه ويتم تحديد هذه الوظيفة وما يجب فعله كرد فعل للحدث
    • obj: المنصت المراد إضافته
    • تعيد لا شئ

    • Adds a Listener to Flaraby3 events. An object method with the same name as the event would be fired once the event occurs to handle the desired event reaction
    • obj: the Listener to add
    • Returns nothing

  • removeListener(obj:Object):Void (New)
    • تحذف منصت تم إضافته مسبقاً لأحداث فلارابي
    • obj: المنصت المراد حذفه
    • تعيد لا شئ

    • Removes a previously added Listener object to Flaraby3 events.
    • obj: the Listener to be removed
    • Returns nothing






  • onFlaraby3Initialize
    • يتم إطلاقه عندما يتم الإنتهاء من تحضير فلارابي ليكون جاهزاً لإستخدام وظائفه

    • Fires when Flaraby3 finishes initialization and is ready to use it's methods

  • onPersianAdd
    • يتم إطلاقه عندما يتم إضافة الدعم للغة الفارسية

    • Fires when Persian language support added

  • onPersianRemove
    • يتم إطلاقه عندما يتم حذف الدعم للغة الفارسية

    • Fires when Persian language support removed

  • onUrduAdd
    • يتم إطلاقه عندما يتم إضافة الدعم للغة الأوردية

    • Fires when Urdu language support added

  • onUrduRemove
    • يتم إطلاقه عندما يتم حذف الدعم للغة الأوردية

    • Fires when Urdu language support removed

  • onArabicStringConvert
    • يتم إطلاقه عندما يكمل فلارابي تحويل وإظهار النص المراد تحويله

    • Fires when Flaraby3 finishes converting and rendering the given string

  • onDirChange
    • يتم إطلاقه عندما يتم تغيير إتجاه النص

    • Fires when Text direction is changed

  • onExtraTextWidthChange
    • يتم إطلاقه عندما يتم تغيير العرض الإضافي للنص

    • Fires when Extra Text Width is changed







rootMC = this;
//
//Listener Object (Flaraby3 only)
var obj1 = new Object();
//
obj1.onFlaraby3Initialize = function(f)
{
      // 'f' is a reference to Flaraby3 instance
      trace(f +" is now initialized");
}
//Listener Object (Flaraby3 only)
var obj2 = new Object();
//
obj2.onDirChange = function(f)
{
      trace(f +" has changed text direction");
}
//
obj2.onArabicStringConvert = function(f)
{
      trace(f +" has converted the string");
}
//You can add a listener directly when initializing Flaraby3 to receive the "onFlaraby3Initialize" event
attachMovie("Flaraby3", "flrb", 2000, {_x:-1000, listeners:[obj1]});
//attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});
//
flrb.addListener(obj2);
//
txt = "بِسْمِ اللّهِ الرَّحْمـَنِ الرَّحِيمِ الْحَمْدُ للّهِ رَبِّ الْعَالَمِينَ الرَّحْمـنِ الرَّحِيمِ مَـالِكِ يَوْمِ الدِّينِ إِيَّاكَ نَعْبُدُ وإِيَّاكَ نَسْتَعِينُ اهدِنَــــا الصِّرَاطَ المُستَقِيمَ صِرَاطَ الَّذِينَ أَنعَمتَ عَلَيهِمْ غَيرِ المَغضُوبِ عَلَيهِمْ وَلاَ الضَّالِّينَ";
//
function convert()
{
      flrb.setDir("RTL");
      //
      rootMC.createTextField("output", 0, 0, 0, 400, 200);
      var tf = rootMC.output;
      tf.embedFonts = true;
      tf.multiline = true;
      //
      var frmt = new TextFormat();
      frmt.font = "Traditional Arabic";
      frmt.size = 16;
      frmt.align = "right";
      //
      var otp = flrb.convertArabicString(txt, tf, frmt);
      tf.text = otp;
      tf.setTextFormat(frmt);
}
//
convertButton.onRelease = convert;





Advanced Computer Graphics
C-W-P
Catch Interactive
Cisco Systems
Digital Work Force
Graphico
i-mate
Identitat
IMPCAT
LINKdotNET
Monoloco
MRM Worldwide Dubai
Native Communications
NPSTech
Outside Source Design
Raya Corporation
Samsung
Transware LTD
Venture Interactive
Visionate Interactive Media OHG
The Wasp Europe LTD.
Western Outdoor Interactive Pvt. Ltd.

and more...





من فضلك إستخدم الوصلة على موقع شفرة عربية arabicode للإتصال بي.




Need help in your Arabic in Flash work ?

Please use the link in arabicode to contact me.






كلكامش

عزيزي اشكرك و اهنيك على هذا الإنجاز

ممكن تطلعنا على موعد توافر هذا الـ
plug-in?

مشكور
اخوك العراقي




أحمد

السلام عليكم ورحمة الله وبركاته

شكراً أخي.

لم أحدد بعد متى أو كيف سيتم توفيره ولكن بإذن الله عن قريب.




James Dunn

Sounds like a great solution. How much is the Commercial license? - Thanks.




ahmad

Thank you.

Insha' Allah I intend to sell it for about $30.




Parham

Hi,
Thank you for your great work!
Would you please add the support for 4 Persian letters that is not in Arabic? (گ چ پ ژ) Also the code for Persian Yeh and Persian Kaf is different, and should be added in your component.
If you have any question, please contact me at parham at live.it

What about the Jestify alignment?

Best Regards,
Parham.




ahmad

Parham,

I would insha' Allah work on that, but I would definitly need your help since I know nothing about Persian except it has similar Arabic characters! Insha' Allah I'll contact you as soon as possible.




ahmad

Parham,

No it doesn't support "Justify".




Parham

Salam Ahmad,
Justify implementation is not so hard! Just using the TextField Justify Align, Using some spaces instead of r for end of lines, and some spaces in the begining of last line!

Fiimaan illaah,
Parham




ahmad

Parham,

I sent you an email to tell you I've added Persian support in Flaraby3. You can test it above insha' Allah.

In addition, I found it much easier to add more latin (LTR) languages, so I've added support for the letters at the first 255 characters. That means that now Flaraby3 also support languages like French, Spanish, Italian ...
besides English.

I'm even thinking to add support to Urdu, insha' Allah.

However all this needs testing.

Thank you.




ahmad

Parham,

"Justify" implementation is not easy as you think it is, due to the current Flaraby3 processing operations, it would make things more complicated, so for now, I'll just focus on adding support for more languages insha' Allah.




ahmad

Alhamdulillah, I've added support to Persian and Urdu (RTL) in addition to Latin letters (LTR) eg. French, Spanish and Italian... needs testing.

Please input Persian/Urdu text above and choose fonts like Arial or Tahoma (No embed).

Thank you.




Bassel

It wont work on Flash 8




ahmad

Bassel,

Yes it does, please make sure you carefuly read the information above.

You must export your movie as Actionscript 2 in order for it to work.

If it's still not working, please tell me what steps you followed.

Thank you.




Adeeb

Hi. Where can we purchase the Commercial version from? What is the cost? WHat payments do you accept? Is it still in Beta?

Thanks




ahmad

Adeeb,

Yes it's still in beta.

Insha' Allah the commercial version will be for about $30.

You can pay for a pre release now if you like, and have the final one (which may not be different from the current version) for free when it's released.




Adeeb

Thanks. Are there any known problems with the current Beta version?




ahmad

Adeeb,

The beta version just needs testing, the more it's tested, the more I can find problems, specialy with Persian and Urdu, which I just added support for their characters, but I cannot understand Persian nor Urdu to judge they're working as expected, I just know that they're treated just like Arabic.

With Arabic, currently it's working fine, but as I said the more it's tested the more I can eliminate bugs. You can test yourself with what you need and find out if it's suiting your needs.

Just avoid using large text in general as it may cause problems, ie. use small chunks of text as much as possible.




Adeeb

Ahmad, what do you consider to be a safe length of Arabic text (in words or characters)?

Also, I believe you mentioned previously that Flaraby3 only works with two fonts. Is there a specific reason for this? Can't it use any other font that's embedded within the Flash file?

Thanks.




ahmad

Well, the rendering with Flaraby3 depends on the cpu/memory, and this varies from a user to another, so an example range may be 100 to 300 words, on Modern PCs.

This can be dramaticaly reduced on older, Pocket and Mobile PCs.

Fortunatly, Some Arabic fonts (eg. Traditional Arabic/Andalous) doesn't contain full characters map as others (eg. Arial), instead they have unicode characters taking place of other characters that exist at the first 255 characters.

This is good because when Flash embeds a font, it only looks at the first 255 characters, hence only these types of fonts succeed to render with Flaraby3.

Insha' Allah I'll try to find more fonts that support this feature, and put a note here.

Hope this is clear.




Dan

I can't seem to import the component into Flash 8




Dan

It comes up with 'Unexpected file format.' Should it work with Flash 8?




ahmad

Dan,

Well, this seems a problem.

Insha' Allah I'll look into that and upload a new version if I found a solution, also I'll insha' Allah post a comment here.




MohDesign

alslam alikom

how r u ahmed ?

try this

(محمد)

output will be

(محمد(

i have an idea

just add an space after this characters :
>< }{ )( ][

before start convert the the string to rtl or unicode

i know it's not a good idea but that problem it's really hard to solve i didn't solve it before

mohammed




ahmad

وعليكم السلام ورحمة الله وبركاته

MohDesign,

الحمد لله بخير

نعم قد جربت هذه الطريقة من قبل في Flaraby2
ولكن الآن أريد حل أكثر دقة

سأعمل على حلها بإذن الله

جزاك الله خير




ahmad

Bassel, Dan,

I've uploaded a new file (.mxp) please install and test.

Thank You.




ahmad

السلام عليكم ورحمة الله وبركاته

MohDesign,

تم حل المشكلة برجاء التجربة

Problem solved please test.




MohDesign

مازالت المشكله متواجده اخي احمد

رغم انني استعملت ملف ال
mxp
الجديد

ارجو منك وضع تاريخ التحديث دائما بجانب اسم الملف حتى نكون بالصوره

وايضا عند التجربه في ملف الفلاش المعروض في هذه الصفحه ظهر خطأ الاقواس مره اخرى

ملاحظه :
الخطأ يحدث مع الكمات العربيه بين قوسين وليس الاجنبيه





ahmad

السلام عليكم ورحمة الله وبركاته

MohDesign,

إن شاء الله سأضع تاريخ التحديث بجانب الملف الموجود بأعلى الصفحة.

لم أحل المشكلة في ملف ال .mxp
فهو إصدار ليس به كثير من التحديثات الموجودة في الملف بأعلى والذي يمثل أحدث تطبيقات
Flaraby3 وهي النسخة التجارية.

أما Flaraby3Lite فهو نسخة مجانية لتجربة فقط.

وقد إستخدمت مثالك

(محمد)

وهو يعمل جيداً فإذا كانت لديك أمثلة أخرى لا تعمل فبرجاء ذكرها.

جزاك الله خيراً




Zahir

I'm sorry, how do I install this *.mxp file into flash? I tried copying it into the configuration and component installation directories but still i see nothing that reflects flaraby




ahmad

Zahir,

You'll have to have "Extension Manager" installed to be able to install the .mxp .

It's preinstalled with Flash8, and available for free from adobe.




raghed

i really appreciate your work i was looking for this for a long time. Alhamdullilah that the arab have one like you to change:)




ahmad

raghed,

Jazaka Allah Khair ya raghed.




Peter Franco

Hi Dude,

Gr8 work on this really impressive, when do you plan to release it to the public.

2007-09-08 09:48:14



ahmad

Peter Franco,

It's already released, you can buy it from the link on top (located in the orange area below the application).

If you want a limited version you can download Flaraby3Lite.mxp from the link in the 'download' section.

Thank you.

2007-09-08 10:14:28



Abdalla Hefni

After I but file.mxp into flash
I cant use it till now
how can i use it

2007-09-09 11:51:31



ahmad

السلام عليكم ورحمة الله وبركاته

Abdalla Hefni,

قم بوضع السكريبت الموجود بقسم:

"مثال لإستخدام Flaraby3 / Flaraby3Lite Example code:"

على الفريم الأول ، وتأكد من وجود فونت (Traditional Arabic) في المكتبة وله linkage name بنفس اسمه

ثم قم بتجربة الملف

شكراً

2007-09-09 11:59:43



MohDesign

السلام عليكم ورحمة الله وبركاته

dear ahmed,

the new newline was add by the width of the text format

can u please add a new function that add a new line by the number of charcters ber line

some time i don't want to use text format i just want to call a functin that convert the string

example i used now :

function convert(txt1) {
flrb.setDir("RTL");
rootMC.createTextField("output", 0, 0, 0, 400, 200);
var tf = rootMC.output;
tf.multiline = true;
var frmt = new TextFormat();
return flrb.convertArabicString(txt1, tf, frmt);
}
rootMC = this;
attachMovie("Flaraby3", "flrb", 2000);


i want it like this

function convert(txt1,maxChr) {
flrb.setDir("RTL");
return flrb.convertArabicString(txt1, maxChr);
}
attachMovie("Flaraby3", "flrb", 2000);

//usage :

convert("بسم الله الرحمن الرحيم","5");

2007-09-11 01:09:45



MohDesign


hi ahmed

try this word

"وللهمة"

i think the problem with "lafz aljlalah"

u should convert it by full word not by characters

or check if there is a charecters bfore or after

mohammed

2007-09-11 08:22:50



ahmad

السلام عليكم ورحمة الله وبركاته

أخ محمد،

إن شاء الله في الإصدار القادم سيكون ذلك متاحاً بإذن الله.

ولكن الغرض الأساسي من عمل هذا المكون هو إمكانية عرض اللغة العربية بشكل صحيح على الأجهزة التي لا تدعم العربية وهذا يوجب إستخدام TextFormat.

إن شاء الله سأقوم بتحديث المكون لإصلاح مشكلة كلمة مثل "للهمة"

جزاك الله خيراً وكل عام وأنت وكل المسلمين بخير

2007-09-11 15:50:24



MohDesign

السلام عليكم

شكرا احمد وانا في انتظار التحديث جزاك الله خير

سوف اضع لك اعلان مجاني لمدة شهر في فلاشيات عن flaraby 3

خدمه لك لتسويقه بشكل افضل

اذا كنت تريد فتح قسم خاص له بالمنتدى للدعم الفني اخبرني

وكل عام وانت بالف خير

محمد

2007-09-11 22:20:22



Waleed

Ahmed i have a case & i want to take ur opinion

i made a Flash menu reads from XML file, & actually i should have 2 version .. English & Arabic ..

The English menu is working perfectly

but the Arabic version is not working.

do u think ur software could help doing something regarding my issue?

2007-09-12 15:13:19



ahmad

السلام عليكم ورحمة الله وبركاته

أخ محمد،

جزاك الله خيراً كثيراً
وبارك فيك

تم بحمد الله التحديث في Flaraby3Lite برجاء التحميل والتجربة

بالمناسبة قرأت في فلاشيات أنك ستترك المنتدى، لم ذلك؟

أرجو أن تكون بخير.


2007-09-12 16:23:55



ahmad

Waleed,

Yes, I do think Flaraby can help.

You can test with Flaraby3Lite if you like and if it's suitable it's fine, but if you need extended functionalities like support for html links and more supported languages, you can consider buying Flaraby3.

However, keep in mind that currently Flaraby doesn't support CSS directly if you work with it.

Thank you.

2007-09-12 16:29:49



Cheryl Yeoh

Hi Ahmad,

Your programme is really awesome! Thank you for developing it! We had a really big scare when we couldn't access your website last week.

Would you please explain in English how to use the Flaraby3Lite? I have downloaded Extension Manager and downloading it was no problem at all but I don't know how to use it! :p

My company wants to buy your product but we would like to test it first before we purchase it. In case your server goes down again, would you please email me so that I have your contact information?

Thank you!

2007-09-26 12:32:40



ahmad

Thank you Cheryl,

In Flash, open the components panel:

Window>Components

Under Standard Components, Drag Flaraby3Lite to the stage, then delete it, it's now in the library.
Put a new font in the library: From Library top right menu>New Font...

and choose "Traditional Arabic", and give it a linkage name with the same name, to make the TextFormat object identifies it.

Paste the code under the: "Flaraby3 / Flaraby3Lite Example code:" section (above) in the first frame in your movie.

Commnet the line:
attachMovie("Flaraby3", "flrb", 2000);

Uncomment the line:
//attachMovie("Flaraby3Lite", "flrb", 2000);

Then press control enter to test your movie.

Note that Flaraby3 API (above) is not the same as Flaraby3Lite, the later has fewer capabilities and is not stable as Flaraby3, so you can find some bugs.

To test with Flaraby3, please use the above application.

Thank you.

2007-09-26 18:06:14



Cheryl

Thank you for your kind assistance, Ahmad.

Do you have a trial version for us to test with our software? We would prefer not to discuss this on a forum and would be grateful if you could email me instead.

Thank you.

2007-10-01 05:19:04



Mohammed Kayyali

Al Salamo A'likom,

can i use FLaraby3 with XML ????
i need to load my text from XML file , how can i do that ?
Thanks a lot

2007-10-10 22:54:45



ahmad

السلام عليكم ورحمة الله وبركاته

أخ محمد

إبدأ بقراءة النص الذي تريد تحويله من ملف الـ xml ثم قم بتحويله عن طريق flrb.convertArabicString()

(انظر المثال بأعلى)

أما إذا كنت تسأل عن كيفية تحميل النص من ملف الـ xml أساساً فهذا ليس له علاقة بـ Flaraby3Lite

ومثال بسيط لذلك:

ملف الـ xml (doc.xml):

<doc><node value="الحمد لله" /></doc>

كود:

x = new XML();
x.ignoreWhite = true;
x.onLoad = function()
{
trace(this.firstChild.firstChild.attributes.value)
}
x.load("doc.xml");

2007-10-11 10:49:40



Mohammed Kayyali

Al Salamo A'likom Ahmad,

i already use a xmls on my project but in English version , and i got a many problems in Arabic version in text ( arabic ver also load from xml already done ) but i need to know how to load the text from a node in FLaraby direct

Thanks a lot and Eid Sa'ied A'lina We A'likom Jami3an isA

2007-10-11 12:29:05



ahmad

السلام عليكم ورحمة الله وبركاته

أخ محمد

لا توجد طريقة مباشرة، يجب أن تحصل على النص أولاً ثم تقوم بتحويله

كل عام وأنت بخير

2007-10-11 12:42:27



Eugen

Hi. man how can i get its working with Flex??

Thanks.

2007-10-11 22:32:35



ahmad

Eugen,

Unfortunatly, it doesn't work with Flex since it's Actionscript 2.

I apologize for not updating the above description.

2007-10-13 16:38:19



Kurt

Dear Ahmad,

Thanks for working on that important issue!
I followed all your instructions given how to test Flaraby3 but it is not working out. When I start the movie clip, nothing happens. could I ask you for a test.fla , please. I am using Flash CS3 on windows XP.

Thanks a lot!
kurt

2007-10-18 14:43:09



ahmad

Kurt,

You must export your .fla as Flash8.

Flaraby3 is not compatible on Flash CS3.

Thank you.

2007-10-18 14:51:22



wasseem

Salam Ahmad,
first i'm gald to have people like you.

my question:
will you have a new version for cs3 ( flash 9). if yes then when will be availiable?

2007-11-03 22:51:12



Hany Bahgat

Dear Ahmed
we've ordered the component, 2 days ago now, and we never received the link to download it, any explanation??

For reference, the order ID is (U25172151).

2007-11-07 20:42:49



ahmad

wasseem,

I'm sorry, I've been quite busy lately.

Insha' Allah there will be an Actionscript 3 / Flash CS3 version, but I can't give a date for that release. Insha' Allah I hope it'd be soon.

Anyway, I'll post a comment here insha' Allah as soon as it's available.

2007-11-07 21:27:25



ahmad

Hany Bahgat,

I'm sorry for any inconvinience. Insha' Allah I'll look at that problem as soon as possible and tell you what I've found.

Thank you for your patience.

2007-11-07 21:29:51



ahmad

Hany Bahgat,

I'm sorry, I've found that your payment failed, (Card Declined)

For your convinience, I've sent a ticket to SWREG (The payment processor) for asking more details.

Insha' Allah, I'll keep you informed of replies.

Thank you.

2007-11-07 21:46:29



hatem

Hi,
thanks alot for your effort but I'm looking for an answer to the following questions
can this work with php on linux?
how can I set it up and configure it correctly?
does there any documentations?
does the commercial version supports html rendration?
how much is the commercial version?
is ther any tutorials for it?

thanks in advance and I hope you can help me in that and answer my questions

best regards
HG


2007-11-08 10:06:23



ahmad

Hany Bahgat,

Here's the reply from SWREG:


--------------------------------
Hi,

The credit card company have declined the payment with the error of Invalid transaction type 'the card issuing bank does not allow this type of transaction'

If the customer can clear this with their bank & advise I can re-try.

Regards

Michelle - SWREG
www.swreg.org
--------------------------------


I hope this is helpful.

Thank you.

2007-11-08 12:38:44



ahmad

hatem,

Thank you.

1- This is a platform independent component, if you can run Flash player 6 you can run Flaraby3 / Flaraby3Lite.

2- You just have to have Flash MX 2004 or 8 with Adobe Extension Manager installed, and the ability to work with Flash components. Please see the examples section above.

3- Yes, the documentation are in this same page you just click on the link of Flaraby3 documentation located inside the yellow area above and it'll take you right to the documentation.

4- Only Flaraby3 has limited support for HTML tags. Please see to the Important Notes above.

5- The commercial version is for $30.

6- The example above would give you a solution for the majority of your needs. It's just the "convertArabicString()" method that you need to use.

I hope this answers your questions.


Thank you.


2007-11-08 12:58:11



thomas

Hi ahmad, when trying to compile with MTASC,

i've the following error,



Warning : The MovieClip Flaraby3Lite needs the class Flaraby3Lite which was not compiled :

Please force compilation of this class by adding it to the commandline.



Do you have any idea on how I can avoid this ?

can we with the commercial version ?

Thank you

2007-11-08 18:45:43



ahmad

thomas,



As far as I know MTASC compiles only .as files, ie. Actionscript source code to .swf bytecode.



Flaraby3 / Flaraby3Lite are delivered as components (.swc) files, ie. compiled Actionscript code, and are not sources, so MTASC cannot find .as file for Flaraby3Lite because there isn't one.



From MTASC website (Using Components (mx package)), I can find that an additional parameter: -mx would compile V2 components. I'm not sure this also means it can compile custom components? It needs a try.



The path in which Flaraby3Lite is installed is something like:



C:Documents and Settings<USER>Local SettingsApplication DataMacromediaFlash 8enConfigurationComponents



You can use that to test with the -mx parameter.



I would be happy if this works, please tell me.



Thank you.

2007-11-10 09:12:53



Peanuts

Hi Ahmad, great job on this component. I have a problem. When using loadMovie to call a file which has the Flaraby3Lite component on the stage and adjust the script accordingly, it doesn't seem to work. I've tested various ways and debug and it seems that it doesn't work with loadMovie.

2007-11-15 11:23:25



ahmad

Peanuts,

You shouldn't keep Flaraby3Lite instance on the Stage.

You just drag it to the Stage then delete it, to be stored in the movie's library, and then attach it dynamicaly from the script using:

attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});


If this doesn't work, move the above line to the "2nd" frame of your loaded movie, ie. attach the component instance in the 2nd frame not the first one.

Hope this helps.

Thank you.

2007-11-15 11:33:42



Peanuts

Ahmad,

Thanks for the prompt response. I've tried what you suggested and it did not work. Here is the other options I tried previously:

1. Placing an instance of Flaraby3Lite directly on the stage WORKS.

2. Placing an instance of Flaraby3Lite dynamically with actionscript WORKS.

3. Placing an instance of Flaraby3Lite directly or by actionscript in a separate external swf file and loading that file into another file DOESN'T WORK. Example:

In a file named "arabic.swf" containing the Flaraby3Lite component:

attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});

In a named language.fla:

var arabictext:String = "صاخلا يباس";

//A blank movieclip is placed on the stage with the instance name "loadLang"

loadMovie("arabic.swf","loadLang");

if (loadLang.flrb.isArabic(arabictext) == true){
trace("text is arabic");
} else {
trace("text is not arabic");
}

This results in "false".

Am I missing something here? I hope I'm wrong here. I've been trying this a few other different times and it returns the same result.

Thanks in advance for your help.


2007-11-16 10:13:30



ahmad

Peanuts,

It looks like you're not making a check for the movie loaded status, ie. Putting the "if statement" right after the loadMovie statement:

loadMovie("arabic.swf","loadLang");

if (loadLang.flrb.isArabic(arabictext) == true){

won't work since the movie is not loaded yet. You should place any code that depends on the loaded movie, like :

if (loadLang.flrb.isArabic(arabictext) == true){


inside a callBack function that's triggered just after the movie is loaded.

You can use the "getBytesLoaded" againest the "getBytesTotal" property check a long with a onEnterFrame function, to be sure the movie is loaded:

Example:

this.onEnterFrame = function()
{
if(loadLang.getBytesLoaded() == loadLang.getBytesTotal())
{this.onEnterFrame = null;
//Movie loading complete
if (loadLang.flrb.isArabic(arabictext) == true){
trace("text is arabic");
} else {
trace("text is not arabic");
}
}
}

In Flash, a movie is loaded asyncronously, meaning, when loadMovie statement is called, the next line of code is executed right after it without waiting for the movie to be loaded, it just loads on the background.

Hope this helps.

Thank you.

2007-11-16 15:34:42



Peanuts

Ahmad,

Thanks for your help! I think it managed to solve the problem with your suggestion. Thanks once again!



2007-11-20 08:41:57



David

Hi Ahmad,

We are currently testing the lite version of your product, in seems to work fine but the text isn't shown in the textfield. When i do a trace of the text within the field i see the arabic text, what could be the reason for this problem?

Thanks

2007-11-22 17:54:54



ahmad

David,

On what version of Flash are you testing?

You're a mobile services provider, so I assume you're using FlashLite, right?

Also, it may seems silly, but please make sure your text color isn't the same as your background color. It happens.

Thank you.

2007-11-22 20:40:41



Anas

Hello,

I am very pleased I found someone who shares a strong programming capabilities, well I have developed such solution, but I am afraid the mechanism was different, I am sure this took you a lot of job, anyway I hope I can contribute to the success of this, and really ready to share my solution with you.
if I might get to work on this in enhancements/development I would be very happy.

Well done!
Anas

2007-11-26 10:37:00



ahmad

Anas,

Thank you. Insha' Allah if I needed help in next version development I'd tell you.

2007-11-26 13:32:09



sado

Asslamu alaykom,
Please, I am new at Flash and I want to use arabic.
I tried to use your sample code by copying and pasting it to the actionscript of the first frame and adding a symbol with an instance of the name "tf", but it didnt work.
Could you please help me out and tell me how it works?

Jazak Allah khayr. Thank you

2007-11-27 00:11:56



ahmad

sado,

Wa Alaykom Alsalam Wa Rahmato Allah Wa Barakatoh,

If you downloaded Flaraby3Lite, and pasted the example code, you should comment this line:

attachMovie("Flaraby3", "flrb", 2000, {_x:-1000});

And uncomment this line:

//attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});

Then test the movie, it should work insha' Allah.

Thank you.

2007-11-27 09:49:46



sado

Asslamu alaykom,
Hi Mr. Ahmad,
Thank you very much for your reply.
Unfortunately, I can't get it to work. I did uncomment the line //attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});
and comment the other line.

I followed your instructions word by word:
1. In Components, I dragged Faraby3Lite to the stage.
2. I added a new Font with the name "Traditional Arabic" (same as Traditional Arabic)
3. I pasted the code and uncommented the line:
//attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});

Please Mr. Ahmad, am I missing something?
Since I am new at Flash, I don't know exactly what should be added.
I added a button with an instance "convertButton", but still didn't work.
Could you please (if you don't mind) tell me in details what I should do? (I am using Flash 8 but a french version)

Sorry to ask so many question. And, I am very sorry to bother you. Jazakom Allah khayr.

Thank you very much for your help.


2007-11-27 14:13:35



ahmad

sado,

This is a previous reply to a comment posted here:

------------------------
In Flash, open the components panel:

Window>Components

Under Standard Components, Drag Flaraby3Lite to the stage, then delete it, it's now in the library.
Put a new font in the library: From Library top right menu>New Font...

and choose "Traditional Arabic", and give it a linkage name with the same name, to make the TextFormat object identifies it.

Paste the code under the: "Flaraby3 / Flaraby3Lite Example code:" section (above) in the first frame in your movie.

Commnet the line:
attachMovie("Flaraby3", "flrb", 2000);

Uncomment the line:
//attachMovie("Flaraby3Lite", "flrb", 2000);

Then press control enter to test your movie.

Thank you.

------------------------

Please make sure you did delete the Flaraby3Lite instance from the Stage and that you did give a linkage identifier to the new Font in the library.

Thank you.

2007-11-27 15:13:18



sado

Asslamu alaykom,

Thank you very much Mr. Ahmad for your help.
It worked after I gave an identifier name to the Font. Thanks a lot for your support.
It is very nice mashaalluh.
Jazakom Allah kheer.
(i am sorry about the previous post. I refreshed the page and the same post was sent again.)
Thank you
Have a nice day.

2007-11-27 19:41:12



Clark.cookie

hi ahmad,

I have found a way for Flaraby to Support TAHOMA font in addition to the 2 fonts it currently supports

Thanks for Flaraby, tested it,
I have used Flaraby in a project i am working on, however i encounter various problems.

there is intensive processing time for paragraphs of copy. if i have animation in the background. the animation actually hults while the flaraby processes, my current work around is delaying my flaraby processing until the animation is complete. this is a real problem because the english site was made first and did not cater for the delays caused by flaraby. this causes jerks in the animation
what is your opinion on this?

Also, is there any way it supports listeners? for the processing of the text. like when the copy is finished processing an event is triggered after
.convertArabicString(txt, tf, frmt); is complete?

thanks again


clark.cookie@gmail.com

2007-12-16 14:41:04



ahmad

Clark.cookie,

Thank you.

First do you mean embedded Tahoma font support? Can you describe what you did?

For the processing issue, yes, unfortunatly Flaraby does make a lot of processing time and resources, causing any simultanious action, eg. animation to hult untill it finishes rendering. This is mentioned in "Important Notes" section above. Flaraby3 does require lots of string processings to correctly render the Arabic / English text, this is a pay off for solving the long lasting problem: "Lack of Bidirectional Arabic support in Flash".

Insha' Allah support for listeners will be available but only in the next Flaraby3 free update to users who purshased Flaraby3 commercial version.

Thank you.

2007-12-16 15:21:25



Tomi

Dear Ahmad,

I have tried using flaraby3lite but couldn't get it to work.
I am using flash CS3 but published the swf as flash 8 as you described.
Do you know about anything else that might cause flaraby to not work properly?
Thanks a lot.

2007-12-20 14:16:16



ahmad

Tomi,

Have you placed a new font in
the library with a linkage identifier, Eg. "Traditional Arabic" ?

Thank you.

2007-12-20 17:34:30



Tomi

Yes, I have followed all of your instructions. (I even tried a few background colors).
The text field is created, I can trace its variables, but nothing is shown on the screen. Not selectable or anything.
Do you have any other idea? Myabe I could send you the fla file?
I appreciate your help very much.
Thank you.

2007-12-20 18:22:35



ahmad

Tomi,

Yes you can send me the .fla, please use the contact link on the main page.

Thank you.

2007-12-20 21:17:08



ahmad

Tomi,

I appolgize, my FlashCS3 demo version has expired can you just send me the code?

2007-12-23 15:54:14



ahmad

Tomi,

The font identifier was not specified in the library. I've sent you back the .fla.

Thank you.

2007-12-26 18:07:57



Clark.cookie

@ Ahmad

can you please keep a VERSION HISTORY of dates when updates to Flaraby are made so us users can keep track of the progress. something more precise than version 1,2,3

anyways, to enable Tahoma for Flaraby, and make it an embedded Tahoma font support so that Flaraby could possibly support more than 3 fonts not just Anandous and Traditional Arabic,
you use a font editor, and copy all glyphs of tahoma mapped onto the Traditional Arabic font.
Traditional arabic has rules which make arabic letters join in a certain way which tahoma doesnt, but Tahoma has mostly all the glyphs of traditional Arabic.
so that in short is how it is done,
a new font will have to be made.
it has been tested on Mac and Pc

correct? who deserves a star! i do

PS: does this forum have a mailing system that mails us once a reply has been made?


thanks
C

2007-12-27 09:00:44



ahmad

Clark.cookie,

Thank you for your workaround solution, and yes it's correct though a bit hard to do for everyone.

You do deserve a Star of course.

If you're talking about Flaraby3Lite, it's just a demo version and it won't be updated. Flaraby3Lite presents a good and free demonstration of what Flaraby3 can do, it's even an acceptable solution already for many people, though it's not as efficient as Flaraby3, nor has it's extended language capabilities.

Flaraby3 (Commercial version) is the edition to be updated, and registered users are already being updated for free once a new feature is added or in case of bug fixes.

However, modifying a font is not an update for Flaraby3Lite nor Flaraby3, since it's not included in the Package. So anyone can benefit here.

Insha' Allah I'll add a mailing notification here soon. I know it's not quite easy to visit this website regularly just to see if a reply was added, but I'm realy busy these days to do so. So please just kindly be patient.

Thank you again.

2007-12-27 11:16:35



Ali

عزيزي المبدع
بداية أحب أن أسجل كل كلمات الشكر والإعجاب على ما ابداع في تقنيات الخط العربي ويسعدني أن أطلب منك التكرم بإرسال خط عربي يحتوي على الشروط التالية

أن يكون اتجاه الكتابة من اليسار إلى اليمين
أن يكون قابل للعمل على بيئة ماك

وذلك لإستخدامه في تعريب الآيبود

أرجو الرد عاجلاً على البريد في حال جاهزية الخط ، ولك جزيل الشكر


2008-01-01 15:42:14



ahmad

السلام عليكم ورحمة الله وبركاته

أخ علي،

أشكرك على هذا المديح الجميل، وأعتذر لك فـ Flaraby ليس له علاقة بالخطوط أصلاً ولكنه كود Actionscript ويعمل على الفلاش، وعلى حد علمي فالفلاش لا يعمل على IPOD.

2008-01-01 21:05:57



Swapnil

Hi,

Does this component support other RTL languages like "Hebrew".

If yes what font needs to be used instead of Arabic Standard.

2008-01-03 12:55:52



ahmad

Swapnil,

No, just Arabic, Persian and Urdu. There will be no support for Hebrew.

2008-01-03 13:06:42



hi ahmad

I have download and used "Flaraby3Lite". It works but there is a problem about writing "feathah", "dammah", "kasrah", "sukun" etc. when i add this characters, it doesn't warp characters.
How can i manage this problem.

ahmet erdal

2008-01-06 13:59:35



ahmad

ahmet erdal,

What do you mean with "it doesn't wrap characters"? Do you mean it doesn't wrap correctly? Please provide an example.

Also, you can test your string in the above application, if it does work, then it will only work on Flaraby3 (Commercial version). Unfortunatly, Flaraby3Lite is just for demonstration, and won't be updated. However, if it still doesn't work, please tell me and I'll try to solve it insha'Allah.

Thank you.

2008-01-06 14:06:49



ahmet erdal

I mean if i use these it takes a space after character and dosent warp with next character.

2008-01-06 14:50:23



ahmet erdal

i have bought flaraby3 commerical v. but problem still continue. how can i show you a result.

2008-01-07 15:21:45



ahmad

ahmet erdal,

Thank you for buying Flaraby3.

Please use the contact link in www.arabicode.com to send me the string to be converted.

Thank you.

2008-01-07 15:36:20



ahmad

ahmet erdal,

Problem solved. Please read your email.

Thank you.

2008-01-07 23:47:41



Anne

Hi, Ahmad,

i have a flash course which needs to be localised into Arabic language. Most of the texts are in Actionscript. I downloaded Flaraby3Lite and i want to purchase Flaraby3 if i could get the demo version to work. Do Flaraby3Lite or Flaraby3 work for my situation?

Thanks a lot!

Anne

2008-01-09 14:44:37



ahmad

Anne,

Thank you.

It should, however, you should first try a sample text in the application located at the top of this page. This application uses Flaraby3, so it's a good way to test before you decide.

You can paste some text above and press "Convert".

If this is not convinient for you, you may send me a demo .txt file that contains a sample Arabic text, and I'll send you back an .fla + a .swf with the result.

Thank you.

2008-01-09 15:26:13



Anne

Hi, Ahmad,

Thanks for your reply. i haven't got any Arabic translation back yet. I am looking for a solution right now for my project right now. I downloaded Flaraby3Lite but not sure how to apply to the text in the actionscript. Is it possible that i send the .fla source file for you to take a look? If it does work could you show me how?

Also how do I send you the .fla file?

Thanks a lot

Anne

2008-01-09 17:14:47



ahmad

Anne,

Thank you.

Of course, you can email me the .fla using the contact link at the http://www.arabicode.com/en.html (English version).

Thank you.

2008-01-09 18:18:25



Anne

Hi, Ahmad,

i have a flash course which needs to be localised into Arabic language. Most of the texts are in Actionscript. I downloaded Flaraby3Lite and i want to purchase Flaraby3 if i could get the demo version to work. Do Flaraby3Lite or Flaraby3 work for my situation?

Thanks a lot!

Anne

2008-01-09 18:42:30



Senthil

Hi Ahmed , we purchase the Flaraby3 , but we are haviong problems with a specific text in arabic which is not rendering correctly
the last : in the below text seems to appear in the beginning of the Arabic text,

عزيزي العميل: برجاء مراجعة مكتب خدمة العملاء في حالة:

2008-01-10 14:59:28



ahmad

Senthil,

It seems you are using a left-to-right direction, ie. setDir("LTR");

This would cause this issue, but this is the way even Internet Explorer renders it. Flaraby3 tries at best following Internet Explorer bidirectional rendering algorithm.

If you chose right-to-left, you can see it rendering correctly.

Thank you.

2008-01-10 15:09:03



Senthil

Hi Ahmad,
I am using "RTL" only, similar issue also occurs where there is " in the Arabic text.

flrb.setDir("RTL");
txt.embedFonts = true;
txt.multiline = true;
//
var otp = flrb.convertArabicString(convertData,txt,frmt);

باراك يجتمع مع مبارك لبحث "تهريب السلاح الى غزة"

2008-01-11 08:33:43



Abdirahman

Barakallahu fiika brother Ahmded. First, Thank you for making this component. I wanted to ask you if it is possible to get a Java API to generate the RTL text in arabic. Basically, I am trying to dynamically load xml or html file into a flash (swf). The contents of the xml and html data are Arabic UTF-8 text. But when the flash loads the xml file, the letters are not joined. So, I want to make this automated instead of copying and pasting, etc. I hope you can tell if there is a script or Java API that could accomplish this.
Thanking you in advance.


2008-01-12 04:39:43



ahmad

Senthil,



The Arabic phrases you provided are working fine on the above demo application, which uses Flaraby3.



Can you send me an example .fla?



Please use the link in www.arabicode.com



Thank you.

2008-01-12 07:33:37



ahmad

Abdirahman,



Wa barakallahu feek my brother.



Unfortunatly, this component works on Flash .swf only, no Java version.



But what you want is doable with Flaraby3 insha' Allah.



You can make a function that loads the xml, and then another one (like the one in the example code above) to convert the loaded text, and renders it inside the swf.



Thank you.

2008-01-12 07:38:35



Hassan

السلام عليكم



هل هناك أي documentation ؟


2008-01-23 09:10:47



ahmad

السلام عليكم ورحمة الله وبركاته



أخ حسن،



بالطبع، من فضلك اضغط على الوصلات الآتية:



http://www.arabicode.com/flaraby/flash_arabic_support.php#api



http://www.arabicode.com/flaraby/flash_arabic_support.php#events





شكراً


2008-01-23 11:19:11



elie

hi,

i want to purchase flaraby3 but i am having problems with SWREG (we tryed to purchase it twice and we never received the link to download it). can u provide me an alternative way to purchase it.

best regards

2008-01-24 09:56:09



ahmad

elie,



Please can you tell me what kind of problem do you face with SWREG?



Thank you.

2008-01-24 11:19:33



ABDULRAHEEM

Asallam Alykom



First I'd like to thank u alot AHMED for this component, really it's very useful and i'm facing this problem with flash for years and thanx god finaly here is a solution...



However, I need this componenet in a project but i wanna try it first. I did all the steps but didnt get a result.. I'll tell u what i did...



First i've installed the lite component by the extension manager, then opened flash and added the component to the stage and removed it so its in the library, after that i made a new font in the library and choose Traditional Arabic from the list and named it the same name, i copied the code above to frame 1 and uncommented the lite version attachMovie() line and commented the other one. At the end i added a button and named it "convertButton", but when i tested the movie and click the button nothing happened :/ sorry for the long msg but i wanted to clearify what i've did exactly... and by the way i'm using flash cs3 but saved the file as flash 8 and used Actionscript 2... THAAAAANX

2008-01-24 17:54:51



ABDULRAHEEM

Asallam Alykom



First I'd like to thank u alot AHMED for this component, really it's very useful and i'm facing this problem with flash for years and thanx god finaly here is a solution...



However, I need this componenet in a project but i wanna try it first. I did all the steps but didnt get a result.. I'll tell u what i did...



First i've installed the lite component by the extension manager, then opened flash and added the component to the stage and removed it so its in the library, after that i made a new font in the library and choose Traditional Arabic from the list and named it the same name, i copied the code above to frame 1 and uncommented the lite version attachMovie() line and commented the other one. At the end i added a button and named it "convertButton", but when i tested the movie and click the button nothing happened :/ sorry for the long msg but i wanted to clearify what i've did exactly... and by the way i'm using flash cs3 but saved the file as flash 8 and used Actionscript 2... THAAAAANX

2008-01-24 18:17:47



ABDULRAHEEM

Look may be this is related to something else because even the flash at the top of this page is not working now on this PC(( it shows only white)), although i used it today morning on another PC and worked...

2008-01-24 18:28:34



ahmad

ABDULRAHEEM,



Thank you.



Please make sure you did give a linkage name (not just a name) to the font in the library. Right Click on the font, choose linkage, then give it an identifier name: "Traditional Arabic".



This is the way Flaraby3 identifies this particular font in the library as the font to be used.





I hope this helps.



Thank you.

2008-01-24 19:38:39



ABDULRAHEEM

Yeaaah that's it :) it worked greaaaaat :) Thx man and insha'allah I will purchase it soon :)

2008-01-25 17:03:47



ABDULRAHEEM

Hi Ahmed...



I've just noticed something,,, in the lite version when i convert a number for example 50 it becomes 0550 and 13 becomes 1331 and so on... but when i tried it in the flash in this page it worked well, so just wanna make sure does it work in the full version ????

2008-01-26 13:45:03



ahmad

ABDULRAHEEM,



Yes, Flaraby3Lite does not render numbers correctly.



This is mentioned in the comparison table above, located under "Download Flaraby3Lite" section.



Thank you.

2008-01-26 13:50:16



ABDULRAHEEM

JUST FOR HELPING OTHERS ^_^

Here's a function easier than the one in the example above...



************************



attachMovie("Flaraby3Lite", "flrb", 2000, {_x:-1000});



function convert(txt:String, output:TextField){

flrb.setDir("RTL");

var tf = output;

tf.embedFonts = true;

tf.multil