Page 1 of 1
Flash and php
Posted: Wed Oct 15, 2008 10:36 am
by trem
Hello…I need some help with flash and php. I want to use flash file in php. To be more specific. I have one swf files in Greek version and one in English version , that I want to do is to call each time the right version according the language that user choose. For example, by default the index.php is loads in English version and I want the $lang.swf file to be loaded (because $lang=English) the same I want to happen when the user choose Greek language, the greek swf file to be loaded. How im going to do that. Thank you in advance for you help.!!!
Re: Flash and php
Posted: Wed Oct 15, 2008 10:43 am
by Paul Arnold
How are you planning for the user to switch between languages? Is it going to be a session variable or something that's posted to the page or what?
Say if it was a session you could just name the swf files say english.swf and greek.swf and then call up the filename like:
Code: Select all
<?PHP echo $_SESSION['language'];?>.swf
Re: Flash and php
Posted: Wed Oct 15, 2008 7:01 pm
by califdon
Also, how are you presenting the .swf file, as a hyperlink or embedded?
Re: Flash and php
Posted: Thu Oct 16, 2008 2:55 am
by php2all
<?PHP echo $_SESSION['language'].'.swf';?>
try this
by
sudhakar