Creating English/French Switch
Hi allI was thinking about adding another language to the site i'm working on, and i was wondering what would be the best way to create a "Language Switch" (for ex. English to French and vice-versa)?I tought that create two XML file (one english, one french), with the same node's structure would be a good idea, and the make a side menu with something like that: on (release) {xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("english.xml");} and in the 1st movie frame there would be the link to textfields and respective nodes. would that work (it seems too simple to be true...)? what else should I think of? what would you do if you would have to create one such thing? - zod
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 08-12-2004, 04:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Creating English/French Switch
Hi all
I was thinking about adding another language to the site i'm working on, and i was wondering what would be the best way to create a "Language Switch" (for ex. English to French and vice-versa)?
I tought that create two XML file (one english, one french), with the same node's structure would be a good idea, and the make a side menu with something like that:
on (release) {
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("english.xml");
}
and in the 1st movie frame there would be the link to textfields and respective nodes.
would that work (it seems too simple to be true...)? what else should I think of? what would you do if you would have to create one such thing?
- zod
French Font In English Flash MX
Hi,
I need some help in writing French simbols in a Flash MX English version. I've installed the French Language in Windows XP and it works if I write to WORD processor, but not to Flash, what should I do?
Thanks,
Aykuprus
Help Switching Back To English Language From French
Hey folks, I have this site I am working on and I need to use as2 to switch between French and English. Using the flash examples I was able to switch to french but when I try and go back to english but it doesnt populate the XML. I would appreciate any help.
Quote:
import mx.lang.Locale;
Locale.setLoadCallback (localeListener);
lang_cb.dataProvider = Locale.languageCodeArray.sort ();
lang_cb.addEventListener ("change",langListener);
greeting_txt.autoSize = "left";
Locale.loadLanguageXML (lang_cb.value);
function langListener (eventObj:Object):Void
{
Locale.loadLanguageXML (eventObj.target.value);
}
function localeListener (success:Boolean):Void
{
if (success)
{
greeting_txt.text = Locale.loadString ("IDS_GREETING");
}
else
{
greeting_txt.text = "unable to load language XML file.";
}
}
French Version...english Version...?
Hi all,
please help me over this "version" problem...
I installed win2000 in french as basic language. then i installed flash 5 and all the texts as well as the actionscript run without problem. so I exported all the files.
after putting on the web, when it is viewed with french-basis windows, it is fine. Once I use the Eng. windows (or chinese wndows), both the texts and the actionscipt not work properly...I really don't know why will it be that, can anyone give me a hand on this?
Thanks in advance,
Cheers,
MKit
I'm A French Guy Having French Problem With Flash Héhé Help
Hi!
French ius a beautifull language but I have a problem with the embed of : àçéè etc.
I have dynamic txt field who show my variables (in a txt file...)
So I click on character for the embed panel:
only thoses caracter:
than I check all... Capitals, lowercase, numera, and I add àèé in the field... so when I'm doing the preview àèé are not visible! That not cool!
Thanks!
BEn
Creating A Light Switch
Hi Guys,
I'm trying to create a light switch on a computer screen but i think I'm not hitting the actionscript just right. Here's what I have.
On the movieclip of the light I have
Code:
onClipEvent(load){
light=false;
}
I then have this on the switch
Code:
on (release) {
if (light=false) {
screen.attachMovie("screenOn", "screen", 2);
light=true;
} else if (light=true) {
screen.attachMovie("screenOff", "screen", 2);
light=false;
}
}
Can anyone tell me where I'm going wrong. Any help is appreciated. Thanks.
Simple Q: Can You Nest A Switch Inside A Switch?
Hi all,
I have a switch/case/break testing if the Key.RIGHT or Key.LEFT is pressed, then nested inside each of these cases a switch/case/break testing for the _currentframe of the main timeline.
The first few key presses trigger 1 trace comment each (as designed) but after multiple key presses I start to see more than one comment.
So my question is whether switches can be nested as below or whether something else is at fault here.
Paste the code below into the first frame of a 4-frame movie.
code: stop();
//
var myListener:Object = new Object();
myListener.onKeyDown = function() {
currentFrame = _root._currentframe;
trace("currentFrame is " add currentFrame);
switch (Key.getCode()) {
case Key.RIGHT :
trace("You pressed RIGHT key.");
switch (currentFrame) {
case 1 :
nextFrame();
trace("right 1");
break;
case 2 :
nextFrame();
trace("right 2");
break;
case 3 :
nextFrame();
trace("right 3");
break;
default :
trace("default case on Key.RIGHT");
break;
}
break;
case Key.LEFT :
trace("You pressed LEFT key.");
switch (currentFrame) {
case 4 :
prevFrame();
trace("left 4");
break;
case 3 :
prevFrame();
trace("left 3");
break;
case 2 :
prevFrame();
trace("left 2");
break;
default :
trace("default case on Key.LEFT");
break;
}
break;
default :
trace("default case called");
}
};
Key.addListener(myListener);
Pop -up For A French.
Sorry for my bad English!!!!!
I make(do) a CD-ROM everything in flash, and I would want, when I press on a button, that a window opens without bar, menu... How should to me make(do)?
Thank.
Please Help Me (I'm French)
Hello,
I'm French, so i apologize for my english...
I'm researching a special flash gallery and someone tell me that may be I could found it here!
I don't know how to describe the gallery but I've 2 adresses where it is used.
http://www.leclub13.com/photosseven/ (on the bottom frame)
AND
http://www.joia-club.com/ (click on "photos")
If you can help me...
Very big thanks from France,
Pssinjaune
French AS
Hi , who knows if it's possible to use French AS in an english/us version of FLASHMX2004?
thanks for your replies
Smartclip...and French...
I am new to flash 5, sorry for the repeated question (probably) what's smartclip? I knew nothing about it...
And do anyone know, for a chinese system computer, how can Flash5 show French words correctly?
Thanks in advance.
Cheers,
MKit de HK
French And Flash :o)
Hello all,
i'm doing this site where flash variables get there vale from a php script. The problem is that when i type in a french text in my administration section, the text is updated on the website but apparently flash doesn't manage letters such as: â, î, é, è, ...
If i put accents, the letter is replaced by a square (
can anybody help?
thanks in advance
Priff
French Text
to any body that uses french in their flash web sites ... I tried to load external txt files ... my text is french, it apears fine in NotePad ... but the accents don't apear in flash ... it come out all messed up..
Help !
Erica
merci mon amour
Flash Mx In French
I have the flash mx software but it's in french, i didnt know it was french but I was wondering if there is any way to change the software to English?
French Characters Thru Xml
The following 3 accented French characters do not display in flash via xml.
The codes for the letters we are missing are ê (ê, è (è and ç (ç.
Anyone have any idea how to get them to display? They simply are not there when the flash is viewed in the website.
Hotdog And French Fries
=) i knew you would read this with such an awesome title it has=)
How do i make a mc fade and get smaller as if its going back on the z access.
i know how to make a mc go in circle but the fade is just making my brains mush. Its a dumb easy answer i know.
here is the code from my head to make it go in circle but not fade and smallerize itself =)
onClipEvent(load){
radius1=100;
radius2=30;
degrees=0;
}
onClipEvent(enterFrame){
angle = degrees*(Math.PI/180);
degrees += 5;
xpos = radius1*(Math.cos(angle));
ypos = radius2*(Math.sin(angle));
_x = xpos+200;
_y = ypos+200;
}
French Characters In Flash Mx
im curently making a corporate site and have have to make a version in french, my problem is when ever i write something with either, a "éèà or ç" the words start to squeze together and spaces apear where their shouldent be any.
anyone get this before and if so how do i fix it.
FYI, im working on a pc running Win XP pro.
French Character Probs
Hello,
I have a problem - when I paste in some french text into flash, it seems to display fine initially:
But when I deselect, it doesn't display the same:
Or when it's published for that matter - any ideas?
Cheers,
Darren
Big French Characters Problem
I'm loading a .txt file and it has french characters. All the characters that are french are not shown (èé). If i copy/paste the text everything is ok but i want to load it from an external .txt file. HELP!
XML: French Accents Not Displaying
I have a French character é in XML. What do I need to do to so Flash can recognize accents? When I do a trace, the character shows up as a square. I've even tried the escape() but I'm getting something funky like "%EF%BF%"
French Input Problem
Hi
I have a multilingual application (made in flash ofcourse).
My french users complaining me all the time that they can't input the sign '@'...
Im using TextInput component.
Does anybody know what the cause could be ?
Displaying French Accents
Hi,
I'm currently building a site and it needs to be in French and English. The site contains descriptions and details about products and I would like to load them from text files so that the descriptions can be modified without having to edit the movie file. I currently have no problem loading the txt file into a dynamic text field, but if the txt contains French Characters (aka é è à ù ç etc...) they will be displayed as square boxes. I've tried embedding them in the text field but that only makes the square boxes that are usually there disappear, leaving only spaces.
The font I am using is Franklin Gothic Demi Cond, and if I create a static text box and just type in regular text the French characters show up fine. I tried to make a text box using _sans but I get the same behavior when trying to load from a file.
Anyone have any suggestions as to what the problem might be or what I can try to get around that?
Thanks!
Ip
LoadVars And French Characters
Hi all
Bit of an odd one, but I have a flash game with french text. at the end of
the game, a block of text (which varies depending on what happens in the
game), is emailed out to you. The email is sent using an .asp script and
'loadVars' and 'sendAndLoad'
The problem is, the resulting email does not have the french characters in -
instread they are replaces with a couple of other characters (like é).
The thex appears fine in flash - a trace in flash shows them fine too.
Using the asp file on its own in a browser and manually adding a french
sentance works fine too.
I'm kinda thinking its when flash 'posts' the text string that the charset
is being lost or something?
Does anyone have any clues? Or is there a way of doing a sendAndLoad 'POST'
with charset=iso-8859-1
If anyone needs a more detailed explanation, let me know
Tim
tim@fullsizemediaREMOVETHISSPAMBIT.com.uk
Dynamic Text In French
Hi all,
I am loading a dynamic text file into flash, rendering as HTML, embedding fonts but cant get the French characters & accents to appear... I have written in HTML univ.reference in the txt file eg. É etc...
not sure what to do.... Any help would be great...
Thanks for you time in advance,
Martin
I'm About To Freak Out // French Accents
Has anyone had this problem before and been able to get it working:
I'm on a MAC - trying to load an external text file into flash which contains french accents. THEY WORK LOCALLY on my computer when I test it, BUT NOT ONLINE. Online the accents like "é" will appear as "©", and other accented characters will appear as other symbols or just not appear at all.
I have read and tried everything that all the tutorials and even macromedia say, and it still does not work...
- the txt file is saved as UTF-8
- the text field is set to html, as well as the actionscript (htmltext
- I have specified the character glyphs for the dynamic text box
- I tried using "System.useCodepage = false;"
What am i missing?? Thanks in advance...
Can Not Display French Characters
I'm trying to display french accents character while calling a php file from mysql db. It doesn't show up the right character.
loadVariablesNum("url to php file",0,"POST");
I even added
System.useCodepage = true;
does anyone have any ideas?
French Characters..Ahhhh
Hi everyone,
If anyone can help me with this, I'd be very much in your debt forever. I'm building a bilingual site that contains scrolling content. I'm scrolling dynamic text boxes and using Palatino linotype as a font. I'm antialiasing for animation, and my scrollbar works great. The problem is, that in my French section, I can't get the characters and accents to display. I'm able to embed them if I specify which characters I want to embed for each textbox. But my project has 45 sections, each with their own textbox. Is there an easier, or more global way to embed the fonts. I'm going a little nuts. Remember, I'm not calling the text from a text file or XML file- just from right in each movie. Any help is much appreciated.
Thanks,
Matt
How Do I Fetch French Accents Such As À É È Etc
hi there .. i am building something that retrieves datas (text) from a php file.
But .. i can't get french accents. The results shows a square instead ..
Any clue someone ? Is it something with the html file language <tag> or something with the included on publish characters ??
Problem With French From MySQL
Does anyone know what is the problem to this :
I am using a Tahoma font - which supports French accents. When I browse the MySql DB, the field does have all accents ok.
Problem is that when I get the data through PHP, the data comes back junk (Ex: Lorsque cet article est demand�cela est super!)
I tried changing the field to UTF-8 Unicode in the DB, but it still does not work.
Any ideas ?
English?
i got a computer from my friend in brazil. it has flash mx loaded, but no way to get the disk and no idea how to change the overall language settings to english. please help! i posted this but i cant see my post anywhere, hope it shows up in the newbie section!!
Problem With Fonts French User
Hi, I've read the tech notes on macromedias site and still can't figure this out. I have a True Type font on my PC and when I look at it in Flash authoring mode it looks fine (I viewed Antialias Text and it still looks fine) but when I test it in the Flash Player some of the capitals, B in particular look filled in where the hole should be. Anyone know what I'm doing wrong or are there some fonts that just won't work? Any help would be geatly appreciated! Thanks in advance.
I ve got the same problem and i look the link which are given but it s to complicate for me and i dint understand the too complicate english can you try to explain me in french to resolve this problem of font who are not the same in the player.I hopes........Thx
Foreign Characters Problem - French
im reading ffrom an external file into a dynamic text field. This is rendered as html. No problems there.
However when i put french characters into the external file they do not show up in the flash..... can anyone be of help please?
Tnx
Sean
How To Do French Accents In External Text
I am trying to get the é (for the word blasé) character in some external text for my flash site. I have the text saved as UTF-8, and have tried both using the regular é and the encoded character %E9, but it just shows up as a question mark or some other things. How can I do this?
Thanks!
Accent And French Characters From LoadVar
I have a script that loads variables from HTML files. Those files are somewhat long text with proper html tags (p, h1, a, etc.). The content of the loadvar is then assigned to the htmlText of a text field.
The problem is that Flash truncates the text on the first accent it encounters. In Dreamweaver, i've tried changing all the accents to the ascii codes (&#xxx;) and to the HTML names (à).
I've tried putting the actual characters within the code window as well, that doesn't result in the text being truncated, but it simply doesn't display the letter and some other letters following it too.
I've managed to read text properly from an XML, but in this instance, i'd like to keep the formating - bolds, headers, etc.
Is there another option i haven't looked at when it comes to outputting special characters from a loadVar.
French Text + Urlencoding + Html
Back again with a tricky issue concerning encoding, font embedding, HTML & PHP. The situation:
1. I'm loading text into a dynamic textfield (with HTML parsing turned on) in flash MX using PHP. That works fine. To send one big textstream I usually do a rawurlencode() or urlencode() in PHP. Flash displays simple HTML stuff like a linebreak or font color correctly.
2. But I do not seem to get any "special" characters in that textfield. Fact is that some of texts being displayed are in French.
Flash MX does not seem to parse those characters correctly [é à è] etc.
3. On the Macromedia website it is recommended to use urlencoding (http://www.macromedia.com/support/fl...l_encoding.htm), with the corresponding codes.
4. I've tried turning off all HTML funcionality just to get the accented chars right, but I don't see them in Flash. Font embedding doesn't change a thing either.
5. I've also tried to send just one simple HTML string to the HTML textfield that should generate an "e accent aigue" using htmlentities() -> &ecaute;
But that doesn't seem to work either.
6. Note: I'm not using any bizar font (just an Arial, Tahoma or Verdana) & I do understand there are two issues here: HTML / encoding.
HELP MUCH APPRECIATED!!
It's probably not all that difficult.
HTML + Encoding >>> French Text [é À Ê] <<< PHP
Tricky issue concerning encoding, font embedding, HTML & PHP. The situation:
1. I'm loading text into a dynamic textfield (with HTML parsing turned on) in flash MX using PHP. That works fine. To send one big textstream I usually do a rawurlencode() or urlencode() in PHP. Flash displays simple HTML stuff like a linebreak or font color correctly.
2. But I do not seem to get any "special" characters in that textfield. Fact is that some of the texts being displayed, are in French. Flash MX does not seem to parse those characters correctly [é à è] etc.
3. On the Macromedia website it is recommended to use urlencoding (http://www.macromedia.com/support/fl...l_encoding.htm), with the corresponding codes.
4. I've tried turning off all HTML funcionality just to get the accented chars right and only using urlencodin (for example "é" becomes "%E9"), but I don't see them in Flash. Font embedding doesn't change a thing either.
5. I've also tried to send just one simple HTML string to the HTML textfield that should generate an "e accent aigue" using htmlentities() -> "&ecaute;" But that doesn't seem to work either.
6. Note: I'm not using any bizar font (just an Arial, Tahoma or Verdana) & I do understand there are two issues here: HTML / encoding.
WHAT am I doing wrong? Is there any way to send those chars to Flash textfields correctly & use HTML functionality?
HELP MUCH APPRECIATED!!
Not In English OoOp's
Finished my swif.movie and when I put it in the default browser for playback my english was in another language (turkish) what can I do to see it in English!!
Outlook (bad English)
Hello
I am Portuguese and have a very bad English
I need help to create a button that opens outlook already with the inserted email.
Thanck and kisses from Portugal!
Sónia
Outlook (bad English)
Outlook (bad English)
Hello
I am Portuguese and have a very bad English
I need help to create a button that opens outlook already with the inserted email.
Thanck and kisses from Portugal!
Sónia
Outlook (bad English)
Outlook (bad English)
Hello
I am Portuguese and have a very bad English
I need help to create a button that opens outlook already with the inserted email.
Thanck and kisses from Portugal!
Sónia
English Lesson
Hello children.
Been making a concerted effort to learn actionscript and have a quick question:
I understand how to say:
if this is so, go and do this, for example:
onClipEvent (enterFrame) {
if (_root._xmouse>650){
this.nextFrame();
}}
But how to I say if this is so AND this is so, go and do this (if _xmouse>650 AND _ymouse<30 go and do this)?
Thanks for your help
ActionScript Into English
Can someone put this ActionScript into English. I've been away from Flash for about 3 years, and trying to make sense of scripting again. Thanks
_root.control._y=_root.control._y-10;
if(_root.control._y<=-(control._height/2)){
_root.control._y=500+(_root.control_height/2);
}
Ian
Non-english Keyboard
Hi. I have a german keyboard .
This is the code
stage.addEventListener(KeyboardEvent.KEY_DOWN,onKe yPressed);
function onKeyPressed(event:KeyboardEvent)
{
trace(event.keyCode)
trace(event.charCode)
}
It work for d,y,w,g,x,., , ,;,', and THAT'S IT (and of course special keys defined in Keyboard class )
In fact works for any letter if I press SHIFT .
Any ideeas ?
Thanks
Can Anyone Translate Me This In English
FLASH [MX] SHOUTBOX
Deze scriptjes zorgen ervoor dat je je eigen flash shoutbox op je site kan maken.
De scripts zijn aan te passen aan je eigen smaak (ik heb bijvoorbeeld de laatste 50
shouts, maar dit kunnen er ook 100 zijn, of gewoon alle shouts laten zien).
Om de shoutbox werkend te maken moet je een aantal dingen doen:
- Je moet een tabel aanmaken mbv phpmyadmin
- Je moet je config.php aanpassen aan je database naam ed
STAP 1: TABEL AANMAKEN
Om een tabel aan te maken in phpmyadmin moet je natuurlijk eerst een MySQL database hebben.
Er zijn een aantal gratis hosts te vinden die php en MySQL aanbieden, maar deze zijn niet echt
aan te raden.
Maar geen nood: je kan je eigen servertje opzetten met behulp van een handig pakketje.
Je moet naar http://www.firepages.com.au gaan, en dan de PHPDEV BUNDLE downloaden. Deze bevat alles
wat je nodig hebt:
- PHP
- MySQL
- Apache SERVER
- PHPMYADMIN
Als je het geinstalleerd hebt, dan kun je je server starten door phpdev_start.bat uit te voeren
Hierna kun je via je browser naar het adres http://localhost gaan.
Om de shoutbox te installeren ga je eerst naar de map phpmyadmin -> index.php
Hier kun je je eigen databases ed aanmaken.
Kies een naam voor je database (ik raad aan om de naam shoutbox te gebruiken, dan kun je namelijk
stap 2 overslaan ), en maak deze aan.
Klik op je database in het linker gedeelte en maak de volgende tabel aan (kopieren en plakken in het
SQL UITVOEREN TEKSTVELD):
CREATE TABLE shoutbox (
id int(11) NOT NULL auto_increment,
date int(11),
name varchar(255) NOT NULL,
shout tinytext NOT NULL,
PRIMARY KEY (id)
);
Hierna ben je klaar met het aanmaken van de database en de bijbehorende tabel.
Kopieer nu alle scripts en fla bestanden naar de map phpdev/www/public. DOE JE DIT NIET, DAN MOET JE JE
FLASH BESTAND AANPASSEN IVM ANDERE LOAD ACTIONS.
Als het goed is kun je nu via localhost naar het volgende adres gaan:
http://localhost/public/config.php
Krijg je een soort van error? Mooi, lees de volgende stap dan maar:
Als je een leeg scherm krijgt dan heet je database waarschijnlijk al shoutbox, en hoef je stap 2
niet te volgen.
Wil je dat andere mensen op jouw server kunnen komen, dan moet je ipv http://localhost/public
http://JEIPADRES/public doorgeven.
STAP 2: CONFIG.PHP AANPASSEN (INDIEN NODIG)
Nu moet je nog je scripts een beetje gaan aanpassen. Open config.php en wijzig het bestand:
<?
$dburl="localhost";
$db="shoutbox"; // DIT MOET JE WIJZIGEN, TENZIJ JOUW DATABASE OOK SHOUTBOX HEET
mysql_connect("$dburl") or die("&error=ERROR: CAN'T CONNECT&content=SEE ERROR DETAILS");
mysql_select_db("$db") or die("&error=ERROR: CAN'T SELECT DB&content=SEE ERROR DETAILS");
?>
Ok, klaar met de scripts. Probeer eens naar http://localhost/public/config.php te gaan. Je krijgt een
leeg scherm. Nee? Dan doe je iets verkeerd, lees even de vorige stappen nog door.
Nu moet het werken. Werkt het niet? Dan kun je me altijd een mailtje sturen.
Mzzls,
Menno
void@flashfreaks.nl
Non-English Characters
Hi All,
We can get whether a character is English or not from its ASCII value.
Is there any other way in actionscript to find if the character is non-english or english?
Thanks,
Manish
Flashblog In English?
Anyone know if flashblog.org is in english anywhere? Or if someone has an english version of the files?
thnxs,
adam
|