<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.lalex.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>LAlex devblog v6 - SuperColor devient XColor pour Flash 8  - Commentaires</title>
  <link>http://blog.lalex.com/</link>
  <atom:link href="http://blog.lalex.com/feed/rss2/comments/286" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>fr</language>
  <pubDate>Thu, 04 Sep 2008 18:23:47 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - LAlex</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2960</link>
    <guid isPermaLink="false">urn:md5:f6914532d10694751f45b0e0a09c4743</guid>
    <pubDate>Fri, 01 Feb 2008 11:24:07 +0100</pubDate>
    <dc:creator>LAlex</dc:creator>
    
    <description>&lt;p&gt;Une simple recherche de &amp;quot;SuperColor&amp;quot; sur le blog t'aurais donné l'adresse
http://blog.lalex.com/post/2004/08/19/SuperColor-03-%3A-le-contraste-en-plus
&lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_wink.gif&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;
&lt;p&gt;++ ^_^&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - laurent</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2958</link>
    <guid isPermaLink="false">urn:md5:d88fc212ecc9948aa785c2fa92fc1f17</guid>
    <pubDate>Fri, 01 Feb 2008 11:05:24 +0100</pubDate>
    <dc:creator>laurent</dc:creator>
    
    <description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;n'ayant pas flash 8 je m'interesse a supercolor mais ton lien &lt;a href=&quot;http://blog.lalex.com/post/2005/09/20/archives/200408/194-supercolor-contraste-plus.html&quot; title=&quot;http://blog.lalex.com/post/2005/09/20/archives/200408/194-supercolor-contraste-plus.html&quot; rel=&quot;nofollow&quot;&gt;
http://blog.lalex.com/post/2005/09/...&lt;/a&gt; est mort, ou puis je le trouver STP
?&lt;/p&gt;
&lt;p&gt;Merci&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - olivier</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2452</link>
    <guid isPermaLink="false">urn:md5:7eeec2a8a092a17c37c9d8929b7d460e</guid>
    <pubDate>Wed, 15 Feb 2006 09:26:38 +0000</pubDate>
    <dc:creator>olivier</dc:creator>
    
    <description>&lt;p&gt;Est-ce que ta classe Xcolor s'applique aux BitmapData?&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Drakini</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2296</link>
    <guid isPermaLink="false">urn:md5:2ca0af8c09a4ea691b073e869403c916</guid>
    <pubDate>Thu, 29 Sep 2005 11:11:18 +0000</pubDate>
    <dc:creator>Drakini</dc:creator>
    
    <description>&lt;p&gt;Ben après qq test de la class ColorTransform, pour moi, les valeurs négatives restent sans effet.. mais par contre, je peux dépasser la valeur 1 pour accentuer les multiplier de couleur..&lt;/p&gt;&lt;p&gt;un exemple :&lt;br /&gt;&lt;code class=&quot;actionscript&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Import&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0066CC;&quot;&gt;import&lt;/span&gt; flash.&lt;span style=&quot;color: #006600;&quot;&gt;display&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;BitmapData&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #0066CC;&quot;&gt;import&lt;/span&gt; flash.&lt;span style=&quot;color: #006600;&quot;&gt;filters&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;*&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #0066CC;&quot;&gt;import&lt;/span&gt; flash.&lt;span style=&quot;color: #006600;&quot;&gt;geom&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;*&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Instance&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; MBitmapData:BitmapData = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; BitmapData&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;400&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;400&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;, 0x00ffffff&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; MGlow:GlowFilter = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; GlowFilter&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;0xffffff, .&lt;span style=&quot;color: #cc66cc;&quot;&gt;5&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;30&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;30&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; MDrop:DropShadowFilter = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; DropShadowFilter&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;20&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;45&lt;/span&gt;, 0xffffff, .&lt;span style=&quot;color: #cc66cc;&quot;&gt;8&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;15&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;15&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; brusch:&lt;span style=&quot;color: #0066CC;&quot;&gt;MovieClip&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; mc:&lt;span style=&quot;color: #0066CC;&quot;&gt;MovieClip&lt;/span&gt; = &lt;span style=&quot;color: #0066CC;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0066CC;&quot;&gt;createEmptyMovieClip&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;mc&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #0066CC;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0066CC;&quot;&gt;getNextHighestDepth&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
