hi,
this is fairly simple to do.
so the button Dutch is clicked. Then set for example set(_lang, Dutch);
|
Quellcode
|
1
|
<scene name="scene_1" title="scene1" audio="thekrpanosongpart1.mp3" onstart="" >
|
and
|
Quellcode
|
1
|
<events name="audio" keep="true" onnewscene="PlayAudio" />
|
and
|
Quellcode
|
1
2
3
4
5
6
7
8
|
<action name="PlayAudio">
set(_audio, calc:'audioplayer/audio/' + _lang + '/' + scene[get(xml.scene)].audio);
if(scene[get(xml.scene)].audio,
playsound(sound1,get(_audio));
,
stopsound(sound1);
);
</action>
|
something like that.
EDIT: sorry.. i forgot the language.. haha .. edited in..
Hope it helps!
Tuur
hi Tuur, another problem i haven't found before.
i also use set(_lang,chinese) in the first scene onstart, if i don't the first scene will link none mp3.
when i go back to the first scene, the language will return to chinese.
i also use action set(_lang,chinese) in startup but it doesn't work.
how to set one kind language as default.