it's so easy in flex. I do sth similar in the add new variables - edit old 
variables forms.
For your situation, you have to define an array of changing names(bindable if 
needed), which will be loaded from the database when the application is loaded. 
After it, in the label field of buttons etc, you will use e.g. 
label="{changing[7]}" (changing is the array of your strings)

This will work 100% but will not be easy to be read during the development. To 
handle this issue, you can define a new class (e.g. Traslator) and an instance 
from it.(e.g tra) It will have a load function and public variables for all 
action names (e.g. add_new) in your class. 

your instance will load strings from the database on creation complete of the 
applicatin; than for the buttons etc. you will user e.g label="{tra.add_new}" 
... this will also work 100% and easier while reading your code...
i wish this helps...

Yigit Boyar

middle east technical university / sophomore

----- Original Message ----
From: Stephen Adams <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, November 24, 2006 6:53:43 PM
Subject: Re: [flexcoders] Dynamic text in buttons









  


    
            Cool, that's great for languages, but we are also thinking about 
when we create an application, which we sell to different clients and each one 
of those may what to use different text. For example a button which says Add 
New Member of Staff a client may want this to say Add New User. Ideally we 
would just want to make a change in a database to change these kind of things 
instead of recreating the entire application. 



On 24/11/06, Tom Chiverton <tom.chiverton@ halliwells. com> wrote:
On Friday 24 November 2006 16:01, stephen50232 wrote:
> Is it possible and if so how, to dynamically name buttons, label and
> text in general for a Flex app. Especially if you want to create a
> mulit-language app where all the text has to be changed at the click of

> a button.

Have a look at resource bundles in the docs.

--
Tom Chiverton
Helping to widespreadedly envisioneer open-source bandwidth

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


This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.


CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.


For more information about Halliwells LLP visit www.halliwells. com.



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




    mailto:flexcoders-digest@ yahoogroups. com
    mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com


    http://docs. yahoo.com/ info/terms/






    
  

    
    




<!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->








 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

Reply via email to