Info about multi language usage:
Note the character ”{” in the nodes, for example in description, language, btnLabel etc. This character is used to split the strings into arrays. Throughout the website, the language is referred to as a position number in these arrays. Therefor, the first language you set will be number 0, the second is number 1 and so on. You can have 5 different languages in structure.xml. This should be enough for most cases, if not, you can increase the number in NavigationParser2 (languageCount). If you don't use a ”{”, the same string will be used for all 5 elements in the array.
The nodes of the XML file looks like this:
<structure> <!-- SITE --> <site> <title/> <description/> <keywords/> <language/> <contentfolders/> <bgcolor/> <flashversion/> </site> <!-- PRELOAD FILES TO CACHE --> <preload_cache> <data/> </preload_cache> <!-- NAVIGATION SETTINGS --> <navigation_settings> <setSuspendAfterInit/> <setFade/> <setFadeInOnMouseOver/> <setFadeInDepth/> <setFadeOutTimerDelay/> <setFadeInChainDelay/> <setKeepRolloverStatus/> <setAlwaysHideChildren/> <setBtnLabelTextNewLine/> <setBtnDepths/> <setAutoActivateDelay/> </navigation_settings> <!-- NAVIGATION --> <navigation> <button> <data/> <yournode/> </button> </navigation> </structure>
<title>Demo-Flebsite</title>
<description>This website is a pure flash website, or short: a flebsite!{Dies ist eine reine flash website, oder einfacher: eine flebsite!</description>
<keywords>flash,website framework,cms</keywords>
<language id="en{de">english{deutsch</language>
<contentfolders src="content_source" swf="content_swf"/>
<bgcolor>FFFFFF</bgcolor>
<flashversion>9.0.124</flashversion>
<data file="mainBtn.swf" bytes="63351"/> <data file="images/b1africanl001.jpg" bytes="16384"/> <data file="images/b2architecturals018.jpg" bytes="16759"/>
Here you set up the global navigation. In net.kaegi.fleb.Core, the XML is parsed and the corresponding method will be called. Please refer to the global navigation docs for more details.
Here are the default values:
<setSuspendAfterInit>false</setSuspendAfterInit> <setFade>false</setFade> <setFadeInOnMouseOver>false</setFadeInOnMouseOver> <setFadeInDepth>front</setFadeInDepth> <setFadeOutTimerDelay>2</setFadeOutTimerDelay> <setFadeInChainDelay>0</setFadeInChainDelay> <setKeepRolloverStatus>false</setKeepRolloverStatus> <setAlwaysHideChildren>false</setAlwaysHideChildren> <setBtnLabelTextNewLine></setBtnLabelTextNewLine> <setBtnDepths rollout="front" rollover="front" press="front" release="front"/> <setAutoActivateDelay>0</setAutoActivateDelay>
Note: The values shown above are the default values. If you remove a navigation_settings these default values will be used.
<button id="home" btnSWF="mainBtn.swf" btnPosX="150" btnPosY="57" btnSpacingX="5" btnAddLabelSpace="10" btnLabel="Home{Startseite" btnStayActive="true">
Please refer to the global navigation xml attributes for detailed description.
<data swf="%site%/page.swf" source="%site%/service.xml{%site%/dienstleistungen.xml" seosource="content_source/page.php" title="Service - %site%{Dienstleistungen - %site%" address="/en/service/{/de/dienstleistungen/" keywords="service,%site%{dienstleistungen,%site%" description="service - %site%{dienstleistungen - %site%"/>
address="/en/service/{/de/dienstleistungen/"
If needed, you can later access these values via the global variable varcentral.flebActiveData.addressArr[varcentral.flebLanguage]. More details here.
title="Welcome to the %site%{Willkommen auf der %site%"
Note the %site%. This is a placeholder if you want to reuse the site title. That way you don't have to retype it a dozen times. If needed, you can later access these values via the global variable varcentral.flebActiveData.titleArr[varcentral.flebLanguage]. More details here.
keywords="service,%site%{dienstleistungen,%site%"
description="service - %site%{dienstleistungen - %site%"
You can have as many individual nodes as you like per content page section.
<yournode yourattriute="hello world 1">This is text of yournode 1</yournode> <yournode yourattribute="hello world 2">This is text of yournode 2</yournode> <yournode yourattribute="hello world 3">This is text of yournode 3</yournode> <yournode yourattribute="hello world 4">This is text of yournode 4</yournode>
Later in your code you can access these nodes and its attributes like this:
var nodeList:XMLList = event.params.node.yournode; for (var n in nodeList) { // get the attribute: trace(nodeList[n].@yourattribute); // get the node text: trace(nodeList[n].text()); }
Use this to have any kind of data in the structure.xml file, for example images for galleries, mp3 sounds or whatever.