1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...
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:

  1. new a flex project, and flex_locale_library.swc to library path.
  2. new a class like code1 below.
  3. new a MXML file like code2 below.
  4. 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:

package sban.flex5
{
import sban.fllib.locale.LocaleBase;

[Bindable]
public dynamic class Locale extends LocaleBase
{
//public var title : String = ‘Title’;
}

code2:

<?xml version="1.0" encoding="utf-8"?>
<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

Last Modified

This entry was posted on 2008年09月12号 and is filed under technique. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “fllib : flex locale library v0.1 release”

  1. It would be interesting to know details

    [Reply]

  2. The people in such cases, said so - Avos will be alive, maybe pomrem.

    [Reply]

Leave a Reply