PDA

View Full Version : Foreign Language in e-card



rachna
09-19-2005, 08:16 PM
Hey ! here's an interesting one !

Pls take a look at one of the cards on http://www.clearlycute.com - At the end of the card "your message goes here" the following action script in embeded.

onClipEvent (load) {
t1btnup._visible = false;
t1btndown._visible = false;
strMssg.text = "";
loadVariables("cardmessage.php", this);
}
onClipEvent (data) {
strMssg.text = cardmessage;
if (strMssg.maxscroll>1) {
t1btnup._visible = true;
t1btndown._visible = true;
}
}

But what do I do to make SURE that accents in Spanish and French also show up ? I have had a roller-coaster ride with this problem and have no idea how to solve it. ! Please please please, tell me what to do !
:cry:

Rachna

NTD
09-21-2005, 01:42 AM
Hi,

It depends on how the information is being returned to Flash by the PHP script. If it is being returned as a string, I would use a loadVars object to handle the data. If you use onLoad, the data will be parsed as a string and any characters such as & or / will be read as code. I've run into this more in using variables and code samples, but it is similar in nature when using another language. Something you can try is onData instead of onLoad with a loadVars object....



myLoadVars.onData = function(rawText) {
trace(rawtext);
myVar = rawtext;
}


will give you access to raw text in the file, without interpreting it as variable names and values. I havn't tried with foreign languages.

hope it helps
NTD