mc.&lt;span style=&quot;color: #006600;&quot;&gt;attachBitmap&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;MBitmapData, &lt;span style=&quot;color: #0066CC;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0066CC;&quot;&gt;getNextHighestDepth&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0066CC;&quot;&gt;onEnterFrame&lt;/span&gt; = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;brush, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Matrix&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #0066CC;&quot;&gt;_xmouse&lt;/span&gt;, &lt;span style=&quot;color: #0066CC;&quot;&gt;_ymouse&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColorTransform&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;colorTransform&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;rectangle&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColorTransform&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;applyFilter&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;MBitmapData, MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;rectangle&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Point&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;, MGlow&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;applyFilter&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;MBitmapData, MBitmapData.&lt;span style=&quot;color: #006600;&quot;&gt;rectangle&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Point&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;, MDrop&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//&lt;/span&gt;&lt;br /&gt;
brush.&lt;span style=&quot;color: #0066CC;&quot;&gt;_visible&lt;/span&gt; = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// &lt;/span&gt;&lt;/code&gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - LAlex</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2291</link>
    <guid isPermaLink="false">urn:md5:84047b189cb4e3293a8a425725e9b2ea</guid>
    <pubDate>Wed, 21 Sep 2005 00:03:04 +0000</pubDate>
    <dc:creator>LAlex</dc:creator>
    
    <description>&lt;p&gt;@Philippe&gt; Le but est surtout d'encapsuler des réglages tels que le contraste ou la luminosité. Du coup, autant aussi centraliser les propriétés &quot;simples&quot; également, afin de pouvoir faire des Tween sur n'importe quelle propriété indifféremment.&lt;/p&gt;&lt;p&gt;L'encapsulation déteriore la plupart du temps les performances, question de choix. Pour des applications simples, je pense qu'une classe telle que celle-là est largement suffisante, mais une application plus exigeante peut bien évidemment nécessiter de coder à plus bas niveau. &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_smile.gif&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;p&gt;Dans le cas présent, je me suis contenté d'implémenter les méthodes setRGB, getRGB, setTransform, getTransform, afin de simplifier la refactorisation de la classe. Par contre, elle doit être optimisable en enlevant cette étape là, et en travaillant directement avec des ColorTransform dans les méthodes. Cela fera trés certainement l'objet d'une version à venir. &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_cool.gif&quot; alt=&quot;8)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;p&gt;Mais quoi qu'il en soit, je continue de penser que l'API est bonne et bien pratique dans le cadre de Tweens, et que la nouvelle structure est particulièrement mal adaptée à cela. cela étant surtout du au fait que MovieClip.transform retourne une copie des transformations, et non pas une référence vers l'instance originale de la classe &lt;em&gt;Transform&lt;/em&gt;... :\ S'habituer à &lt;em&gt;ColorTransform&lt;/em&gt;? Je ne crois pas que ce soit nécessaire avec un telle classe, a moins de vouloir coder un PhotoShop! &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_mrgreen.gif&quot; alt=&quot;:mrgreen:&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;p&gt;Par contre, &lt;em&gt;ColorMatrixFilter&lt;/em&gt; semble apporter des réglages d'une finesse inégalée, encore faut-il avoir une connaissance trés pointue de la gestion des couleurs dans un environnement RVB... que personnellement je n'ai pas :$... ou pas encore! &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_razz.gif&quot; alt=&quot;:P&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Philippe</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2290</link>
    <guid isPermaLink="false">urn:md5:d8f0a4b9320d2de76162175cb383075f</guid>
    <pubDate>Tue, 20 Sep 2005 21:37:56 +0000</pubDate>
    <dc:creator>Philippe</dc:creator>
    
    <description>&lt;p&gt;@Lalex&gt; Oui mais une fonction comme setRedPercent sera plus efficace avec mon exemple. D'où l'intérêt de se convertir à l'utilisation directe des colorTransform... &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_smile.gif&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - LAlex</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2289</link>
    <guid isPermaLink="false">urn:md5:0e5469615bfafff4c39196d455288de4</guid>
    <pubDate>Tue, 20 Sep 2005 20:51:00 +0000</pubDate>
    <dc:creator>LAlex</dc:creator>
    
    <description>&lt;p&gt;@Philippe&gt; Le problème est que avec ton code, si on veut faire des Tweens, on est obligé de renseigner le onMotionChanged, etc... A moins de créer une classe ColorTween, qui prendrait en paramètre le clip sur lequel on doit appliquer les couleurs... &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_smile.gif&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;p&gt;++ ^^&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Philippe</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2288</link>
    <guid isPermaLink="false">urn:md5:15053f30271b9c621cac3a2258c29dda</guid>
    <pubDate>Tue, 20 Sep 2005 19:49:09 +0000</pubDate>
    <dc:creator>Philippe</dc:creator>
    
    <description>&lt;p&gt;Je ne pense pas que ça vaille le coup de remplacer la class Color dans nos codes existants. Le fait qu'elle soit deprecated devrait juste nous inciter à changer nos habitudes de codage.&lt;/p&gt;&lt;p&gt;Remarquez qu'on peut (presque) directement attaquer la propriété colorTransform. C'est peut-être plus efficace pour les tweens :&lt;br /&gt;&lt;code class=&quot;actionscript&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; ct = _targetMC.&lt;span style=&quot;color: #006600;&quot;&gt;transform&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;colorTransform&lt;/span&gt;;&lt;br /&gt;
