<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns="http://purl.org/rss/1.0/">

<channel rdf:about="http://www.zebden.fr/index.php">
  <title>zebden.fr :: Anthony Lombard Alias zebden :: Blog, Life &amp; PHP</title>
  <description><![CDATA[Blog traitant de la programmation mais surtout le PHP]]></description>
  <link>http://www.zebden.fr/index.php</link>
  <dc:language>fr</dc:language>
  <dc:creator></dc:creator>
  <dc:rights></dc:rights>
  <dc:date>2008-08-27T17:37:20+02:00</dc:date>
  <admin:generatorAgent rdf:resource="http://www.dotclear.net/" />
  
  <sy:updatePeriod>daily</sy:updatePeriod>
  <sy:updateFrequency>1</sy:updateFrequency>
  <sy:updateBase>2008-08-27T17:37:20+02:00</sy:updateBase>
  
  <items>
  <rdf:Seq>
    <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/08/27/97-commentaires-de-nouveau-ouvert" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/08/26/96-ba-de-la-journee-association-matthieu-carrere-un-enfant-un-reve" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/05/04/94-zebdenfr-multi-version" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/04/08/93-swfobject-20" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/04/02/91-pas-tres-credible" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/04/01/90-je-ne-suis-pas-graphiste-mais" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/03/26/87-anti-spam-spam-1-zebden-0" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/02/28/86-projet-pour-le-blog-ca-va-faire-mal" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/02/19/84-uniquement-pour-etre-indexe" />
  <rdf:li rdf:resource="http://www.zebden.fr/index.php?2008/02/07/52-comment-bien-utiliser-swfobject" />
  </rdf:Seq>
  </items>
</channel>

