<?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>jacky béjean &#187; Projets au boulot</title>
	<atom:link href="http://book.jb-interactive.com/category/projets-boulot/feed/" rel="self" type="application/rss+xml" />
	<link>http://book.jb-interactive.com</link>
	<description>Programmeur en nouveaux médias</description>
	<lastBuildDate>Thu, 10 Apr 2008 04:35:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Juste pour rire</title>
		<link>http://book.jb-interactive.com/projets-boulot/juste-pour-rire/</link>
		<comments>http://book.jb-interactive.com/projets-boulot/juste-pour-rire/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 03:30:40 +0000</pubDate>
		<dc:creator>jacky</dc:creator>
				<category><![CDATA[Projets au boulot]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Just For Laugh]]></category>
		<category><![CDATA[Juste Pour Rire]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[SingleTon]]></category>

		<guid isPermaLink="false">http://book.jb-interactive.com/?p=6</guid>
		<description><![CDATA[
Début mars, nous avons mis en ligne la nouvelle version du site internet Juste pour rire. Mon travail sur ce projet était de réaliser le header flash, pas un seul header mais en fait 6 headers différents composés de 3 ou 4 modules chacuns.
Au lieu de réaliser 6 headers différents en flash, j&#8217;en ai réalisé [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://book.jb-interactive.com/img/header_jpr.jpg" alt="Header Flash du site web Juste Pour Rire" width="500" height="206" /></p>
<p>Début mars, nous avons mis en ligne la nouvelle version du site internet Juste pour rire. Mon travail sur ce projet était de réaliser le header flash, pas un seul header mais en fait 6 headers différents composés de 3 ou 4 modules chacuns.</p>
<p>Au lieu de réaliser 6 headers différents en flash, j&#8217;en ai réalisé qu&#8217;un seul relié à un fichier xml pour gérer la configuration de chaque, soit l&#8217;image de fond et les modules à charger avec leur position exacte.</p>
<p>Certains modules sont indépendants mais d&#8217;autres sont dépendants les un des autres comme le header de la page d&#8217;accueil. Sur ce dernier, quand on sélectionne une date ou un mois, les informations du calepins changent, ainsi que celles du menu déroulant. Le lecteur vidéo au centre du header est géré par les articles affichés dans le calepin.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p6code2'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p62"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code" id="p6code2"><pre class="actionscript" style="font-family:monospace;">package ca.<span style="color: #006600;">turbulent</span>.<span style="color: #006600;">jpr</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Bridge
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">var</span> _instance:Bridge = <span style="color: #000000; font-weight: bold;">null</span>;
&nbsp;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Bridge<span style="color: #66cc66;">&#40;</span>s:SingleTon = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>s == <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
				<span style="color: #0066CC;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Controller doesn't exist!&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> getInstance<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Bridge
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>_instance == <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				_instance = <span style="color: #000000; font-weight: bold;">new</span> Bridge<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SingleTon<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
				_instance.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #b1b100;">return</span> _instance;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> initialize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">// initialisation de la classe Bridge</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">// création des différentes fonctions public</span>
		<span style="color: #808080; font-style: italic;">// dont on se sert pour communiquer entre plusieurs objets</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> SingleTon<span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Pour réaliser cela, j&#8217;ai créé une classe <a title="Wikipédia - Explication du SingleTon" href="http://fr.wikipedia.org/wiki/Singleton_%28patron_de_conception%29" target="_self">SingleTon</a> pour créer un pont entre tout ces modules. Réaliser une classe SingleTon permet d&#8217;avoir une seule et unique instance de cette dernière ce qui permet de communiquer entre chaque modules sans erreurs.</p>
<p><strong>Site internet :</strong> <a title="Juste pour rire" href="http://www.hahaha.com/" target="_blank">http://www.hahaha.com/</a><br />
<strong>Réalisation technique : </strong>Turbulent Média Inc.<strong><br />
Conception graphique :</strong> Mecano Montréal</p>
]]></content:encoded>
			<wfw:commentRss>http://book.jb-interactive.com/projets-boulot/juste-pour-rire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8230;mais deux c&#8217;est mieux</title>
		<link>http://book.jb-interactive.com/projets-boulot/mais-deux-cest-mieux/</link>
		<comments>http://book.jb-interactive.com/projets-boulot/mais-deux-cest-mieux/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 01:26:00 +0000</pubDate>
		<dc:creator>jacky</dc:creator>
				<category><![CDATA[Projets au boulot]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[deux c'est mieux]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MXML]]></category>

		<guid isPermaLink="false">http://book.jb-interactive.com/projets-boulot/mais-deux-cest-mieux/</guid>
		<description><![CDATA[
Mi-janvier dernier, on a sorti en une dizaine de jour un gros projet AS3 pour la nouvelle version du site internet &#171;&#160;un verre de lait c&#8217;est bien, mais deux c&#8217;est mieux&#160;&#187;. Un concours basé sur des bouteilles de lait qui contiennent des messages texte, photo, audio ou vidéo que les visiteurs jettent à la mer [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://book.jb-interactive.com/img/lait2008.jpg" alt="www.deuxcestmieux.com" border="0" height="306" hspace="0" vspace="0" width="500" /></p>
<p>Mi-janvier dernier, on a sorti en une dizaine de jour un gros projet AS3 pour la nouvelle version du site internet &laquo;&nbsp;un verre de lait c&#8217;est bien, mais deux c&#8217;est mieux&nbsp;&raquo;. Un concours basé sur des bouteilles de lait qui contiennent des messages texte, photo, audio ou vidéo que les visiteurs jettent à la mer auxquels on peut répondre quand on en reçoit une dans sa boîte courriel.</p>
<p>Ce site a été mon premier gros projet entièrement codé en ActionScript 3 sous <a href="http://www.adobe.com/products/flex/" title="Information sur Adobe Flex Builder 3" target="_blank">Adobe Flex Builder 3</a>, un joli défi <img src='http://book.jb-interactive.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Cela m&#8217;a permis de bien switcher du langage AS2 à AS3 et d&#8217;utiliser un logiciel qui simplifie la réalisation de site internet AS3 grâce à la structure de fichiers mxml.</p>
<p><strong>Site internet :</strong> <a href="http://www.deuxcestmieux.com/" title="Un verre de lait c'est bien, mais deux c'est mieux." target="_blank">http://www.deuxcestmieux.com/</a><br />
<strong>Réalisation technique : </strong>Turbulent Média Inc.<strong><br />
Conception graphique :</strong> BBDO Montréal</p>
]]></content:encoded>
			<wfw:commentRss>http://book.jb-interactive.com/projets-boulot/mais-deux-cest-mieux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