ct.&lt;span style=&quot;color: #006600;&quot;&gt;redMultiplier&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;0.5&lt;/span&gt;;&lt;br /&gt;
_targetMC.&lt;span style=&quot;color: #006600;&quot;&gt;transform&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;colorTransform&lt;/span&gt; = ct;&lt;/code&gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Roikku</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2286</link>
    <guid isPermaLink="false">urn:md5:71042128d6d975113944b7c50dcea94c</guid>
    <pubDate>Tue, 20 Sep 2005 18:51:27 +0000</pubDate>
    <dc:creator>Roikku</dc:creator>
    
    <description>&lt;p&gt;Le coup de recuperer les anciennes valeurs, oui, c'est un peu logique, mais je me demande si cela n'alourdit pas le process pour parametrer une couleur.&lt;/p&gt;&lt;p&gt;Je dis cela en pensant surtout aux tweens et en particulier aux multi-tweens.&lt;/p&gt;&lt;p&gt;En tous les cas, cela marche nickel avec ma classe Tweens.&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - LAlex</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2283</link>
    <guid isPermaLink="false">urn:md5:761a7061bb9e4442e0a0e3daa8bf7d48</guid>
    <pubDate>Tue, 20 Sep 2005 16:52:26 +0000</pubDate>
    <dc:creator>LAlex</dc:creator>
    
    <description>&lt;p&gt;@Tonio&gt; Exactement... Du genre &lt;em&gt;setContrast&lt;/em&gt; par exemple, qui ne renseigne pas les alphas... &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_wink.gif&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;p&gt;++ ^^&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Tonio</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2282</link>
    <guid isPermaLink="false">urn:md5:0784e46b60aa73d1f45e94176d8e6486</guid>
    <pubDate>Tue, 20 Sep 2005 16:46:56 +0000</pubDate>
    <dc:creator>Tonio</dc:creator>
    
    <description>&lt;p&gt;C super, merci de ta confirmation..&lt;/p&gt;&lt;p&gt;Par contre g regarder ta version corrigé et du coups je ne voit pas pourquoi&lt;br /&gt;tu fait ça :&lt;br /&gt;&lt;code class=&quot;actionscript&quot;&gt;&lt;span style=&quot;color: #0066CC;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066CC;&quot;&gt;setTransform&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;o&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; t = &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;ra:&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, rb:&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, ga:&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, gb:&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, ba:&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, bb:&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;, aa:&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, ab:&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; p &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; o&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;p&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; = o&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;p&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; ct:ColorTransform = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColorTransform&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;t.&lt;span style=&quot;color: #006600;&quot;&gt;ra&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;ga&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;ba&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;aa&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;rb&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;gb&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;bb&lt;/span&gt;, t.&lt;span style=&quot;color: #006600;&quot;&gt;ab&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0066CC;&quot;&gt;trace&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;ct&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _targetMC.&lt;span style=&quot;color: #006600;&quot;&gt;transform&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;colorTransform&lt;/span&gt; = ct;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/code&gt;au lieu de ça :&lt;code class=&quot;actionscript&quot;&gt;&lt;span style=&quot;color: #0066CC;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0066CC;&quot;&gt;setTransform&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;o&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; ct:ColorTransform = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColorTransform&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;o.&lt;span style=&quot;color: #006600;&quot;&gt;ra&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;ga&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;ba&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;aa&lt;/span&gt;/&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;rb&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;gb&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;bb&lt;/span&gt;, o.&lt;span style=&quot;color: #006600;&quot;&gt;ab&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _targetMC.&lt;span style=&quot;color: #006600;&quot;&gt;transform&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;colorTransform&lt;/span&gt; = ct;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Euhhhhhh, en fait j'viens ptéte de capter.....sorry.&lt;br /&gt;Tu fait ça au cas ou on donne un objet o incomplet genre juste {ra:10}&lt;br /&gt;c ça.&lt;/p&gt;&lt;p&gt;++&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - LAlex</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2281</link>
    <guid isPermaLink="false">urn:md5:6661711f88256a63fddb1872b7c69403</guid>
    <pubDate>Tue, 20 Sep 2005 16:31:44 +0000</pubDate>
    <dc:creator>LAlex</dc:creator>
    
    <description>&lt;p&gt;@Tonio &gt; Il semblerait que ColorTransform soit mal documenté car si j'utilise des valeurs négatives, l'effet est strictement le même que pour Color (et strictement le même que la configuration avancée de l'environnement auteur d'ailleurs...).&lt;/p&gt;&lt;p&gt;Par contre, ta remarque m'a fait mettre le doigt sur un petit bug de ma méthode setTransform, qui est maintenant rectifié... Merci! &lt;img src=&quot;http://common.lalex.com/themes/devblog/smilies/icon_wink.gif&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>SuperColor devient XColor pour Flash 8 - Tonio</title>
    <link>http://blog.lalex.com/post/2005/09/20/SuperColor-devient-XColor-pour-Flash-8#c2280</link>
    <guid isPermaLink="false">urn:md5:ad7e75ac54e1cdfb0b39fbe7ef116b5e</guid>
    <pubDate>Tue, 20 Sep 2005 16:09:55 +0000</pubDate>
    <dc:creator>Tonio</dc:creator>
    
    <description>&lt;p&gt;Salut Lalex,&lt;/p&gt;&lt;p&gt;J'ai un doute sur la compabilité total entre Color et&lt;br /&gt;ColorTransform.&lt;/p&gt;&lt;p&gt;Dans un objet &quot;Transform&quot; de Color (flash7), on a :&lt;/p&gt;&lt;p&gt;ra : %tage de rouge (entre -100 et 100)   // defaut  : 100&lt;br /&gt;ga : %tage de vert  (entre -100 et 100)   // defaut  : 100&lt;br /&gt;ba : %tage de bleu  (entre -100 et 100)   // defaut  : 100&lt;br /&gt;aa : %tage d'alpha  (entre -100 et 100)   // defaut  : 100&lt;br /&gt;rb : décalage de rouge (entre -255 et 255)   // defaut  : 0&lt;br /&gt;gb : décalage de vert  (entre -255 et 255)   // defaut  : 0&lt;br /&gt;bb : décalage de bleu  (entre -255 et 255)   // defaut  : 0&lt;br /&gt;ab : décalage d'alpha  (entre -255 et 255)   // defaut  : 0&lt;/p&gt;&lt;p&gt;Et dans un objet ColorTransform (flash8), on a d'après la doc :&lt;/p&gt;&lt;p&gt;redMultiplier   : Multiplication de rouge,        (entre 0 et 1)   // defaut  : 1&lt;br /&gt;greenMultiplier : Multiplication de vert,         (entre 0 et 1)   // defaut  : 1&lt;br /&gt;blueMultiplier  : Multiplication de bleu,         (entre 0 et 1)   // defaut  : 1&lt;br /&gt;alphaMultiplier : Multiplication de transparence, (entre 0 et 1)   // defaut  : 1&lt;br /&gt;redOffset       : décalage de rouge (entre -255 et 255)   // defaut  : 0&lt;br /&gt;greenOffset     : décalage de vert  (entre -255 et 255)   // defaut  : 0&lt;br /&gt;blueOffset      : décalage de bleu  (entre -255 et 255)   // defaut  : 0&lt;br /&gt;alphaOffset     : décalage d'alpha  (entre -255 et 255)   // defaut  : 0&lt;/p&gt;&lt;p&gt;Et dans ta classe, tu utilise la conversion suivante dans ta méthode setTransform(o) :&lt;/p&gt;&lt;p&gt;redMultiplier   = ra / 100&lt;br /&gt;greenMultiplier = ga / 100&lt;br /&gt;blueMultiplier  = ba / 100&lt;br /&gt;alphaMultiplier = aa / 100&lt;br /&gt;redOffset       = rb&lt;br /&gt;greenOffset     = gb&lt;br /&gt;blueOffset      = bb&lt;br /&gt;alphaOffset     = ab&lt;/p&gt;&lt;p&gt;Or redMultiplier est compris entre 0 et 1 et pas -1 et 1.&lt;br /&gt;(ie pour les autres Multiplier)&lt;/p&gt;&lt;p&gt;Et dans la méthode (par ex) :&lt;br /&gt;&lt;code class=&quot;actionscript&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
* Set red percentage&lt;br /&gt;
* @param percent Between -100 and 100&lt;br /&gt;
*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0066CC;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; setRedPercent&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;percent:&lt;span style=&quot;color: #0066CC;&quot;&gt;Number&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; trans:&lt;span style=&quot;color: #0066CC;&quot;&gt;Object&lt;/span&gt; = &lt;span style=&quot;color: #0066CC;&quot;&gt;getTransform&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; trans.&lt;span style=&quot;color: #006600;&quot;&gt;ra&lt;/span&gt; = percent;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0066CC;&quot;&gt;setTransform&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;trans&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;On ne peut pas donner à percent une valeur négative &lt;br /&gt;étant donné que tu utilise ColorTransform.&lt;/p&gt;&lt;p&gt;Bref j'espère me tromper car moi aussi j'avais une classe ColorPlus&lt;br /&gt;inspirée de Penner que je voulais convertir pourFlash8..&lt;br /&gt;Mais à cause de cette incompabilité entre Color et ColorTransform,&lt;br /&gt;je suis resté bloqué.&lt;/p&gt;&lt;p&gt;++&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
  </item>
      
</channel>
</rss>