<item rdf:about="http://www.zebden.fr/index.php?2008/08/27/97-commentaires-de-nouveau-ouvert">
  <title>Commentaires de nouveau ouverts</title>
  <link>http://www.zebden.fr/index.php?2008/08/27/97-commentaires-de-nouveau-ouvert</link>
  <dc:date>2008-08-27T17:37:20+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>DOTLIFE</dc:subject>
  <description>J'ai remis les commentaires avec un systÃ¨me de Captcha comme Ã  l'Ã©poque, j'avais pas mal d'idÃ©es et d'envies qui partaient de tous les cÃ´tÃ©s mais faute de temps bah rien.. Plus tard doncÂ !...</description>
  <content:encoded><![CDATA[ <p>J'ai remis les commentaires avec un systÃ¨me de Captcha comme Ã  l'Ã©poque, j'avais pas mal d'idÃ©es et d'envies qui partaient de tous les cÃ´tÃ©s mais faute de temps bah rien.. Plus tard donc&nbsp;!</p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/08/26/96-ba-de-la-journee-association-matthieu-carrere-un-enfant-un-reve">
  <title>B.A de la journÃ©e : Association Matthieu Carrere "Un enfant, un rÃªve" .</title>
  <link>http://www.zebden.fr/index.php?2008/08/26/96-ba-de-la-journee-association-matthieu-carrere-un-enfant-un-reve</link>
  <dc:date>2008-08-26T14:33:11+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>General</dc:subject>
  <description>Parce que j'ai fait le site (Pas le design, ni les animations bien sur) mais l'idÃ©e gÃ©nÃ©rale est de moi et Ã©videmment le cÃ´tÃ© technique hein (vu que c'est mon job).


Mon cÃ´tÃ© Ã©gocentrique Ã  part, cette association, basÃ©e en Lorraine et plus prÃ©cisÃ©ment Ã  Ã‰pinal, rÃ©alise les...</description>
  <content:encoded><![CDATA[ <p>Parce que j'ai fait le site (Pas le design, ni les animations bien sur) mais l'idÃ©e gÃ©nÃ©rale est de moi et Ã©videmment le cÃ´tÃ© technique hein (vu que c'est mon job).</p>


<p>Mon cÃ´tÃ© Ã©gocentrique Ã  part, cette association, basÃ©e en Lorraine et plus prÃ©cisÃ©ment Ã  Ã‰pinal, rÃ©alise les rÃªves/envies d' enfants hospitalisÃ©s atteints de cancers ou de maladies assimilÃ©es (leucÃ©mie par exemple) et qui pour une partie, soyons cru, dÃ©cÃ¨de malheureusement...<br />
Je fais donc un peu de publicitÃ© pour ce site oÃ¹ vous trouverez un formulaire pour envoyer un don, adhÃ©rer Ã  l'association ou bien vous faire connaitre car vous avez des contacts intÃ©ressants qui permettraient de les aider Ã  rÃ©aliser les rÃªves de ces enfants.<br />
Le site Ã©tant Ã©videmment mal rÃ©fÃ©rencÃ© et pour le moment peu visitÃ©, j'espÃ¨re Ã  travers mon blog aider Ã  trouver de nouveaux foyers de don par le biais de ce nouveau site.</p>


<p>Vous pouvez, de votre cÃ´tÃ©, passer l'information ou simplement l'URL de ce site, Ã§a ne vous coutera qu'un peu de temps mais chaque action est importante qu'elle soit d'ordre financiÃ¨re ou simplement soutien moral.</p>


<p>En vous remerciant&nbsp;!</p>


<p>L'URL du site&nbsp;: <a href="http://www.matthieucarrere.fr/" hreflang="fr">http://www.matthieucarrere.fr/</a></p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/05/04/94-zebdenfr-multi-version">
  <title>zebden.fr : Multi-version</title>
  <link>http://www.zebden.fr/index.php?2008/05/04/94-zebdenfr-multi-version</link>
  <dc:date>2008-05-04T16:02:44+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>DOTLIFE</dc:subject>
  <description>Version SkyblogÂ : Kikoo lol ptdr (Merci Lupus !!)
Version ch'tiÂ : mon ch'ti blog biloute
Version GeekÂ : normal quoi


Si vous en avez d'autre marrant ^^....</description>
  <content:encoded><![CDATA[ <p>Version Skyblog&nbsp;: <a href="http://kikoolol.memepasmal.net/?q=aHR0cDovL3plYmRlbi5mci8%3D&amp;hl=0" hreflang="fr">Kikoo lol ptdr</a> (Merci Lupus !!)<br />
Version ch'ti&nbsp;: <a href="http://chti.logeek.com/generator.php?url=http%3A%2F%2Fzebden.fr" hreflang="fr">mon ch'ti blog biloute</a><br />
Version Geek&nbsp;: <a href="http://zebden.fr" hreflang="fr">normal quoi</a><br /></p>


<p>Si vous en avez d'autre marrant ^^.</p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/04/08/93-swfobject-20">
  <title>SWFObject 2.0</title>
  <link>http://www.zebden.fr/index.php?2008/04/08/93-swfobject-20</link>
  <dc:date>2008-04-08T09:25:27+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>ActualitÃ©s</dc:subject>
  <description>Petite news pour annoncer la sortie de SWFObject 2.0 et que du coup un nouveau tutoriel est en cours d'Ã©criture car pas mal de choses ont changÃ©s, en fait tout. BrefÂ :


http://code.google.com/p/swfobject/...</description>
  <content:encoded><![CDATA[ <p>Petite news pour annoncer la sortie de SWFObject 2.0 et que du coup un nouveau tutoriel est en cours d'Ã©criture car pas mal de choses ont changÃ©s, en fait tout. Bref&nbsp;:</p>


<p><a href="http://code.google.com/p/swfobject/" hreflang="en">http://code.google.com/p/swfobject/</a></p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/04/02/91-pas-tres-credible">
  <title>Pas trÃ¨s crÃ©dible...</title>
  <link>http://www.zebden.fr/index.php?2008/04/02/91-pas-tres-credible</link>
  <dc:date>2008-04-02T19:03:43+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>DOTLIFE</dc:subject>
  <description>C'est bizarre mais j'ai un doute, je sais pas pourquoi ......</description>
  <content:encoded><![CDATA[ <p><img src="/images/divers/mdr.jpg" alt="" /></p>


<p>C'est bizarre mais j'ai un doute, je sais pas pourquoi ...</p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/04/01/90-je-ne-suis-pas-graphiste-mais">
  <title>Je ne suis pas graphiste mais..</title>
  <link>http://www.zebden.fr/index.php?2008/04/01/90-je-ne-suis-pas-graphiste-mais</link>
  <dc:date>2008-04-01T12:03:50+02:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>DOTLIFE</dc:subject>
  <description>Je soutiensÂ :


L'affaire mariejulien.com et Wilogo...</description>
  <content:encoded><![CDATA[ <p>Je soutiens&nbsp;:</p>


<p><a href="http://www.mariejulien.com/?post/2008/03/27/Wilogo-et-nous%3A-suite-et-presque-fin" hreflang="fr">L'affaire mariejulien.com et Wilogo</a></p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/03/26/87-anti-spam-spam-1-zebden-0">
  <title>Anti Spam : Spam 1 - zebden 0</title>
  <link>http://www.zebden.fr/index.php?2008/03/26/87-anti-spam-spam-1-zebden-0</link>
  <dc:date>2008-03-26T18:40:53+01:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>General</dc:subject>
  <description>J'ai de nouveau du spam, j'avais dÃ©jÃ  ce spam bizarre (manuel je pense) qui copie/colle des commentaires soit du blog soit d'ailleurs, mais j'ai de nouveau du vieux bon spam avec des urls de partout.


Donc rÃ©sultatÂ : 2 sÃ©curitÃ©s mises Ã  mal par les robots de Spam. En mÃªme temps, je...</description>
  <content:encoded><![CDATA[ <p>J'ai de nouveau du spam, j'avais dÃ©jÃ  ce spam bizarre (manuel je pense) qui copie/colle des commentaires soit du blog soit d'ailleurs, mais j'ai de nouveau du vieux bon spam avec des urls de partout.</p>


<p><strong>Donc rÃ©sultat&nbsp;: 2 sÃ©curitÃ©s mises Ã  mal par les robots de Spam.</strong> En mÃªme temps, je pensais que Ã§a aurait dÃ©tournÃ© plus vite.</p>


<p>Bref, je vais mettre en place dÃ¨s que possible d'autres sÃ©curitÃ©s auxquelles j'ai pensÃ©es dont une que je garderais secrÃ¨te&nbsp;! Parce que programmer un robot, c'est pas si difficile que Ã§a quand on connait les diffÃ©rentes sÃ©curitÃ©s. MÃªme les CAPTCHA sont contournÃ©s avec une reconnaissance de caractÃ¨res de plus en plus poussÃ©e, mais je doute qu'ici j'en sois victime. Elles seront probablement testÃ©es sous Dotclear pour le moment.</p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/02/28/86-projet-pour-le-blog-ca-va-faire-mal">
  <title>Projet pour le Blog, Ã§a va faire mal</title>
  <link>http://www.zebden.fr/index.php?2008/02/28/86-projet-pour-le-blog-ca-va-faire-mal</link>
  <dc:date>2008-02-28T11:54:23+01:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>DOTLIFE</dc:subject>
  <description>J'avais dit il y a peu que j'allais changer le moteur Dotclear par un WordPress dÃ» aux failles de sÃ©curitÃ©. Mais en fait Non, je vais faire mieux que Ã§aÂ !


J'ai mon moteur basÃ© sur mon framework bientÃ´t couplÃ© avec le Zend Framework, alors je ne rÃ©invente pas la roue puisque je l'ai...</description>
  <content:encoded><![CDATA[ <p>J'avais dit il y a peu que j'allais changer le moteur Dotclear par un WordPress dÃ» aux failles de sÃ©curitÃ©. Mais en fait Non, je vais faire mieux que Ã§a&nbsp;!</p>


<p>J'ai mon moteur basÃ© sur mon framework bientÃ´t couplÃ© avec le Zend Framework, alors je ne rÃ©invente pas la roue puisque je l'ai dÃ©jÃ  dÃ©veloppÃ© et donc bientÃ´t j'aurais le blog 100% Maison et donc avec une totale libertÃ© dans mes actions et avec beaucoup plus de sÃ©curitÃ©. Le but n'Ã©tant pas de faire mieux Ã©videmment mais aussi bien et pourquoi pas innover dans ce secteur, puisque Ã§a me servira aussi de laboratoire pour lancer de nouvelles applications.</p>


<p>bref Ã  voir&nbsp;! En plus, il faudrait qu'un ami graphiste soit charitable&nbsp;! Vincent ou Max si vous m'entendez&nbsp;! :-D</p>]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/02/19/84-uniquement-pour-etre-indexe">
  <title>Uniquement pour Ãªtre indexÃ©.</title>
  <link>http://www.zebden.fr/index.php?2008/02/19/84-uniquement-pour-etre-indexe</link>
  <dc:date>2008-02-19T09:42:09+01:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>General</dc:subject>
  <description>Juste pour que le site soit indexÃ© plus rapidement.

Syndicat DÃ©partemental dâ€™Assainissement Autonome

Euh no comment sur le site....</description>
  <content:encoded><![CDATA[ Juste pour que le site soit indexÃ© plus rapidement.<br /><br />

<a href="http://www.sdaa54.fr">Syndicat DÃ©partemental dâ€™Assainissement Autonome</a><br /><br />

Euh no comment sur le site.]]></content:encoded>
</item>
<item rdf:about="http://www.zebden.fr/index.php?2008/02/07/52-comment-bien-utiliser-swfobject">
  <title>Comment bien utiliser SWFObject ! (remontÃ©).</title>
  <link>http://www.zebden.fr/index.php?2008/02/07/52-comment-bien-utiliser-swfobject</link>
  <dc:date>2008-02-07T16:43:13+01:00</dc:date>
  <dc:language>fr</dc:language>
  <dc:creator>zebden</dc:creator>
  <dc:subject>Flash</dc:subject>
  <description>SWFObject est, pour rappel, un objet javascript qui permet de dÃ©tecter la version de flash de l'utilisateur et pouvoir si la version est antÃ©rieure Ã  celle voulue, et ainsi proposer Ã  l'utilisateur d'updater sa version automatiquement. Ici nous allons nous interresser Ã  la mÃ©thode automatique ou vont s'entremeler Flash, Js, HTML et PHP pour mettre simplement et rapidement cette mÃ©thode en place.</description>
  <content:encoded><![CDATA[<p>SWFObject est, pour rappel, un objet javascript qui permet de dÃ©tecter la version de flash de l'utilisateur et pouvoir si la version est antÃ©rieure Ã  celle voulue, et ainsi proposer Ã  l'utilisateur d'updater sa version automatiquement. Ici nous allons nous interresser Ã  la mÃ©thode automatique ou vont s'entremeler Flash, Js, HTML et PHP pour mettre simplement et rapidement cette mÃ©thode en place.</p> <p><strong>CÃ´tÃ© PHP :</strong></p>


<p>Vous allez me dire que Ã§a n'a pas vraiment d'utilitÃ© ici d'utiliser un langage serveur puisque tout se passe cÃ´tÃ© client... Eh bien on peut, en tant que programmeur, plutÃ´t que de se farcir des copiÃ©s/collÃ©s, gÃ©nÃ©rer une belle petite fonction pour mettre en place notre Objet SwfObject.</p>


<p>Voici une fonction pour mettre en place le code voulu (Ã  vous de la perfectionner si vous en avez envie)</p>


<p><strong>Code de la fonction</strong>&nbsp;:</p>

<pre><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #808080; font-style: italic;">/**
loadSwfObject()
@author Lombard Anthony
@desc Met en place le code HTML/JS pour SwfObject
@param string $flash (chemin vers l'anim flash)
@param string $id id pour placer le flash avec JS
@param integer/string $width largeur de l'anim
@param integer/string $height hauteur de l'anim
@param array $att FlashVars que vous pouvez faire passez &agrave; votre anim
@param array $param Param&egrave;tres de l'animation
@param string $version Version de votre animation.
@param string $couleur background-color de l'anim
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> loadSwfObject<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$flash</span>, <span style="color: #0000ff;">$id</span>, <span style="color: #0000ff;">$width</span>, <span style="color: #0000ff;">$height</span>, <span style="color: #0000ff;">$att</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0000ff;">$param</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'quality'</span> =&gt; <span style="color: #ff0000;">'high'</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0000ff;">$version</span> = <span style="color: #ff0000;">'8'</span>, <span style="color: #0000ff;">$couleur</span> = <span style="color: #ff0000;">'#FFFFFF'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	 
	 <span style="color: #808080; font-style: italic;">// HTML</span>
	 <span style="color: #0000ff;">$return</span>  = <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>. <span style="color: #ff0000;">'&lt;div id=&quot;'</span>. <span style="color: #0000ff;">$id</span> .<span style="color: #ff0000;">'&quot;&gt;'</span>;
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'Votre navigateur ne supporte pas le plugin flash'</span>;
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'&lt;/div&gt;'</span>. <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 
	 <span style="color: #808080; font-style: italic;">// JS </span>
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'&lt;script type=&quot;text/javascript&quot;&gt;'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'// &lt;![CDATA['</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 
	 <span style="color: #808080; font-style: italic;">// Appel de l'objet js : SWFObject</span>
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\t</span>"</span> . <span style="color: #ff0000;">'var swfobject = new SWFObject(&quot;'</span> . <span style="color: #0000ff;">$flash</span> . <span style="color: #ff0000;">'&quot;, &quot;flashy&quot;, &quot;'</span> . <span style="color: #0000ff;">$width</span> . <span style="color: #ff0000;">'&quot;, &quot;'</span> . <span style="color: #0000ff;">$height</span> . <span style="color: #ff0000;">'&quot;, &quot;'</span>.<span style="color: #0000ff;">$version</span>.<span style="color: #ff0000;">'&quot;, &quot;'</span>.<span style="color: #0000ff;">$couleur</span>.<span style="color: #ff0000;">'&quot;, true);'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 
	 <span style="color: #808080; font-style: italic;">// Param&egrave;tres</span>
	 <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$param</span> &amp;&amp; <a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$param</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	 	
	 	<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$param</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$cle</span> =&gt; <span style="color: #0000ff;">$value</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\t</span>"</span> . <span style="color: #ff0000;">'swfobject.addParam(&quot;'</span> . <span style="color: #0000ff;">$cle</span> . <span style="color: #ff0000;">'&quot;, &quot;'</span> . <a href="http://www.php.net/addslashes"><span style="color: #000066;">addslashes</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$value</span><span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">'&quot;);'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
			<span style="color: #66cc66;">&#125;</span>
	 	<span style="color: #66cc66;">&#125;</span>
	 
	 <span style="color: #808080; font-style: italic;">/// FLASHVARS.</span>
	 <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$att</span> &amp;&amp; <a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$att</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	 	
		<span style="color: #808080; font-style: italic;">// Variables encod&eacute;es en amont.</span>
	 	<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$att</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$cle</span> =&gt; <span style="color: #0000ff;">$value</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\t</span>"</span> . <span style="color: #ff0000;">'swfobject.addVariable(&quot;'</span> . <span style="color: #0000ff;">$cle</span> . <span style="color: #ff0000;">'&quot;, &quot;'</span> . <a href="http://www.php.net/addslashes"><span style="color: #000066;">addslashes</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$value</span><span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">'&quot;);'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
			<span style="color: #66cc66;">&#125;</span>
	 	<span style="color: #66cc66;">&#125;</span>
	 
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\t</span>"</span> . <span style="color: #ff0000;">'swfobject.write(&quot;'</span> . <span style="color: #0000ff;">$id</span> . <span style="color: #ff0000;">'&quot;);'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'// ]]&gt;'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 <span style="color: #0000ff;">$return</span> .= <span style="color: #ff0000;">'&lt;/script&gt;'</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	 
	 <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$return</span>;
	 <span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>


<p>VoilÃ  nous avons une belle petite fonction pour gÃ©nÃ©rer le code afin d'utiliser au mieux l'objet SwfObject, maintenant on va voir ce qu'il faut faire cÃ´tÃ© client afin d'y installer notre update de flash.</p>


<p><strong>CÃ´tÃ© JS </strong>&nbsp;:</p>


<p>Rien de bien compliquer ici, nous avons juste Ã  inclure le fichier javascript fourni entre les balises &lt;head&gt; soit (mÃ©thode simplifiÃ©e)&nbsp;:</p>

<pre>&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;chemin/vers/swfobject.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
// Notre code
&lt;/body&gt;
&lt;/html&gt;
</pre>


<p>Le code complexe Ã©tant dÃ©jÃ  fourni&nbsp;! :)</p>


<p><strong>CÃ´tÃ© Flash&nbsp;: </strong></p>


<p>Si vous n'Ãªtes pas flasheur dans l'Ã¢me ou vous n'avez pas vraiment de notion, il est toujours possible pour vous d'utiliser les mÃ©thodes au-dessus mais de ne pas renseigner le dernier paramÃ¨tre de l'objet javascript swfobject qui est par dÃ©faut Ã  false, on aura alors en visuel le texte alternatif que vous avez choisi de mettre et ainsi mettre un lien pour mettre Ã  jour la version de flash. Sur le site, ce sont les deux premiers exemples.</p>


<p>En revanche, vous pratiquez bien flash alors on va pouvoir installer sur une frame le code Ã  mettre pour installer d'une part le bouton qui permettra une update automatique et d'autre installer le code Ã  mettre (Aucune diffÃ©rence avec le site officiel).</p>


<p>En gros le but est de stopper l'animation Ã  notre frame si la version est antÃ©rieure Ã  celle attendue ... Vous aurez besoin aussi du fichier expressinstall.as fourni avec le package pour compiler votre flash.</p>


<p>Donc voici le code du site lui-mÃªme Ã  mettre&nbsp;:</p>

<pre><span style="color: #808080; font-style: italic;">#include &quot;expressinstall.as&quot;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// initialize the ExpressInstall object</span>
<span style="color: #000000; font-weight: bold;">var</span> ExpressInstall = <span style="color: #000000; font-weight: bold;">new</span> ExpressInstall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// if the user needs to upgrade, show the 'start upgrade' button</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>ExpressInstall.<span style="color: #006600;">needsUpdate</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">// this is optional, you could also automatically start the </span>
	<span style="color: #808080; font-style: italic;">// upgrade by calling ExpressInstall.init() here instead of the following lines</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">// attach the custom upgrade message and center it</span>
	<span style="color: #000000; font-weight: bold;">var</span> upgradeMsg = <span style="color: #0066CC;">attachMovie</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"upgradeMsg_src"</span>, <span style="color: #ff0000;">"upgradeMsg"</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
	upgradeMsg._x = <span style="color: #0066CC;">Stage</span>.<span style="color: #006600;">width</span> / <span style="color: #cc66cc;">2</span>;
	upgradeMsg._y = <span style="color: #0066CC;">Stage</span>.<span style="color: #006600;">height</span> / <span style="color: #cc66cc;">2</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">// attach the button actions that will start the ExpresInstall updater</span>
	upgradeMsg.<span style="color: #006600;">upgradeBtn</span>.<span style="color: #006600;">onRelease</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #808080; font-style: italic;">// the ExpressInstall.init() method is what kicks off the actual update</span>
		ExpressInstall.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #808080; font-style: italic;">// if expressinstall is invoked, stop the timeline.</span>
	<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>


<p>Ok un peu compliquer comme Ã§a Ã  premiÃ¨re vue, donc on va simplifier la mÃ©thode mais aussi le traduire pour les non anglophones.</p>


<p>Donc premiÃ¨rement crÃ©ons un clip ou nous allons afficher notre message si la version n'est pas celle voulue que l'on va nommer upgradeMsg (originalitÃ© quand tu nous tiens) et ajoutons une nouvelle frame oÃ¹ vous le souhaitez.</p>


<p><img src="/images/swfobject/snapFlash.png" alt="" /> <br />
Ici, nous allons placer le code et aussi les Ã©lÃ©ments graphiques sur la seconde frame.</p>


<p><img src="/images/swfobject/snapFlash2.png" alt="" /> <br />
La nous avons notre clip que nous avons nommÃ© upgradeMsg ayant donc le txt et un bouton que nous appellerons upgradeBtn pour lancer l'installation.</p>


<p>Alors une fois tout les Ã©lÃ©ments mis en place, nous allons en fait cachÃ© le clip upgradeMsg par dÃ©faut et lÃ  grÃ¢ce au fichier .as nous pouvons tester la version de flash du client. Ainsi si nous avons besoin d'une version supÃ©rieur, nous stoppons l'animation avec stop(); et nous rendons visible notre clip pour que le client puisse sans efforts, upgrader sa version flash.</p>

<pre>&nbsp;
<span style="color: #808080; font-style: italic;">// On inclut le fichier .as</span>
<span style="color: #808080; font-style: italic;">#include &quot;expressinstall.as&quot;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// Nous rendons invisible notre clip, si la version est bonne de toute fa&ccedil;on, nous passons &agrave; la frame suivante.</span>
upgradeMsg._visible = <span style="color: #000000; font-weight: bold;">false</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Commence alors notre test</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// On d&eacute;clare l'objet ExpressInstall </span>
<span style="color: #000000; font-weight: bold;">var</span> ExpressInstall = <span style="color: #000000; font-weight: bold;">new</span> ExpressInstall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Si nous avons besoin d'update alors nous rentrons dans cette condition et nous stoppons sur cette frame</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>ExpressInstall.<span style="color: #006600;">needsUpdate</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">// On rend visible notre clip pour updater.</span>
	upgradeMsg._visible = <span style="color: #000000; font-weight: bold;">true</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">// On attribue l'action d'update lorsqu'on appuie sur le bouton.</span>
	upgradeMsg.<span style="color: #006600;">upgradeBtn</span>.<span style="color: #006600;">onRelease</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		ExpressInstall.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>;
	
        <span style="color: #808080; font-style: italic;">// L'animation est stopp&eacute; si nous sommes rentr&eacute; dans la condition.</span>
	<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>


<p>VoilÃ  c'est un peu plus simple Ã  mettre en place pour les flasheurs&nbsp;!</p>


<p><strong>Conclusion&nbsp;: </strong></p>


<p>Flash n'est pas par dÃ©finition un outil accessible Ã  tous. GrÃ¢ce Ã  ceci, vos sites flashs qui nÃ©cessitent les derniÃ¨res versions seront accessibles&nbsp;! Et d'autre part, cela Ã  aussi l'avantage de ne plus cliquer (pour IE) pour activer l'ActiveX flash.</p>


<p><strong>DES LIENS !!!!!!</strong></p>


<p><a href="http://blog.deconcept.com/swfobject/" hreflang="en">Le site officiel</a>&nbsp;: Vous y trouverez des exemples et toutes les sources dont vous aurez besoin<br />
<a href="http://wiki.media-box.net/documentation/swfobject" hreflang="fr">Une traduction en franÃ§ais du site officiel</a><br />
<a href="http://www.sephiroth.it/weblog/archives/2006/11/flash_switcher_for_osx.php" hreflang="en">Plugin pour mac et PC pour pouvoir switcher vos versions de flashs et ainsi tester swfobject tranquillement sans avoir Ã  tout desinstaller</a></p>


<p>Sur ce bon courage et bonne prog !!!</p>]]></content:encoded>
</item>

</rdf:RDF>
