you need to dispatch that event manually

On 9/11/06, Daniel Wabyick <[EMAIL PROTECTED]> wrote:

Hey João,

Thanks for the code sample ... Very helpful. In particular, I like how
you bind the a function to an event, I was trying to figure out how to
do that ... I like it how it magically adds the class in as an event
listener.

    [Bindable(event="languageChange")]
        public function getString( key : String ) : String
        {
            var value : String = activeLanguage.languageKeyValues[ key ];

            if ( value == null )
            {
                throw new Error( "No value in languange bundle for key "
+ key );
            }

            return value;
        }
    }

Best,
-Daniel



João Fernandes wrote:
>
> Diego, take a look here
>
> http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo
> < http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo>
> re
>
> João Fernandes
>
> -----Original Message-----
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected]
> <mailto: flexcoders%40yahoogroups.com>] On
> Behalf Of Diego Guebel
> Sent: segunda-feira, 11 de Setembro de 2006 3:50
> To: Flex coders
> Subject: [flexcoders] Localizing application
>
> Hi there,
> Based on the flex documentation I have to compile one swf per each
> language, is that right?
> I'd like to be able to switch between languages during runtime. isn't
> that
> possible?
> Thanks, Diego.
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> <http://www.mail-archive.com/flexcoders%40yahoogroups.com>
> Yahoo! Groups Links
>
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
     http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED]
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/







--
j:pn
http://www.lennel.org
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to