<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quatrecentquatre</title>
	<atom:link href="http://blog.quatrecentquatre.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quatrecentquatre.com</link>
	<description>3437 St-Laurent, Montréal, Québec, H2X 2T6, / Téléphone : 514-303-6810</description>
	<lastBuildDate>Mon, 05 Jul 2010 20:59:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Votre popularité sur Facebook</title>
		<link>http://blog.quatrecentquatre.com/2010/07/05/votre-popularite-sur-facebook/</link>
		<comments>http://blog.quatrecentquatre.com/2010/07/05/votre-popularite-sur-facebook/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 20:58:19 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Tout et Rien]]></category>
		<category><![CDATA[outils facebook social]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/2010/07/05/votre-popularite-sur-facebook/</guid>
		<description><![CDATA[Facebook offre des outils afin de vous donner une idée de la popularité de votre site web sur leur réseau. Ceux-ci requiert généralement des talents de programmeur mais vous pouvez aussi simplement utiliser l'adresse suivante dans votre navigateur:
http://api.facebook.com/restserver.php?method=links.getStats&#038;urls=google.com,google.ca
En remplaçant, bien évidemment, les URLs par les vôtres
]]></description>
			<content:encoded><![CDATA[<p>Facebook offre des outils afin de vous donner une idée de la popularité de votre site web sur leur réseau. Ceux-ci requiert généralement des talents de programmeur mais vous pouvez aussi simplement utiliser l'adresse suivante dans votre navigateur:</p>
<p><a href="http://api.facebook.com/restserver.php?method=links.getStats&urls=google.com,google.ca" target="_blank">http://api.facebook.com/restserver.php?method=links.getStats&urls=google.com,google.ca</a></p>
<p>En remplaçant, bien évidemment, les URLs par les vôtres</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2010/07/05/votre-popularite-sur-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deux nouvelles chaises à combler</title>
		<link>http://blog.quatrecentquatre.com/2010/01/07/deux-nouvelles-chaises-a-combler/</link>
		<comments>http://blog.quatrecentquatre.com/2010/01/07/deux-nouvelles-chaises-a-combler/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 20:48:25 +0000</pubDate>
		<dc:creator>Jocelyn</dc:creator>
				<category><![CDATA[Tout et Rien]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=305</guid>
		<description><![CDATA[C'est le début d'une nouvelle année et qui dit nouvelle année dit nouveaux projets et c'est pourquoi nous recherchons activement deux nouvelles personnes pour venir se greffer à notre équipe dynamique.
Un(e) chargé(e) de projet en production interactive.
Le candidat (ou la candidate) sera appelé à travailler avec une équipe de programmeurs et développeurs interactif. Sa principale [...]]]></description>
			<content:encoded><![CDATA[<p>C'est le début d'une nouvelle année et qui dit nouvelle année dit nouveaux projets et c'est pourquoi nous recherchons activement deux nouvelles personnes pour venir se greffer à notre équipe dynamique.</p>
<p><strong>Un(e) chargé(e) de projet en production interactive.</strong></p>
<p>Le candidat (ou la candidate) sera appelé à travailler avec une équipe de programmeurs et développeurs interactif. Sa principale tâche sera d’assurer la gestion des mandats de l’entreprise (planification, production, budget et échéanciers), d’effectuer le suivi auprès des clients et d’assumer les tâches connexes à l’ouverture à la fermeture d’un projet. Ceposte est disponible sur une base contractuelle, soit un remplacement de congé de maternité d’une durée de 1 an, avec une possibilité de permanence à la fin du contrat.</p>
<p><em>REQUIS</em></p>
<ul>
<li> Expérience en agence de publicité intégrée ou en boîte de production interactive</li>
<li>Sens de la planification et savoir gérer les priorités</li>
<li>Aptitudes pour le service à la clientèle</li>
<li>Capacité à gérer plusieurs projets à la fois</li>
<li>Connaître la base du lexique interactif</li>
</ul>
<p><br><br />
<strong>Un développeur interactif (permanent et/ou pigiste)<br />
</strong></p>
<p>Le candidat (ou la candidate) sera appelé à travailler sur des projets de natures diverses, notamment : des bannières ‘Rich media’, des jeux interactifs, des sites simples,<br />
complexes ou très complexes. Il/elle côtoiera une équipe de passionnés dédiée à pousser les projets au delà des attentes des clients et devra être en mesure de participer au développement de projets seul ou en équipe.</p>
<p><em>REQUIS</em></p>
<ul>
<li>Maîtrise de Actionscript 2 et 3, HTML, CSS, XML</li>
<li>Maîtrise ou compréhensions de base du OOP</li>
<li>Bonne connaissance de la suite Adobe (Photoshop, Illustrator, Dreamweaver, Flash)</li>
<li>Compétences PHP et CSS un atout</li>
</ul>
<p>En espérant vous revoir bientôt chez nous!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2010/01/07/deux-nouvelles-chaises-a-combler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merci aux donateurs de Movember!</title>
		<link>http://blog.quatrecentquatre.com/2010/01/07/merci-aux-donateurs-de-movember/</link>
		<comments>http://blog.quatrecentquatre.com/2010/01/07/merci-aux-donateurs-de-movember/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 20:19:08 +0000</pubDate>
		<dc:creator>Jocelyn</dc:creator>
				<category><![CDATA[Entreprise]]></category>
		<category><![CDATA[Movembre]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=300</guid>
		<description><![CDATA[Les donations pour la fondation Movember se sont terminées à la fin décembre. Nous voulons spécialement remercier tous les donateurs qui nous ont aidé à amasser l'impressionnant montant de 1129$ pour la fondation. Nous voulons aussi remercier tous les fans de notre groupe sur Facebook qui ont été spécialement généreux tout au long de la [...]]]></description>
			<content:encoded><![CDATA[<p>Les donations pour la fondation Movember se sont terminées à la fin décembre. Nous voulons spécialement remercier tous les donateurs qui nous ont aidé à amasser l'impressionnant montant de 1129$ pour la fondation. Nous voulons aussi remercier tous les fans de notre <a href="http://www.facebook.com/group.php?v=app_2344061033&amp;gid=172160321314#/group.php?v=wall&amp;gid=172160321314" target="_blank">groupe sur Facebook </a>qui ont été spécialement généreux tout au long de la campagne. Comme la collecte fut un franc succèes, nous allons définitivement répéter l'expérience cette année avec un nouveau concept encore plus poilu.</p>
<p>La fondation <a href="http://ca.movember.com/" target="_blank">Movember</a> a ammassé plus de 7 millions de dollars au Canada seulement cette année.</p>
<p>Allors ont se dit à novembre prochain pour le mois de la moustache!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2010/01/07/merci-aux-donateurs-de-movember/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Movembre, aidez-nous à combattre le cancer de la prostate.</title>
		<link>http://blog.quatrecentquatre.com/2009/11/03/movembre-aidez-nous-a-combattre-le-cancer-de-la-prostate/</link>
		<comments>http://blog.quatrecentquatre.com/2009/11/03/movembre-aidez-nous-a-combattre-le-cancer-de-la-prostate/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:05:46 +0000</pubDate>
		<dc:creator>Jocelyn</dc:creator>
				<category><![CDATA[Tout et Rien]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=296</guid>
		<description><![CDATA[Le cancer de la prostate est le type de cancer le plus répandu chez les hommes au Canada et c'est dans le but d'amasser des fonds pour la recherche sur cette maladie que nous avons décidé de convaincre notre entourage à participer au mois de Movember. Nous vous encourageons donc à faire un don, si [...]]]></description>
			<content:encoded><![CDATA[<p>Le cancer de la prostate est le type de cancer le plus répandu chez les hommes au Canada et c'est dans le but d'amasser des fonds pour la recherche sur cette maladie que nous avons décidé de convaincre notre entourage à participer au mois de Movember. Nous vous encourageons donc à faire un don, si énorme ou petit soit-il, afin d'encourager notre équipe mais surtout les hommes atteints. Soyez assuré que chaque dollar ammassé ira directement à la fondation Movember. Merci, et n'oubliez pas de revenir voir l'évolution de nos moustaches à travers le mois de Movembre! Allez voir nos superbes face évoluez tout au long du mois de novembre sur <a href="http://www.quatrecentquatre.com/movember/" target="_blank">notre site dédié à la cause</a>.</p>
<p id="donate"><a href="https://www.movember.com/ca/donate/your-details/team_id/31935/" target="_blank">Faites-un don!</a></p>
<p>Pour plus de renseignements sur le cancer de la prostate, visitez:<br />
<a href="http://www.cancer.ca/Quebec/About%20cancer/Types%20of%20cancer/What%20is%20prostate%20cancer.aspx?sc_lang=fr-CA&amp;r=1" target="_blank">www.cancer.ca</a></p>
<p>Pour plus de renseignements sur la fondation Movember, visitez:<br />
<a href="http://ca.movemberfoundation.com/" target="_blank">ca.movemberfoundation.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/11/03/movembre-aidez-nous-a-combattre-le-cancer-de-la-prostate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logo of the day</title>
		<link>http://blog.quatrecentquatre.com/2009/09/21/logo-of-the-day/</link>
		<comments>http://blog.quatrecentquatre.com/2009/09/21/logo-of-the-day/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 15:43:33 +0000</pubDate>
		<dc:creator>Mathieu</dc:creator>
				<category><![CDATA[Prix]]></category>
		<category><![CDATA[Tout et Rien]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=291</guid>
		<description><![CDATA[Notre logo fait parution sur le home page du site http://logooftheday.com/ .
Encore merci Akufen pour cette belle création.
]]></description>
			<content:encoded><![CDATA[<p>Notre logo fait parution sur le home page du site <a title="Logo od the day" href="http://logooftheday.com/" target="_blank">http://logooftheday.com/ </a>.</p>
<p>Encore merci <a href="http://www.akufen.ca/" target="_blank">Akufen </a>pour cette belle création.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/09/21/logo-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concoctez votre soirée!</title>
		<link>http://blog.quatrecentquatre.com/2009/09/17/concoctez-votre-soiree/</link>
		<comments>http://blog.quatrecentquatre.com/2009/09/17/concoctez-votre-soiree/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 15:12:40 +0000</pubDate>
		<dc:creator>Mathieu</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Réalisation]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=288</guid>
		<description><![CDATA[Notre dernière réalisation est en ligne sur http://www.exceldor.ca/.  C’est un petit module flash qui s’appel le « concocteur de soirée » permettant aux usagers de se bâtir un souper idéal.
Ce projet à été réalisé pour l’agence Saint-Jacques Vallée young &#38; Rubicam.
]]></description>
			<content:encoded><![CDATA[<p>Notre dernière réalisation est en ligne sur <a href="http://www.exceldor.ca/">http://www.exceldor.ca/</a>.  C’est un petit module flash qui s’appel le « concocteur de soirée » permettant aux usagers de se bâtir un souper idéal.</p>
<p>Ce projet à été réalisé pour l’agence Saint-Jacques Vallée young &amp; Rubicam.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/09/17/concoctez-votre-soiree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La problématique des &#8220;fontes&#8221; sur le Web</title>
		<link>http://blog.quatrecentquatre.com/2009/07/01/la-problematique-des-fontes-sur-le-web/</link>
		<comments>http://blog.quatrecentquatre.com/2009/07/01/la-problematique-des-fontes-sur-le-web/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:49:32 +0000</pubDate>
		<dc:creator>Jocelyn</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Lecture]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[fontes]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[polices]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=266</guid>
		<description><![CDATA[LES FONTES
Depuis des siècles, les designers web tentent tant bien que mal d'exprimer leur créativité malgré la dictature impitoyable des familles Arial, Verdana et autres Tahoma. Mais à l'horizon pointe une lueur d'espoir. Le moment où les designers pourront enfin utilisé la fonte de leurs choix approche, sans le moindre égard aux limitations qui pullulent [...]]]></description>
			<content:encoded><![CDATA[<p><strong>LES FONTES</strong><br />
Depuis des siècles, les designers web tentent tant bien que mal d'exprimer leur créativité malgré la dictature impitoyable des familles Arial, Verdana et autres Tahoma. Mais à l'horizon pointe une lueur d'espoir. Le moment où les designers pourront enfin utilisé la fonte de leurs choix approche, sans le moindre égard aux limitations qui pullulent du côté client et, ainsi, éviter les soupirs de leurs collègues intégrateurs.</p>
<p><strong>CSS3</strong><br />
Même si elle existe depuis CSS2, la propriété CSS @font-face n'a toujours  pas été adoptée à grande échelle. Triste, surtout si on tient compte de la facilité d'implantation:</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/*CSS*/</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">@font-face{</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">font-family</span>: <span style="color: #ff0000;">'laFonte'</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	src: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'../laFonte.ttf'</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>  </div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/*Après avoir annoncé la règle @font-face, il ne</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">s'agit que d'attribuer la nouvelle famille aux balises souhaitées*/</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">p <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">font-family</span>: <span style="color: #ff0000;">&quot;laFonte&quot;</span>,Verdana, Geneva, <span style="color: #993333;">sans-serif</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/*fin*/</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Si le fureteur ne supporte pas @font-face ou s'il y a un problème avec la source, la fonte suivante dans le  "CSS font stack" jouera son rôle. </p>
<p>Cependant, deux problèmes majeur se dresse devant les utilisateur potentiel de cette façon de faire.</p>
<p> Premièrement, pour la plupart des fonderies  rendre une de leur  fonte disponible sur un serveur web constitue une violation des droits d'utilisation de celle-ci.</p>
<p>Deuxièmement.  Le support est encore très peu convaincant. Safari 3.1 est le seul qui supporte cette propriété. Opera 10 et Firefox 3.5 devrait l'implanter, tandis qu'IE la supporte seulement si la fonte liée est une "Embedded OpenType".<br />
Une .EOT  est créée grâce au logiciel WEFT de Microsoft (ou ttf2eot pour Linux). La transformation d'une fonte dans ce format compressé ne se fait malheureusement pas toujours sans heurts. Certaines glyphes peuvent être altérées, et certaines fontes ne survivent  tout simplement pas à l'opération de compression du logiciel de Microsoft. Ce qui rend cette avenue fort hasardeuse.</p>
<p><strong>EN ATTENDANT</strong><br />
D'ici à ce que @font-face soit réellement implanté dans notre univers multi-fureteur, nous avons qu'en même à notre disposition des outils pour combler cet étonnant vide technologique... Voici deux solutions ayant fait leur preuve. SiFr est dans le décor depuis belle lurette et Cufòn est un nouveau venu fort prometteur...</p>
<p><strong>sIFR (Scalable Inman Flash Replacement)</strong><br />
L'idée de base est simple.  Intégrer la fonte souhaitée dans un SWF ayant un champ texte dynamique à l'intérieur. Puis, grâce au javascript, localiser les textes à remplacer, les mesurer et les "lire". Ensuite, créer des objets Flash  de même taille, contenant le même texte et les placer à la même position que le texte remplacé.</p>
<p> L'implantation est  relativement facile: Il faut créer un SWF, importer un fichier javascript et écrire une ligne de code javascript pour chaque type de balise/class/id que l'on veut remplacer qui pourrait bien ressembler à ceci:</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sIFR.<span style="color: #006600;">replaceElement</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;h1&quot;</span>, named<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>sFlashSrc: <span style="color: #3366CC;">&quot;./vandenkeere.swf&quot;</span>, sColor: <span style="color: #3366CC;">&quot;#000&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div></li></ol></pre>
<p>Cependant, il est nécéssaire de faire un peu de lecture afin de comprendre l'interaction entre le javascript, le SWF et le CSS.</p>
<p>Les avantages sont nombreux :</p>
<ul>
<li>Textes sélectionnables et disponibles pour les engins de recherche.</li>
<li>Fontes nettes et précise.</li>
<li>Textes sujets aux CSS et à certains effets Flash (dropshadow, anti-aliasing, etc...).</li>
<li>Reconnaissance et soulignement automatique des liens.</li>
<li>Plusieurs "add-ons" dont un pour JQuery.</li>
<li>Totalement légal du point de vue des fonderies.</li>
</ul>
<p>Il y a qu'en même quelques désavantages :</p>
<ul>
<li>Requiert le Javascript activé ainsi que FlashPlayer 6+ pour fonctionner. </li>
<li>Étant un outils très malléable - le "font-tuning"  surtout -  SiFR peut devenir très complexe et source de frustration dans des projets complexes où se côtoient divers "frameworks" Javascript et/ou des feuilles de style tentaculaire.</li>
</ul>
<p>D'ailleurs, les concepteurs suggèrent d'utiliser sIFR avec parcimonie. Si vous confinez l'outil à des endroit rare et bien choisie, l'intégration ne sera que plus aisée.</p>
<p><strong>Cufòn</strong><br />
L'avenir est rose et simple pour cet héritier de Typeface. Grâce à un générateur disponible gratuitement, on peut convertir une fontes en fichier .js qui nous permettra de reproduire en SVG les glyphes souhaitées.</p>
<p>Tout aussi simple d'implantation que sIFR, voir même plus, Cufòn requiert peu de chose. On créer le fichier de fonte dans le générateur en 2-3 cliques, on importe le fichier de fonte ainsi que le fichier Javascript Cufòn dans le "header" de la page. Puis, on remplace le contenu des balise désiré en appelant une méthode portant le nom judicieux de... replace() !</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>src=<span style="color: #3366CC;">&quot;js/cufon-yui.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;js/funky.font.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&gt; Cufon.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'h1'</span><span style="color: #66cc66;">&#41;</span>; &lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Les avantages :</p>
<ul>
<li>Seul le Javascript est nécéssaire</li>
<li>Coté CSS, les images créées sont identiques aux glyphes remplacées.</li>
<li>Supporté par la quasi-totalité des fureteurs: FireFox 1.5+, Safari 3+, Opera 9.5+, Chrome et IE 6/7/8, ce dernier requiert une ligne Javascript de plus en fin de page pour palier à sa lenteur d'affichage, mais rien de majeur.</li>
<li>Communauté florissante et motivé à amélioré le concept.</li>
</ul>
<p>Malheureusement, Cufòn est encore loin d'être parfait :</p>
<ul>
<li>Sélection du texte impossible.. une image reste une image.</li>
<li>Problème avec quelques vieilles fontes PostScript Mac.</li>
<li>Fidélité de transitions entre glyphes et images SVG pas toujours parfaite, mais toujours correct.</li>
<li>Encore quelques zones grises du point de vue légal. Mais les discussions vont bon train semble-t-il.</li>
<li>Problème avec certains sélecteurs CSS spécialisés.</li>
</ul>
<p>Cufòn n'offre rien de plus qu'un simple remplacement d'image du point de vue de l'accessibilité, cependant, si les changement de titre sont fréquents, ce dernier reste une alternative à ne pas négliger...</p>
<p>En terminant, si les titres en fontes particulières sont votre pain quotidien, prendre quelques heures pour maitriser sIFR  parait être un excellent investissement qui ne ferait qu'améliorer le référencement de vos créations. </p>
<p>Sinon, Cufòn reste une alternative simple qui reste qu'en même plus aisée que d'avoir à changer les images de vos titres dans Photoshop à chaque changement de virgule!</p>
<p>Lien vers <a href="http://www.mikeindustries.com/blog/sifr/">sIFR</a>.<br />
Lien vers <a href="http://wiki.github.com/sorccu/cufon/about">Cufòn</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/07/01/la-problematique-des-fontes-sur-le-web/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SWFAddress&#8217; NavigationManager redux</title>
		<link>http://blog.quatrecentquatre.com/2009/06/11/swfaddress-navigationmanager-redux/</link>
		<comments>http://blog.quatrecentquatre.com/2009/06/11/swfaddress-navigationmanager-redux/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:39:20 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Tout et Rien]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=261</guid>
		<description><![CDATA[Dans notre dernier post nous vous avons démontré comment utiliser le NavigationManager. Voici un petit démo qui vous aidera à figurer les propriétés d'un SectionData retourné par le système.
Vous verrez, l'essayer c'est l'adopter!
DÉMO
TÉLÉCHARGER
]]></description>
			<content:encoded><![CDATA[<p>Dans notre dernier <a href="http://blog.quatrecentquatre.com/2009/06/08/utilisation-de-swfaddress-a-travers-le-navigation-manager/">post</a> nous vous avons démontré comment utiliser le NavigationManager. Voici un petit démo qui vous aidera à figurer les propriétés d'un SectionData retourné par le système.</p>
<p>Vous verrez, l'essayer c'est l'adopter!</p>
<p><a href="http://quatrecentquatre.com/clients/public/404/navigationmanager_example/">DÉMO</a><a href="http://quatrecentquatre.com/clients/public/404/NavigationManager1.0.zip"><br />
TÉLÉCHARGER</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/06/11/swfaddress-navigationmanager-redux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utilisation de SWFAddress à travers le NavigationManager</title>
		<link>http://blog.quatrecentquatre.com/2009/06/08/utilisation-de-swfaddress-a-travers-le-navigation-manager/</link>
		<comments>http://blog.quatrecentquatre.com/2009/06/08/utilisation-de-swfaddress-a-travers-le-navigation-manager/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 22:01:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Développement]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tout et Rien]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[NavigationManager]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Outil]]></category>
		<category><![CDATA[SWFAddress]]></category>
		<category><![CDATA[Tool]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=209</guid>
		<description><![CDATA[Le NavigationManager de QuatreCentQuatre est une enveloppe ou un Proxy qui sert à titre d’interface à la classe SWFAddress de Asual afin de mieux contrôler son comportement et d’en étendre les fonctionnalités.
SWFAddress d'Asual
SWFAddress est une combinaison de techniques permettant, à travers des classes Javascript et Actionscript, le deep-linking (la possibilité d’accéder à des sections ou [...]]]></description>
			<content:encoded><![CDATA[<p>Le NavigationManager de QuatreCentQuatre est une enveloppe ou un Proxy qui sert à titre d’interface à la classe SWFAddress de Asual afin de mieux contrôler son comportement et d’en étendre les fonctionnalités.</p>
<p><strong>SWFAddress d'Asual</strong></p>
<p><a href="http://www.asual.com/swfaddress/">SWFAddress</a> est une combinaison de techniques permettant, à travers des classes Javascript et Actionscript, le deep-linking (la possibilité d’accéder à des sections ou des pages directement à partir de la barre d’adresse du fureteur) dans des sites programmés en Flash.  Cette technique, en plus de permettre l’utilisation de signets et des boutons Suivant et Précédent du fureteur, est une des meilleures solutions afin d’optimiser son site pour les moteurs de recherche.</p>
<p><img class="aligncenter size-full wp-image-211" title="SWFAddress" src="http://blog.quatrecentquatre.com/wp-content/uploads/2009/06/caption1.gif" alt="SWFAddress" width="397" height="176" /></p>
<p>Afin d’utiliser <a href="http://www.asual.com/swfaddress/">SWFAddress</a>, il suffit d’intégrer l’outil dans le HTML de la façon suivante :</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;library/swfobject.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;library/swfaddress.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> flashvars = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> params = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> attributes = <span style="color: #66cc66;">&#123;</span>id:<span style="color: #3366CC;">&quot;flashMovie&quot;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	swfobject.<span style="color: #006600;">embedSWF</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;navigationExample.swf&quot;</span>, <span style="color: #3366CC;">&quot;alternateContent&quot;</span>, <span style="color: #3366CC;">&quot;100%&quot;</span>, <span style="color: #3366CC;">&quot;100%&quot;</span>, <span style="color: #3366CC;">&quot;9.0.124&quot;</span>, <span style="color: #003366; font-weight: bold;">false</span>, flashvars, params, attributes<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p><strong>UTILISATION DE SWFADDRESS</strong></p>
<p>L’intégration dans Flash s’effectue ensuite comme suit :</p>
<pre class="actionscript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> :<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	SWFAddress.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SWFAddressEvent.<span style="color: #006600;">CHANGE</span>, handleChange, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//Exemple de changement de page, mais une page ‘’/’’ est reçue par défaut au départ de l’application</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	SWFAddress.<span style="color: #006600;">setValue</span><span style="color: #66cc66;">&#40;</span>‘’page1’’<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleChange<span style="color: #66cc66;">&#40;</span>evt:SWFAddressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> laSection:<span style="color: #0066CC;">String</span> = evt.<span style="color: #006600;">value</span>; </div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//La seule information obtenue est un string, une condition doit donc être programmée</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #b1b100;">switch</span><span style="color: #66cc66;">&#40;</span>laSection<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">		<span style="color: #b1b100;">case</span> ‘’X’’ :</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #808080; font-style: italic;">//opération afin de changer de section</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #808080; font-style: italic;">//Changer le titre de la page (défini manuellement)</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #808080; font-style: italic;">//Vérifier si c’est la section demandée n’existe pas, etc…</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p><a href="http://www.asual.com/swfaddress/">SWFAddress</a> présente aussi plusieurs outils pour, par exemple :</p>
<ul>
<li>Ouvrir des liens externes</li>
<li>Reculer dans l’historique</li>
<li>Monter de niveau hiérarchique (section1/section1-1 vers section1/)</li>
<li>Changer le titre de la page (dans quel cas SWFAddress doit être déclaré sous la balise  dans le html.</li>
</ul>
<p><strong>Note</strong> : <a href="http://www.asual.com/swfaddress/">SWFAddress</a>, quand il est utilisé adéquatement, remplace et surclasse le moteur d’indexation des fichiers swf des moteurs de recherche populaires tels que Google, c’est pourquoi il est important d’inclure un fichier robots.txt afin d’empêcher ceux-ci d’indexer automatiquement les fichiers gérés par <a href="http://www.asual.com/swfaddress/">SWFAddress</a> ou le NavigationManager.<br />
Exemple de fichier robots.txt :</p>
<pre class="text"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Sitemap: http://www.asual.com/sitemap.xml</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">User-agent: *</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Disallow: /*.swf*</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p> &nbsp;<br />
 &nbsp;<br />
<strong>NAVIGATIONMANGER</strong></p>
<p>Le mandat de <a href="http://www.asual.com/swfaddress/">SWFAddress</a> est de permettre le deep-linking et cet objectif est atteint. Toutefois, des mécanismes personnalisés doivent être mis en place afin d’en régir le fonctionnement ainsi que les cas d’exception.  Que faites-vous si vous voulez que la description des sections soit chargée à l’externe, passer à la section suivante, assigner des descriptions aux sections, obtenir les infos de son parent ou encore que vous désirez savoir à quel niveau hiérarchique se trouve la section courante?  Vous devrez programmer vos propres mécanismes ou utiliser le NavigationManager.</p>
<p>Propriétés et méthodes publiques</p>
<p><div id="attachment_232" class="wp-caption aligncenter" style="width: 722px"><img class="size-full wp-image-232" title="NavigationManager" src="http://blog.quatrecentquatre.com/wp-content/uploads/2009/06/caption2.gif" alt="Structure du NavigationManager de QuatreCentQuatre" width="712" height="606" /><p class="wp-caption-text">Structure du NavigationManager de QuatreCentQuatre</p></div><br />
 &nbsp;<br />
 &nbsp;<br />
Étant donné que le NavigationManager est une enveloppe à SWFAddress, les classes de ce dernier seront requises et l’intégration Javascript s’effectuera de la même façon.<br />
 &nbsp;<br />
 &nbsp;</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;library/swfobject.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;library/swfaddress.js&quot;</span>&gt;&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> flashvars = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> params = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #003366; font-weight: bold;">var</span> attributes = <span style="color: #66cc66;">&#123;</span>id:<span style="color: #3366CC;">&quot;flashMovie&quot;</span><span style="color: #66cc66;">&#125;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	swfobject.<span style="color: #006600;">embedSWF</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;navigationExample.swf&quot;</span>, <span style="color: #3366CC;">&quot;alternateContent&quot;</span>, <span style="color: #3366CC;">&quot;100%&quot;</span>, <span style="color: #3366CC;">&quot;100%&quot;</span>, <span style="color: #3366CC;">&quot;9.0.124&quot;</span>, <span style="color: #003366; font-weight: bold;">false</span>, flashvars, params, attributes<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Le NavigationManager fonctionne selon un schéma XML qui peut être défini manuellement ou chargé à l’externe, voici un exemple de la structure du XML requis.</p>
<pre class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;response<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;header<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/header<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;body<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;page<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;default&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;description<span style="font-weight: bold; color: black;">&gt;</span></span></span>Section 1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/description<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>section1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span>sectionclasses.Section1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;subitems<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">					<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;normal&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;description<span style="font-weight: bold; color: black;">&gt;</span></span></span>Ceci est la section 1.1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/description<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>section1-1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span>sectionclasses.Section1_1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">					<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">					<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;normal&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;description<span style="font-weight: bold; color: black;">&gt;</span></span></span>Ceci est la section 1.2<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/description<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>section1-2<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">						<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span>sectionclasses.Section1_2<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">					<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/subitems<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span> item <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;notfound&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;description<span style="font-weight: bold; color: black;">&gt;</span></span></span>Section  not found<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/description<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>sectionnotfound<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">				<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span>sectionclasses.Section1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/ressource<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/</span> item<span style="font-weight: bold; color: black;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/page<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/body<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/response<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Les informations d’une section doivent se retrouver à l’intérieur d’une balise &lt;item&gt;  et doivent se situer à l’intérieur du node &lt;page&gt; qui sert de conteneur aux informations de la navigation.</p>
<p>Les informations à retrouver sont les suivantes :</p>
<ul>
<li>L’attribut type qui peut valoir normal au default. Une valeur default indique que cette section est celle qui sera chargée par défaut lors de l’initialisation du système (au lieu de « / »)</li>
<li>La balise tag, qui sera utilisée comme identifiant dans la barre d’addresse et pour google analytics.</li>
<li>La balise description, qui est une valeur qui peut servir, par exemple, à nommer le bouton qui mènera à la section ou encore au titre de la page si la propriété useDescriptionAsTitle a une valeur de true.</li>
<li>La balise ressource, que vous pourrez utiliser afin de spécifier à quelle ressource (classe, fichier swf ou lien externe) la section est liée.</li>
<li>Une balise subitems optionnelle qui contiendra des nodes items qui seront considérés les enfants de l’item courant.</li>
</ul>
<p>Notez qu’un deuxième node de structure similaire mais d’un type notfound peut être placé à la racine de l’arbre afin de régir la section utilisée lorsqu’une page reçue n’est pas définie dans le XML.  Si ce node facultatif n’est pas défini, la page par défaut sera utilisée.<br />
<br />
<strong>UTILISATION DU NAVIGATION MANAGER</strong></p>
<p>L’intégration dans Flash est simple : </p>
<pre class="actionscript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> :<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	NavigationManager.<span style="color: #006600;">instance</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>NavigationManagerEvent.<span style="color: #006600;">SECTION_CHANGED</span>, handleSectionChanged, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	NavigationManager.<span style="color: #006600;">instance</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>NavigationManagerEvent.<span style="color: #006600;">MENU_XML_LOAD_COMPLETE</span>,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">		handleMenuLoadComplete, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	NavigationManager.<span style="color: #006600;">instance</span>.<span style="color: #006600;">loadMenuXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>‘’<span style="color: #0066CC;">menu</span>.<span style="color: #0066CC;">xml</span>’’<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleSectionChanged <span style="color: #66cc66;">&#40;</span>evt: NavigationManagerEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//Référence vers la section courante</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> laSection:SectionData = evt.<span style="color: #006600;">section</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//ou</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> laSection2:SectionData =NavigationManager.<span style="color: #006600;">instance</span>.<span style="color: #006600;">getCurrentSection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//On pourrait créer une section à partir de la ressource :</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> sectionClass:<span style="color: #000000; font-weight: bold;">Class</span> = getDefinitionByName<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">section</span>.<span style="color: #006600;">ressource</span><span style="color: #66cc66;">&#41;</span> as <span style="color: #000000; font-weight: bold;">Class</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> currentSection &lt;img src=<span style="color: #ff0000;">'http://blog.quatrecentquatre.com/wp-includes/images/smilies/icon_biggrin.gif'</span> alt=<span style="color: #ff0000;">':D'</span> <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">'wp-smiley'</span> /&gt; isplayObject = <span style="color: #000000; font-weight: bold;">new</span> sectionClass<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> as SectionObject</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	addChild<span style="color: #66cc66;">&#40;</span>currentSection<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleMenuLoadComplete <span style="color: #66cc66;">&#40;</span>evt: NavigationManagerEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">//Effectue les operations afin de créer le menu</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> iterator:ISubSectionIterator = NavigationManager.<span style="color: #006600;">instance</span>.<span style="color: #006600;">sectionsList</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">length</span>:<span style="color: #0066CC;">int</span> = iterator.<span style="color: #006600;">numSubSections</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i &lt; <span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">		<span style="color: #000000; font-weight: bold;">var</span> laSection:SectionData = iterator.<span style="color: #006600;">getSubSectionAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>
Comme on peut le constater, il peut être pratique d’écouter sur l’événement MENU_XML_LOAD_COMPLETE  afin de savoir si le XML est chargé alors que l’événement SECTION_CHANGED est utile afin de savoir quand une section a changé. Notez que l’événement SECTION_CHANGED  ne sera jamais diffusé avant que la fin du chargement du XML externe ou avant l’assignation manuelle du XML à travers la fonction NavigationManager.instance. sectionsList. setMenuStructure().<br />
<br/><br />
<strong>PRATIQUES À ADOPTER</strong></p>
<ul>
<li>Dans les items associée à une section (un bouton de menu par exemple) implémentez une propriété qui entreposera une référence vers le SectionData de la section qu’ils représentent afin de faciliter l’utilisation du système. En plus, l’espace mémoire requis sera plus petit qu’une valeur textuelle de son chemin enregistrée dans un String. </li>
<li>Si vous avez plus d’un menu pour la navigation, vous pouvez les englober dans des nodes <item> à la racine du groupe
<page> qui serviront ni plus ni moins de conteneurs aux sous-sections qu’ils contiendront.  Pour y accéder individuellement lors de la création dynamique des menus, vous pouvez utiliser la fonction NavigationManager.instance.sectionsList.getSectionByTag(‘’conteneur X’’) à partir duquel vous pourrez accéder à ses enfants.  De plus, la structure dans Google Analytics n’en sera que plus claire étant donné que la section sera identifée comme suit : conteneurX/sectionY </li>
</ul>
<p> &nbsp;<br />
 &nbsp;<br />
<strong>BIBLIOGRAPHIE</strong><br />
SWFAddress Bad Practices<br />
<a href="http://www.asual.com/blog/swfaddress/2007/05/18/swfaddress-bad-practices.html">http://www.asual.com/blog/swfaddress/2007/05/18/swfaddress-bad-practices.html</a><br />
SWFAddress and robots.txt<br />
<a href="http://www.asual.com/blog/swfaddress/2008/11/25/swfaddress-and-robots-txt.html">http://www.asual.com/blog/swfaddress/2008/11/25/swfaddress-and-robots-txt.html</a></p>
<p>Télécharger la version 1.0 du NavigationManager:<br />
<a href="http://quatrecentquatre.com/clients/public/404/NavigationManager1.0.zip">LIEN</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/06/08/utilisation-de-swfaddress-a-travers-le-navigation-manager/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Librairies externes en Flash</title>
		<link>http://blog.quatrecentquatre.com/2009/05/31/librairies-externes-en-flash/</link>
		<comments>http://blog.quatrecentquatre.com/2009/05/31/librairies-externes-en-flash/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 00:26:25 +0000</pubDate>
		<dc:creator>Jocelyn</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Développement]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Réalisation]]></category>
		<category><![CDATA[cs4]]></category>

		<guid isPermaLink="false">http://blog.quatrecentquatre.com/?p=166</guid>
		<description><![CDATA[La problématique des productions Flash multi fichiers
Lors du développement d’un site Flash à fichiers multiples, une problématique apparait très rapidement dans le processus de développement : La réutilisation des même éléments (graphiques, classes, composants) dans plusieurs des fichiers du site. Le problème vient entre autre du fait que chaque fichier  SWF a une librairie de [...]]]></description>
			<content:encoded><![CDATA[<p><strong>La problématique des productions Flash multi fichiers</strong></p>
<p>Lors du développement d’un site Flash à fichiers multiples, une problématique apparait très rapidement dans le processus de développement : La réutilisation des même éléments (graphiques, classes, composants) dans plusieurs des fichiers du site. Le problème vient entre autre du fait que chaque fichier  SWF a une librairie de graphique, composant, et classes unique. De ce fait, si on veut utiliser le même graphique dans deux fichiers SWF, ont doit donc recopier les mêmes éléments qu’on désire réutilisable dans toutes les librairies nécessaires. Cela implique une redondance des éléments et donc une multiplication du poids des fichiers.</p>
<p>Avant  l’arrivé de Flash CS4 et de l’ActionScript 3, il n’y avait pas beaucoup de solution pour contourner le problème. Ont pouvait utiliser un fichier exclude.xml au même endroit que notre fichier FLA pour définir les classes qui ne devait pas être compilé  dans le fichier SWF. Ainsi on pouvait exclure les classes qui étaient dupliqué à travers plusieurs fichiers SWF de l’application. Le problème était qu’on devait quand même recopier les éléments graphiques dans chacun des ces fichiers FLA pour ne pas avoir des erreurs de compilation sur des éléments inexistant dans la librairie.</p>
<div id="attachment_170" class="wp-caption aligncenter" style="width: 469px">
<div class="mceTemp mceIEcenter">
<dl id="attachment_170" class="wp-caption aligncenter" style="width: 469px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-170" style="margin-top:5px" title="Flash multi fichier" src="http://blog.quatrecentquatre.com/wp-content/uploads/2009/05/untitled-1.gif" alt="Exemple de la problématique multi fichiers" width="459" height="290" /></dt>
</dl>
</div>
<p><p class="wp-caption-text">Example de la problématique</p></div><br />
<br/><br />
<strong>Les modules </strong></p>
<p>Depuis la sortie de la suite CS4, il est maintenant possible d’intégrer des librairies externes pour la compilation directement à partir de l’IDE de Flash. Il est donc maintenant possible de créer une librairie d’élément (graphique, composant, classes) qu’on désirer partager à travers plusieurs fichiers mais qui ne seront pas compiler (injecter) dans le fichier final d’un SWF donné. L’arrivée des modules élimine donc la redondance de poids avec la réplication des éléments partagés dans plusieurs librairies des fichiers FLA.</p>
<p>Pour créer une application multi fichiers avec module, ont doit donc commencer par créer le module en tant que tel et ensuite ce module est charger en premier par le fichier principal (celui qui s’occupe du chargement des fichiers subséquents) et ensuite procède au chargement des sections ou sous-section de l’application. Dès que le module est chargé, les sections et sous-sections ont directement accès aux ressources de celui-ci. Le module doit cependant être chargé de façon à ce que « l’Application Domain » soit le même que le fichier principale pour que les ressources soient accessible.</p>
<div id="attachment_170" class="wp-caption aligncenter" style="width: 469px">
<div class="mceTemp mceIEcenter">
<dl id="attachment_191" class="wp-caption aligncenter" style="width: 469px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-191" style="margin-top:5px" title="Example avec module" src="http://blog.quatrecentquatre.com/wp-content/uploads/2009/05/untitled-2.gif" alt="Example avec module" width="459" height="350" /></dt>
</dl>
</div>
<p><p class="wp-caption-text">Example avec module</p></div><br />
<br/><br />
<strong>Création d’un module</strong><br />
Le module se crée en deux étapes. En premier lieu, on crée un fichier FLA et on y place tous les éléments réutilisables que nous voulons partager à travers les différents fichiers SWF du site ou de l’application. Ensuite, nous exportons le tout en format SWC (fichier SWF compressé par ZIP) et SWF. À partir de cet instant, le module est donc terminer et prêt à être utiliser directement dans les autres fichiers.</p>
<p><strong>Exemple de création</strong></p>
<ul>
<li>On crée un fichier “module.fla” dans lequel on inclut tout les éléments (graphiques, composants, classes, etc...) à partager</li>
<li>On exporte ce fichier en “module.swc”</li>
<li>On compile ce fichier en ”module.swf”</li>
<li>Pour tous les fichiers FLA qui doivent utiliser ces éléments, inclure le SWC dans les paramètres de publication sous l’onglet “External Library Path”</li>
<li>Dans votre fichier principal, charger le fichier “module.swf” en premier lieu, et ensuite procéder au chargement des sections et sous-section selon le besoin</li>
</ul>
<p>En mode développement, on peut bien tester les sections et sous-sections en chargeant directement le module dans ces fichiers avant toute exécution du code pour pouvoir bien tester les fonctionnalités. Lors de la mise en ligne, on retire tout simplement le chargement du module dans les sections et sous-sections. C'est présentement la meilleure solution pour le travail en multi fichiers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quatrecentquatre.com/2009/05/31/librairies-externes-en-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
