<?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>Matsiya &#187; ActionScript — Matsiya</title>
	<atom:link href="http://www.matsiya.fr/blog/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matsiya.fr/blog</link>
	<description>Développement Flex - Air - Java - RIA - Mashups Flex</description>
	<lastBuildDate>Fri, 04 Nov 2011 11:48:35 +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>Modifier le dataProvider d&#8217;une combobox</title>
		<link>http://www.matsiya.fr/blog/2010/08/19/modifier-le-dataprovider-dune-combobox/</link>
		<comments>http://www.matsiya.fr/blog/2010/08/19/modifier-le-dataprovider-dune-combobox/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 07:36:24 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/?p=373</guid>
		<description><![CDATA[Ce matin, je suis tombé sur un bug assez énervant qui faisait qu&#8217;après une réassignation du dataProvider d&#8217;une comboBox, celle ci ne se mettait pas à jour visuellement de suite. Par exemple, si ma comboBox contient 3 éléments, puis que je lui donne un nouveau tableau avec 5 éléments, la liste déroulante prend la place [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/01/15/combobox-flex/' rel='bookmark' title='Permanent Link: Combobox flex'>Combobox flex</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/02/01/combobox-flex-rowcount/' rel='bookmark' title='Permanent Link: ComboBox flex : rowCount'>ComboBox flex : rowCount</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/08/05/bug-combobox-flex/' rel='bookmark' title='Permanent Link: Bug ComboBox Flex'>Bug ComboBox Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-373'><p>Ce matin, je suis tombé sur un bug assez énervant qui faisait qu&#8217;après une réassignation du dataProvider d&#8217;une comboBox, celle ci ne se mettait pas à jour visuellement de suite. Par exemple, si ma comboBox contient 3 éléments, puis que je lui donne un nouveau tableau avec 5 éléments, la liste déroulante prend la place de 5 lignes, mais il n&#8217;y a que 3 éléments affichés. Pour corriger ce soucis (qui semble avoir été corrigé dans Flex 4, mais pas dans la version 3.5 que j&#8217;utilise sur mon projet courant), il faut réassigner aussi le dataProvider de la liste déroulante.</p>
<p>Voici le bout de code qui fait l&#8217;affaire :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> newArray : <span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #808080; font-style: italic;">// Nouveau tableau à assigner</span>
combo.<span style="color: #006600;">dataProvider</span> = newArray; <span style="color: #808080; font-style: italic;">// Assignation du dataProvider de la comboBox</span>
combo.<span style="color: #006600;">dropdown</span>.<span style="color: #006600;">dataProvider</span> = newArray; <span style="color: #808080; font-style: italic;">// Assignation de la liste déroulante</span></pre></td></tr></table></div>

</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/01/15/combobox-flex/' rel='bookmark' title='Permanent Link: Combobox flex'>Combobox flex</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/02/01/combobox-flex-rowcount/' rel='bookmark' title='Permanent Link: ComboBox flex : rowCount'>ComboBox flex : rowCount</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/08/05/bug-combobox-flex/' rel='bookmark' title='Permanent Link: Bug ComboBox Flex'>Bug ComboBox Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2010/08/19/modifier-le-dataprovider-dune-combobox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Génération de labyrinthes</title>
		<link>http://www.matsiya.fr/blog/2010/08/17/generation-de-labyrinthes/</link>
		<comments>http://www.matsiya.fr/blog/2010/08/17/generation-de-labyrinthes/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 06:40:45 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/?p=370</guid>
		<description><![CDATA[Vous avez toujours rêvé de savoir comment on pouvait générer un labyrinthe à l&#8217;aide d&#8217;un programme informatique ? Et bien, voici un article fort intéressant qui vous explique en détail cette création, allant de la théorie à la pratique. Tout un chapitre décrit la partie algorithmie, puis un exemple en flash est proposé avec le [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/04/26/flex-bientot-open-source/' rel='bookmark' title='Permanent Link: Flex bientôt open source !!!'>Flex bientôt open source !!!</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/' rel='bookmark' title='Permanent Link: Génération des getter/setter'>Génération des getter/setter</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/11/07/filereferencebrowse-et-flash-player-10/' rel='bookmark' title='Permanent Link: FileReference.browse et Flash player 10'>FileReference.browse et Flash player 10</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-370'><p>Vous avez toujours rêvé de savoir comment on pouvait générer un labyrinthe à l&#8217;aide d&#8217;un programme informatique ? Et bien, voici un article fort intéressant qui vous explique en détail cette création, allant de la théorie à la pratique. Tout un chapitre décrit la partie algorithmie, puis un exemple en flash est proposé avec le code source pour s&#8217;en inspirer, le tout sous licence GNU GPL v3, donc il ne faut pas se priver.</p>
<p><a title="Algorithmique pratique et optimisation de code : La génération de labyrinthes " href="http://ilay.org/yann/articles/maze/" target="_blank">Algorithmique pratique et optimisation de code : La génération de labyrinthes</a>.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/04/26/flex-bientot-open-source/' rel='bookmark' title='Permanent Link: Flex bientôt open source !!!'>Flex bientôt open source !!!</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/' rel='bookmark' title='Permanent Link: Génération des getter/setter'>Génération des getter/setter</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/11/07/filereferencebrowse-et-flash-player-10/' rel='bookmark' title='Permanent Link: FileReference.browse et Flash player 10'>FileReference.browse et Flash player 10</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2010/08/17/generation-de-labyrinthes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Les nouveaux composants et conteneurs Flex 4</title>
		<link>http://www.matsiya.fr/blog/2010/04/30/les-nouveaux-composants-et-conteneurs-flex-4/</link>
		<comments>http://www.matsiya.fr/blog/2010/04/30/les-nouveaux-composants-et-conteneurs-flex-4/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:31:56 +0000</pubDate>
		<dc:creator>marie</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[développement flex]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[flex 4]]></category>
		<category><![CDATA[ria]]></category>
<category>ActionScript</category><category>développement flex</category><category>flex 3</category><category>flex 4</category>
		<guid isPermaLink="false">http://www.matsiya.fr/blog/?p=359</guid>
		<description><![CDATA[Le SDK Flex 4 a introduit un certain nombre de nouvelles classes et de nouveaux composants qui utilisent la nouvelle architecture, permettant de faire de nouveaux skins et autres personnalisations, beaucoup plus simplement. Voici un tableau montrant les composants Flex 3 MX et leurs homologues Flex 4 Spark:



Composant Flex 3 MX
Composant Flex 4   [...]


Aucun d'article en relation]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-359'><p>Le SDK Flex 4 a introduit un certain nombre de nouvelles classes et de nouveaux composants qui utilisent la nouvelle architecture, permettant de faire de nouveaux skins et autres personnalisations, beaucoup plus simplement. Voici un tableau montrant les composants Flex 3 MX et leurs homologues Flex 4 Spark:<span id="more-359"></span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align: center;">
<td width="230" valign="top"><strong><span style="color: #000000;">Composant Flex 3 MX</span></strong></td>
<td width="230" valign="top"><strong><span style="color: #000000;">Composant Flex 4   Spark</span></strong></td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.Button</td>
<td width="230" valign="top">spark.components.Button</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.ButtonBar</td>
<td width="230" valign="top">spark.components.ButtonBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.CheckBox</td>
<td width="230" valign="top">spark.components.CheckBox</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.ComboBox   non éditable</td>
<td width="230" valign="top">spark.components.DropDownList</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.ComboBox   éditable</td>
<td width="230" valign="top">spark.components.   ComboBox</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HorizontalList</td>
<td width="230" valign="top">spark.components.List   (avec un HorizontalLayout)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HRule</td>
<td width="230" valign="top">spark.primitives.Line</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HScrollBar</td>
<td width="230" valign="top">spark.components.HScrollBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HSlider</td>
<td width="230" valign="top">spark.components.HSlider</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.Image</td>
<td width="230" valign="top">spark.primitives.BitmapImage   (sans support pour images externes)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.LinkBar</td>
<td width="230" valign="top">spark.components.ButtonBar   (avec un skin personalisé)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.LinkButton</td>
<td width="230" valign="top">spark.components.Button (avec un skin personalisé)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.List</td>
<td width="230" valign="top">spark.components.List</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.NumericStepper</td>
<td width="230" valign="top">spark.components.NumericStepper</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.RadioButton</td>
<td width="230" valign="top">spark.components.RadioButton</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.RadioButtonGroup</td>
<td width="230" valign="top">spark.components.RadioButtonGroup</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.TextArea</td>
<td width="230" valign="top">spark.components.TextArea</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.TabBar</td>
<td width="230" valign="top">spark.components.TabBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.TextInput</td>
<td width="230" valign="top">spark.components.TextInput</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.Label</td>
<td width="230" valign="top">spark.components.Label</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.TileList</td>
<td width="230" valign="top">spark.components.List   (avec un TileLayout)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.ToggleButtonBar</td>
<td width="230" valign="top">spark.components.ButtonBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VideoDisplay</td>
<td width="230" valign="top">spark.components.VideoPlayer</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VRule</td>
<td width="230" valign="top">spark.primitives.Line</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VScrollBar</td>
<td width="230" valign="top">spark.components.VScrollBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VSlider</td>
<td width="230" valign="top">spark.components.VSlider</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.core.Application</td>
<td width="230" valign="top">spark.components.Application</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.core.Window</td>
<td width="230" valign="top">spark.components.Window</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.core.WindowedApplication</td>
<td width="230" valign="top">spark.components.WindowedApplication</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.ApplicationControlBar</td>
<td width="230" valign="top">spark.components.Application   (avec un controlBarContent)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.Canvas</td>
<td width="230" valign="top">spark.components.Group</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.ControlBar</td>
<td width="230" valign="top">spark.components.Panel   (avec une propriété controlBarContent)</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.HBox</td>
<td width="230" valign="top">spark.components.HGroup</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.Panel</td>
<td width="230" valign="top">spark.components.Panel</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.Tile</td>
<td width="230" valign="top">spark.components.TileGroup</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.VBox</td>
<td width="230" valign="top">spark.components.VGroup</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.Box</td>
<td width="230" valign="top">spark.components.Group</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.ToggleButtonBar</td>
<td width="230" valign="top">spark.components.ButtonBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HScrollBar</td>
<td width="230" valign="top">spark.components.HScrollBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VScrollBar</td>
<td width="230" valign="top">spark.components.VScrollBar</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.HSlider</td>
<td width="230" valign="top">spark.components.HSlider</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.controls.VSlider</td>
<td width="230" valign="top">spark.components.VSlider</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.containers.TitleWindow</td>
<td width="230" valign="top">spark.components.TitleWindow</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.AddChildAction</td>
<td width="230" valign="top">spark.effects.AddAction</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Blur</td>
<td width="230" valign="top">spark.effects.AnimateFilter</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Glow</td>
<td width="230" valign="top">spark.effects.AnimateFilter</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Fade</td>
<td width="230" valign="top">spark.effects.Fade</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.collections.GroupingCollection</td>
<td width="230" valign="top">Obsolète remplacé par: mx.collections.GroupingCollection2</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Move</td>
<td width="230" valign="top">spark.effects.Move</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.RemoveChildAction</td>
<td width="230" valign="top">spark.effects.RemoveAction</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Resize</td>
<td width="230" valign="top">spark.effects.Resize</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Rotate</td>
<td width="230" valign="top">spark.effects.Rotate</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.Zoom</td>
<td width="230" valign="top">spark.effects.Scale</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.SetPropertyAction</td>
<td width="230" valign="top">spark.effects.SetAction</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.graphics.Stroke</td>
<td width="230" valign="top">Obsolète remplacé par : mx.graphics.solidColorStroke/ mx.graphics.RadialGradientStroke/ mx.graphics.LinearGradientStroke</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.collections.SummaryField</td>
<td width="230" valign="top">Obsolète remplacé par :   mx.collections.SummaryField2</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.WipeDown</td>
<td width="230" valign="top">spark.effects.Wipe</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.WipeLeft</td>
<td width="230" valign="top">spark.effects.Wipe</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.WipeRight</td>
<td width="230" valign="top">spark.effects.Wipe</td>
</tr>
<tr style="text-align: center;">
<td width="230" valign="top">mx.effects.WipeUP</td>
<td width="230" valign="top">spark.effects.Wipe</td>
</tr>
</tbody>
</table>
</DIV>

<p>Aucun d'article en relation</p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2010/04/30/les-nouveaux-composants-et-conteneurs-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Génération des getter/setter</title>
		<link>http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/</link>
		<comments>http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 09:51:47 +0000</pubDate>
		<dc:creator>marie</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[développement]]></category>
		<category><![CDATA[développement flex]]></category>
<category>ActionScript</category><category>développement</category><category>développement air</category><category>développement flex</category><category>flash builder</category>
		<guid isPermaLink="false">http://www.matsiya.fr/blog/?p=300</guid>
		<description><![CDATA[Lors du développement d&#8217;un projet flex bien structuré, un des aspects qui peut devenir vite assommant est la création structurée des VO.
Il faut d&#8217;abord créer la classe puis la nommer, créer et typer les variables privés, les getters et les setters, puis enfin créer les autres fonctions du VO.
Mais maintenant avec Flash Builder 4, la [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/' rel='bookmark' title='Permanent Link: Flex Unit et Flash Builder'>Flex Unit et Flash Builder</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/02/19/gestion-des-marqueurs-dun-projet/' rel='bookmark' title='Permanent Link: Gestion des marqueurs d&#8217;un projet'>Gestion des marqueurs d&#8217;un projet</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/08/17/generation-de-labyrinthes/' rel='bookmark' title='Permanent Link: Génération de labyrinthes'>Génération de labyrinthes</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-300'><p>Lors du développement d&#8217;un projet flex bien structuré, un des aspects qui peut devenir vite assommant est la création structurée des VO.<br />
Il faut d&#8217;abord créer la classe puis la nommer, créer et typer les variables privés, les getters et les setters, puis enfin créer les autres fonctions du VO.</p>
<p>Mais maintenant avec Flash Builder 4, la génération des getters et des setters est simplifiée à l&#8217;extrême. Il n&#8217;y a qu&#8217;à lui demander.<br />
<span id="more-300"></span> Pour cela il faut, après avoir sélectionner la variable voulue, aller dans &laquo;&nbsp;source&gt;Générer Getter/Setter&nbsp;&raquo;</p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/getter-setter1.png" title="getter_setter1" rel="lightbox[300]" rel="lightbox[300]"><img class="size-medium wp-image-301 alignnone" title="getter_setter1" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/getter-setter1-236x300.png" alt="génération des getter et setter d'une variable" width="236" height="300" /></a></p>
<p>Et là vous pouvez :</p>
<ul>
<li> rendre votre variable privée si vous ne l&#8217;avez pas encore fait;</li>
<li> la renommer d&#8217;une manière correcte;</li>
<li> nommer vos getter/setter;</li>
<li> générer soit un getter, soit un setter, soit les deux;</li>
<li> gérer l&#8217;espace de nom de vos getter/setter;</li>
<li> et enfin insérer le code généré soit avant les méthodes, soit après celles-ci, soit encore juste après la déclaration de la variable.</li>
</ul>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/getter-setter2.png" title="getter_setter2" rel="lightbox[300]" rel="lightbox[300]"><img class="size-medium wp-image-302 alignnone" title="getter_setter2" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/getter-setter2-300x264.png" alt="apperçu de la génération des getter/setter" width="300" height="264" /></a></p>
<p>Grâce à l&#8217;aperçu, vous pouvez voir le code que Flash Builder va insérer  et vérifier qu&#8217;il n&#8217;a pas fait d&#8217;erreur.</p>
<p>Une fois que vous avez cliqué sur OK, vos getter/setter sont prêts.<br />
Il faut bien entendu, le faire pour chaque variable créée, mais là malheureusement Flash Builder n&#8217;a rien prévu.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/' rel='bookmark' title='Permanent Link: Flex Unit et Flash Builder'>Flex Unit et Flash Builder</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/02/19/gestion-des-marqueurs-dun-projet/' rel='bookmark' title='Permanent Link: Gestion des marqueurs d&#8217;un projet'>Gestion des marqueurs d&#8217;un projet</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/08/17/generation-de-labyrinthes/' rel='bookmark' title='Permanent Link: Génération de labyrinthes'>Génération de labyrinthes</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex Unit et Flash Builder</title>
		<link>http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/</link>
		<comments>http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 18:02:22 +0000</pubDate>
		<dc:creator>marie</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[développement]]></category>
		<category><![CDATA[développement air]]></category>
		<category><![CDATA[développement flex]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[tests unitaires]]></category>
<category>actionscript</category><category>beta</category><category>développement</category><category>développement air</category><category>développement flex</category><category>flash builder</category><category>test</category><category>tests unitaires</category>
		<guid isPermaLink="false">http://www.matsiya.fr/blog/?p=229</guid>
		<description><![CDATA[Lors d&#8217;un développement, les tests unitaires sont très importants. Pour un développement flex, il existe flexUnit.
Avec Flex builder 3, on devait intégrer la librairie FlexUnit, puis créer manuellement, les classes de tests, les classes de suite de tests et l&#8217;application de lancement de tests. Il y avait des problèmes pour lancer seulement certains tests ou [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2010/02/14/flash-builder-4-flex-4/' rel='bookmark' title='Permanent Link: Flash Builder 4 / Flex 4'>Flash Builder 4 / Flex 4</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/' rel='bookmark' title='Permanent Link: Génération des getter/setter'>Génération des getter/setter</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/06/01/flash-builder-4-flash-catalyst-sur-ladobe-labs/' rel='bookmark' title='Permanent Link: Flash Builder 4 &#038; Flash Catalyst sur l&#8217;Adobe Labs'>Flash Builder 4 &#038; Flash Catalyst sur l&#8217;Adobe Labs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-229'><p>Lors d&#8217;un développement, les tests unitaires sont très importants. Pour un développement flex, il existe flexUnit.<br />
Avec Flex builder 3, on devait intégrer la librairie FlexUnit, puis créer manuellement, les classes de tests, les classes de suite de tests et l&#8217;application de lancement de tests. Il y avait des problèmes pour lancer seulement certains tests ou pour relancer les tests qui avaient échoués après correction. Il fallait souvent relancer tous les tests pour une correction.</p>
<p><span id="more-229"></span>Maintenant avec flash builder 4, FlexUnit est intégré directement dans flash builder. Pour créer des tests unitaires, on demande à  flash builder de créer une classe de test, dont on choisit le nom, la classe à tester et les méthodes à tester. Il ne reste plus ensuite qu&#8217;à remplir les méthodes de tests.</p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclassetest1.png" title="Creer une Classe de Test1" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-230 alignnone" title="Creer une Classe de Test1" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclassetest1-262x300.png" alt="" width="262" height="300" /></a><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclassetest3.png"></a></p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclasstest2.png" title="Creer une Classe de Test2" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-240 alignnone" title="Creer une Classe de Test2" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclasstest2-263x300.png" alt="" width="263" height="300" /></a></p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclassetest3.png" title="Creer une Classe de Test3" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-233 alignnone" title="Creer une Classe de Test3" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creerclassetest3-300x156.png" alt="" width="300" height="156" /></a></p>
<p>Pour créer une suite de tests, il suffit de le demander à flash builder, en lui indiquant un nom et quelles sont les classes et les méthodes de tests à inclure. On peut inclure, soit des méthodes seules, soit des classes entières, soit même d&#8217;autres suites de tests.</p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creersuitetest1.png" title="Creer une Suite de Tests1" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-234 alignnone" title="Creer une Suite de Tests1" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creersuitetest1-249x300.png" alt="" width="249" height="300" /></a><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creersuitetest2.png" title="Creer une Suite de Test2" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-235 alignnone" title="Creer une Suite de Test2" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/creersuitetest2-300x155.png" alt="" width="300" height="155" /></a></p>
<p>L&#8217;application de test se crée toute seule lors de l&#8217;exécution de tests unitaires (que ce soit une classe de tests ou une suite).</p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/lancementtest1.png" title="Lancement de Test1" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-236 alignnone" title="Lancement de Test1" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/lancementtest1-300x217.png" alt="" width="300" height="217" /></a></p>
<p>Après le lancement d&#8217;un groupe de test, on peut voir au niveau de l&#8217;application de tests ainsi qu&#8217;au niveau de la vue de tests de flash builder, quels sont les tests ont réussi, échoué et s&#8217;il y a eu des erreurs.</p>
<p><a href="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/lancementtest2.png" title="Lancement de Test2" rel="lightbox[229]" rel="lightbox[229]"><img class="size-medium wp-image-237 alignnone" title="Lancement de Test2" src="http://www.matsiya.fr/blog/wp-content/uploads/2010/03/lancementtest2-300x103.png" alt="" width="300" height="103" /></a></p>
<p>Enfin à partir de la vue de flash builder, on peut aussi relancer la suite de tests, une ou plusieurs méthodes de tests particulières ou relancer les tests qui ont échoué.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2010/02/14/flash-builder-4-flex-4/' rel='bookmark' title='Permanent Link: Flash Builder 4 / Flex 4'>Flash Builder 4 / Flex 4</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/03/17/generation-des-gettersetter/' rel='bookmark' title='Permanent Link: Génération des getter/setter'>Génération des getter/setter</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/06/01/flash-builder-4-flash-catalyst-sur-ladobe-labs/' rel='bookmark' title='Permanent Link: Flash Builder 4 &#038; Flash Catalyst sur l&#8217;Adobe Labs'>Flash Builder 4 &#038; Flash Catalyst sur l&#8217;Adobe Labs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enregistrer un XML au format binaire</title>
		<link>http://www.matsiya.fr/blog/2009/11/06/enregistrer-un-xml-au-format-binaire/</link>
		<comments>http://www.matsiya.fr/blog/2009/11/06/enregistrer-un-xml-au-format-binaire/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:47:36 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/11/06/enregistrer-un-xml-au-format-binaire/</guid>
		<description><![CDATA[Voici un petit tutoriel (en anglais) présentant la possibilité de sauvegarder un fichier XML au format binaire, pour gagner de l&#8217;espace disque dans le cas d&#8217;applications ayant des xml très volumineux.
C&#8217;est à consulter par ici : http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/


Articles sur le même sujet :Documentation AS3 sur iPhone



Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/01/28/documentation-as3-sur-iphone/' rel='bookmark' title='Permanent Link: Documentation AS3 sur iPhone'>Documentation AS3 sur iPhone</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-217'><p>Voici un petit tutoriel (en anglais) présentant la possibilité de sauvegarder un fichier XML au format binaire, pour gagner de l&#8217;espace disque dans le cas d&#8217;applications ayant des xml très volumineux.</p>
<p>C&#8217;est à consulter par ici : <a href="http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/" target="_blank">http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/</a></p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/01/28/documentation-as3-sur-iphone/' rel='bookmark' title='Permanent Link: Documentation AS3 sur iPhone'>Documentation AS3 sur iPhone</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/11/06/enregistrer-un-xml-au-format-binaire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 astuces pour optimiser les performances de Flex</title>
		<link>http://www.matsiya.fr/blog/2009/09/02/10-astuces-pour-optimiser-les-performances-de-flex/</link>
		<comments>http://www.matsiya.fr/blog/2009/09/02/10-astuces-pour-optimiser-les-performances-de-flex/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 08:26:42 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/09/02/10-astuces-pour-optimiser-les-performances-de-flex/</guid>
		<description><![CDATA[Voici un article publié sur InsideRIA parlant de bonnes pratiques pour avoir un code flex performant.
A lire sans plus attendre : insideria tips for flex 


Articles sur le même sujet :Externaliser la configuration de ses remoteObjects.
Astuces Adobe Flex, Adobe Coldfusion, Papervision 3D
Pour vos projets Flex : coding conventions and best practices



Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/08/10/externaliser-la-configuration-de-ses-remoteobjects/' rel='bookmark' title='Permanent Link: Externaliser la configuration de ses remoteObjects.'>Externaliser la configuration de ses remoteObjects.</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/05/09/astuces-adobe-flex-adobe-coldfusion-papervision-3d/' rel='bookmark' title='Permanent Link: Astuces Adobe Flex, Adobe Coldfusion, Papervision 3D'>Astuces Adobe Flex, Adobe Coldfusion, Papervision 3D</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/05/28/pour-vos-projets-flex-coding-conventions-and-best-practices/' rel='bookmark' title='Permanent Link: Pour vos projets Flex : coding conventions and best practices'>Pour vos projets Flex : coding conventions and best practices</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-211'><p>Voici un article publié sur InsideRIA parlant de bonnes pratiques pour avoir un code flex performant.</p>
<p>A lire sans plus attendre : <a href="http://www.insideria.com/2009/09/10-tips-for-flex-application-p.html" target="_blank">insideria tips for flex </a></p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/08/10/externaliser-la-configuration-de-ses-remoteobjects/' rel='bookmark' title='Permanent Link: Externaliser la configuration de ses remoteObjects.'>Externaliser la configuration de ses remoteObjects.</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/05/09/astuces-adobe-flex-adobe-coldfusion-papervision-3d/' rel='bookmark' title='Permanent Link: Astuces Adobe Flex, Adobe Coldfusion, Papervision 3D'>Astuces Adobe Flex, Adobe Coldfusion, Papervision 3D</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/05/28/pour-vos-projets-flex-coding-conventions-and-best-practices/' rel='bookmark' title='Permanent Link: Pour vos projets Flex : coding conventions and best practices'>Pour vos projets Flex : coding conventions and best practices</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/09/02/10-astuces-pour-optimiser-les-performances-de-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magazine Flash/Flex en ligne</title>
		<link>http://www.matsiya.fr/blog/2009/08/06/magasine-flashflex-en-ligne/</link>
		<comments>http://www.matsiya.fr/blog/2009/08/06/magasine-flashflex-en-ligne/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 15:07:13 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/08/06/magasine-flashflex-en-ligne/</guid>
		<description><![CDATA[Le magazine en ligne &#171;&#160;Flash &#38; Flex Developper&#8217;s magazine&#160;&#187; dans son édition de Mars vient d&#8217;être mis à disposition gratuite. Il est possible de le télécharger au format PDF à l&#8217;adresse suivante : http://www.ffdmag.com/prt/view/about-the-mag/issue/1015.html.
On retrouve dedans des infos sur des points précis du développement de flex, mais aussi sur des aspects plus génériques comme l&#8217;architecture [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/02/06/magento-e-commerce-flash-flex-et-air/' rel='bookmark' title='Permanent Link: Magento e-commerce : Flash, Flex et AIR'>Magento e-commerce : Flash, Flex et AIR</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/' rel='bookmark' title='Permanent Link: Flex Unit et Flash Builder'>Flex Unit et Flash Builder</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/04/04/retour-sur-le-adobe-onair-tour/' rel='bookmark' title='Permanent Link: Retour sur le Adobe onAir Tour'>Retour sur le Adobe onAir Tour</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-209'><p>Le magazine en ligne &laquo;&nbsp;Flash &amp; Flex Developper&#8217;s magazine&nbsp;&raquo; dans son édition de Mars vient d&#8217;être mis à disposition gratuite. Il est possible de le télécharger au format PDF à l&#8217;adresse suivante : <a href="http://www.ffdmag.com/prt/view/about-the-mag/issue/1015.html">http://www.ffdmag.com/prt/view/about-the-mag/issue/1015.html</a>.</p>
<p>On retrouve dedans des infos sur des points précis du développement de flex, mais aussi sur des aspects plus génériques comme l&#8217;architecture de son application à l&#8217;aide du framework Cairngorm.</p>
<p>On y trouve aussi un intéressant article sur l&#8217;utilisation de modèles 3D, créés grâce au logiciel libre Blender, dans flash grâce à Sandy 3D.</p>
<p>A lire de toute urgence pour les anglophones.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/02/06/magento-e-commerce-flash-flex-et-air/' rel='bookmark' title='Permanent Link: Magento e-commerce : Flash, Flex et AIR'>Magento e-commerce : Flash, Flex et AIR</a></li>
<li><a href='http://www.matsiya.fr/blog/2010/02/28/flex-unit-et-flash-builder/' rel='bookmark' title='Permanent Link: Flex Unit et Flash Builder'>Flex Unit et Flash Builder</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/04/04/retour-sur-le-adobe-onair-tour/' rel='bookmark' title='Permanent Link: Retour sur le Adobe onAir Tour'>Retour sur le Adobe onAir Tour</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/08/06/magasine-flashflex-en-ligne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutoriaux Adobe Flash Collaborative Services</title>
		<link>http://www.matsiya.fr/blog/2009/08/05/tutoriaux-adobe-flash-collaborative-services/</link>
		<comments>http://www.matsiya.fr/blog/2009/08/05/tutoriaux-adobe-flash-collaborative-services/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 12:11:20 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex builder]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/08/05/tutoriaux-adobe-flash-collaborative-services/</guid>
		<description><![CDATA[Le site Flex tutorial a mis en ligne une série d&#8217;articles sur l&#8217;utilisation d&#8217;Adobe Flash Collaborative Services (AFCS) anciennement appelé Cocomo, permettant de s&#8217;adonner aux joies des outils collaboratifs. On y retrouve toutes les informations utiles permettant de construire son application basée sur ce service, et ainsi gagné un temps loin d&#8217;être négligeable lorsque l&#8217;on [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2008/04/04/retour-sur-le-adobe-onair-tour/' rel='bookmark' title='Permanent Link: Retour sur le Adobe onAir Tour'>Retour sur le Adobe onAir Tour</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/01/28/documentation-as3-sur-iphone/' rel='bookmark' title='Permanent Link: Documentation AS3 sur iPhone'>Documentation AS3 sur iPhone</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-208'><p>Le site <a href="http://www.flex-tutorial.fr" title="www.flex-tutorial.fr" target="_blank">Flex tutorial</a> a mis en ligne une série d&#8217;articles sur l&#8217;utilisation d&#8217;Adobe Flash Collaborative Services (AFCS) anciennement appelé Cocomo, permettant de s&#8217;adonner aux joies des outils collaboratifs. On y retrouve toutes les informations utiles permettant de construire son application basée sur ce service, et ainsi gagné un temps loin d&#8217;être négligeable lorsque l&#8217;on doit mettre en place ce type de structure.</p>
<p>A consulter de toute urgence sur ce <a href="http://www.flex-tutorial.fr/category/afcs/" title="http://www.flex-tutorial.fr/category/afcs/">lien</a></p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2008/04/04/retour-sur-le-adobe-onair-tour/' rel='bookmark' title='Permanent Link: Retour sur le Adobe onAir Tour'>Retour sur le Adobe onAir Tour</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/01/28/documentation-as3-sur-iphone/' rel='bookmark' title='Permanent Link: Documentation AS3 sur iPhone'>Documentation AS3 sur iPhone</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/08/05/tutoriaux-adobe-flash-collaborative-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Contourner l&#8217;erreur de parse des &amp;&amp; dans le mxml</title>
		<link>http://www.matsiya.fr/blog/2009/04/21/contourner-lerreur-de-parse-des-dans-le-mxml/</link>
		<comments>http://www.matsiya.fr/blog/2009/04/21/contourner-lerreur-de-parse-des-dans-le-mxml/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:12:01 +0000</pubDate>
		<dc:creator>Alexis</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/04/21/contourner-lerreur-de-parse-des-dans-le-mxml/</guid>
		<description><![CDATA[Voici une petite astuce d&#8217;écriture pour éviter de devoir inverser les conditions lorsqu&#8217;on les place dans du code mxml. En effet, Flex ne supporte pas que l&#8217;on ait les opérateur &#38;&#38; dans du code mxml.
Le code : &#60;mx:Label text=&#160;&#187;matsiya&#160;&#187; visible=&#160;&#187;{condition1 &#38;&#38; condition2}&#160;&#187; /&#62; devrait fonctionner dans la logique, puisque &#60;mx:Label text=&#160;&#187;matsiya&#160;&#187; visible=&#160;&#187;{condition1 &#124;&#124; condition2}&#160;&#187; /&#62; [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/08/14/coldfusion-et-flex-la-compilation-main-dans-la-main-2/' rel='bookmark' title='Permanent Link: ColdFusion et Flex : la compilation main dans la main'>ColdFusion et Flex : la compilation main dans la main</a></li>
<li><a href='http://www.matsiya.fr/blog/2007/08/14/compilation-flex-via-coldfusion-2/' rel='bookmark' title='Permanent Link: Compilation Flex via ColdFusion'>Compilation Flex via ColdFusion</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/03/20/astuce-vbox-repeater/' rel='bookmark' title='Permanent Link: Astuce VBox &#8211; Repeater'>Astuce VBox &#8211; Repeater</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-206'><p>Voici une petite astuce d&#8217;écriture pour éviter de devoir inverser les conditions lorsqu&#8217;on les place dans du code mxml. En effet, Flex ne supporte pas que l&#8217;on ait les opérateur &amp;&amp; dans du code mxml.</p>
<p>Le code : <strong>&lt;mx:Label text=&nbsp;&raquo;matsiya&nbsp;&raquo; visible=&nbsp;&raquo;{condition1 &amp;&amp; condition2}&nbsp;&raquo; /&gt;</strong> devrait fonctionner dans la logique, puisque <strong>&lt;mx:Label text=&nbsp;&raquo;matsiya&nbsp;&raquo; visible=&nbsp;&raquo;{condition1 || condition2}&nbsp;&raquo; /&gt;</strong> fonctionne très bien, mais ce n&#8217;est pas le cas.</p>
<p>On pourrait certainement chercher pourquoi derrière il refuse cette compilation car le code mxml n&#8217;étant autre que du code as3, la raison doit se trouver là dedans. Néanmoins, ce problème d&#8217;écriture résulte souvent dans une prise de tête.</p>
<p>Pour le contourner, il suffit alors d&#8217;écrire sous la forme suivante :</p>
<p><strong>&lt;mx:Label text=&nbsp;&raquo;matsiya&nbsp;&raquo; visible=&nbsp;&raquo;{(int(condition1)*int(condition2))==1}&nbsp;&raquo; /&gt;</strong></p>
<p>Cela rend le code un peu moins lisible, mais est terriblement efficace.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/08/14/coldfusion-et-flex-la-compilation-main-dans-la-main-2/' rel='bookmark' title='Permanent Link: ColdFusion et Flex : la compilation main dans la main'>ColdFusion et Flex : la compilation main dans la main</a></li>
<li><a href='http://www.matsiya.fr/blog/2007/08/14/compilation-flex-via-coldfusion-2/' rel='bookmark' title='Permanent Link: Compilation Flex via ColdFusion'>Compilation Flex via ColdFusion</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/03/20/astuce-vbox-repeater/' rel='bookmark' title='Permanent Link: Astuce VBox &#8211; Repeater'>Astuce VBox &#8211; Repeater</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/04/21/contourner-lerreur-de-parse-des-dans-le-mxml/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

