fllib : flex locale library v0.1 release
fllib is an actionscript library, can be used in flash and flex. flex locale library is a part of fllib, which support runtime languages whatever any one in the world.
download : flex-locale-library-v01-bin.rar。
domo : http://blog.sban.com.cn/flex/flex-locale-library-v01-demo.swf(click the red flag to display locale setting panel.)
The rar package contains flex_locale_library.swc and locale directory.
How to use it:
- new a flex project, and flex_locale_library.swc to library path.
- new a class like code1 below.
- new a MXML file like code2 below.
- add locale properties into Locale.as, and adding in locale/*.xml. you can add any language into locale/languages.xml as long as create a new $id.xml file。
code1:
{
import sban.fllib.locale.LocaleBase;
[Bindable]
public dynamic class Locale extends LocaleBase
{
//public var title : String = ‘Title’;
}
code2:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:flex5="sban.flex5.*"
xmlns:fllib="http://www.sban.com.cn/2008/fllib" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</mx:Script>
<flex5:Locale id="locale" />
<mx:Button id="btn" click="Alert.show(locale.title)" label="{locale.title}" x="47" y="30"/>
<fllib:LocaleButton id="localeSettingButton" />
</mx:Application>
thanks & best wishes!
sban 2008/9/12 Beijing, China
forever : http://blog.sban.com.cn/2008/09/12/fllib-flex-locale-library-v01-release.html
Other Posts







Avapro Said on 十月 3rd, 2008 at 1:34 上午 quote
It would be interesting to know details
[Reply]
Constantine Said on 十一月 6th, 2008 at 10:13 上午 quote
The people in such cases, said so - Avos will be alive, maybe pomrem.
[Reply]