|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by MrBougard in Page Layout / Desktop Publishing Software, Graphics, Scripting Languages, Adobe Creative Suite, Adobe Flash
Hi,
How can I switch between languages when in any frame. That is, if I am viewing something in one language and want to switch to the other language to read the translation, how do I link this? (In any bilingual society we constantly switch from one language to the other to check translations)
I've made a web site in Flash, two languages. My problem is I don't know the code or the way to toggle between the languages (how to link my buttons) when I'm in a specific frame (say frame 7) to the correspondent frame in the other language (frame 7 English to frame 7 French, for example).
I tried the two dots before the / as we do in html but that doesn't seem to work in ActionScript.
Any idea?
Please see the code below.
Thanks,
Michel
1:
2:
3:
4:
5:
6:
7:
|
//Bouton "English"
English_btn.addEventListener(MouseEvent.CLICK, EngClicked);
function EngClicked(Event:MouseEvent):void
{
var link:URLRequest = new URLRequest("../English/9-StdLifeEng.html");
navigateToURL(link, '_self');
}
|
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625