Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
FLASH VARS TO SET LANGUAGE (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: FLASH VARS TO SET LANGUAGE
#406
FLASH VARS TO SET LANGUAGE 3 Years ago
It's very simple to use Flash Vars to send certain variables to the Flashblocks system. In this example I used variables in the HTML page to tell Flashblocks which text file to read and write the data from. The benefit is that you only have to create one FLashblocks website (and only update one Flashblocks website when making design modifications).


HTML EMBEDDED OBJECT:

The forum wasn't letting me post the HTML so just view the source of each HTML page from the links below !


ACTIONSCRIPT (Inside your main sites FLA):

if (_root.language == "english") {
_root.flashblocks.loadData("flashblocks/english.txt");
} else if (_root.language == "french") {
_root.flashblocks.loadData("flashblocks/french.txt");
} else {
_root.flashblocks.loadData("flashblocks/german.txt");
}
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
FLASH VARS TO SET LANGUAGE
sbirchmore 2005/11/07 08:54
    thread link
thread linkthread link Re:FLASH VARS TO SET LANGUAGE
anna 2005/12/29 07:00
    thread link
thread linkthread linkthread link Re:FLASH VARS TO SET LANGUAGE
admin 2005/12/29 11:53
Go to top Post Reply
get the latest posts directly to your desktop

Thank you