<?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>flex &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>flex &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Flex sdk 3.5.0 problem with ternary operators</title>
		<link>https://blog.sephiroth.it/2010/03/25/flex-sdk-3-5-0-problem-with-ternary-operators/</link>
					<comments>https://blog.sephiroth.it/2010/03/25/flex-sdk-3-5-0-problem-with-ternary-operators/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Thu, 25 Mar 2010 23:42:26 +0000</pubDate>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[ternary]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=294</guid>

					<description><![CDATA[I&#8217;ve got problems to isolate the problem into a very big project with many linked sources. After hours inspecting and commenting lines of code trying to figure out the reason why flex gave me an &#8220;internal error&#8221; I found the problem. This very simple script was crashing the flex compiler if using the 3.5.0 sdk &#8230; <a href="https://blog.sephiroth.it/2010/03/25/flex-sdk-3-5-0-problem-with-ternary-operators/" class="more-link">Continue reading <span class="screen-reader-text">Flex sdk 3.5.0 problem with ternary operators</span></a>]]></description>
										<content:encoded><![CDATA[<div>I&#8217;ve got problems to isolate the problem into a very big project with many linked sources. After hours inspecting and commenting lines of code trying to figure out the reason why flex gave me an &#8220;internal error&#8221; I found the problem.</div>
<div>This very simple script was crashing the flex <a class="zem_slink freebase/en/compiler rdfa" title="Compiler" rel="ctag:means wikipedia" href="http://en.wikipedia.org/wiki/Compiler">compiler</a> if using the <strong>3.5.0 sdk</strong> ( revision 3.5.0.12683 ).</div>
<div>Fortunately the 4.0.0 compiler works fine. At the end it seems to be the combination of &#8220;+&#8221; and &#8220;-&#8221; and the ternary operator.</div>
<pre>package
{
   import flash.display.Sprite;
   public class ternary_test extends Sprite
   {
      public function ternary_test()
      {
         var n: Number = 0;
         var d: int = 3;
         var k: int = 5;
         var j: int = 10;
         n = 1 + ( -( d == 0 ? k : j ) );
         trace( "n=" + n );
      }
   }
}</pre>
<p>will cause the compiler to crash with the following stack trace:</p>
<pre><span style="text-decoration: underline;">compile</span><span style="color: #85afff;">:</span>

    [<span style="text-decoration: underline;">mxmlc</span>] Loading configuration file /Applications/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks/flex-config.xml

    [<span style="text-decoration: underline;">mxmlc</span>] Error: null

<span style="color: #fd7a00;">    [</span><span style="text-decoration: underline;">mxmlc</span><span style="color: #fd7a00;">] </span><span style="text-decoration: underline;">java.lang.NullPointerException</span>

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.semantics.ConstantEvaluator.evaluate(<span style="text-decoration: underline;">ConstantEvaluator.java:1290</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.parser.UnaryExpressionNode.evaluate(<span style="text-decoration: underline;">UnaryExpressionNode.java:51</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.semantics.ConstantEvaluator.evaluate(<span style="text-decoration: underline;">ConstantEvaluator.java:2153</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.parser.ListNode.evaluate(<span style="text-decoration: underline;">ListNode.java:44</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.semantics.ConstantEvaluator.evaluate(<span style="text-decoration: underline;">ConstantEvaluator.java:1497</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.parser.BinaryExpressionNode.evaluate(<span style="text-decoration: underline;">BinaryExpressionNode.java:56</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.semantics.ConstantEvaluator.evaluate(<span style="text-decoration: underline;">ConstantEvaluator.java:2124</span>)

    [<span style="text-decoration: underline;">mxmlc</span>] <span style="white-space: pre;">	</span>at macromedia.asc.parser.ArgumentListNode.evaluate(<span style="text-decoration: underline;">ArgumentListNode.java:45</span>)...</pre>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=cc432a65-0505-44c1-b8fe-35dab7bb5dda" alt="" /><span class="zem-script more-related more-info pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2010/03/25/flex-sdk-3-5-0-problem-with-ternary-operators/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Alchemy installation problems under OSX</title>
		<link>https://blog.sephiroth.it/2010/01/07/alchemy-installation-problems-under-osx/</link>
					<comments>https://blog.sephiroth.it/2010/01/07/alchemy-installation-problems-under-osx/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 08 Jan 2010 05:01:08 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[alchemy]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=287</guid>

					<description><![CDATA[I&#8217;m writing this little issue I discovered today in the alchemy installation under OSX, in case someone else is having the same problem&#8230; In fact, today I decided to makes a little swc library for an actionscript project using alchemy ( because of the lacks of union in flash ), so I downloaded the alchemy &#8230; <a href="https://blog.sephiroth.it/2010/01/07/alchemy-installation-problems-under-osx/" class="more-link">Continue reading <span class="screen-reader-text">Alchemy installation problems under OSX</span></a>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m writing this little issue I discovered today in the alchemy installation under OSX, in case someone else is having the same problem&#8230;</p>
<div>In fact, today I decided to makes a little swc library for an actionscript project using alchemy ( because of the lacks of union in flash ), so I downloaded the <a href="http://labs.adobe.com/technologies/alchemy/">alchemy toolkit for OSX</a>.</p>
<p><br class="spacer_" /></p>
<div>I spent a couple of hours trying to make it working on my Snow Leopard and because I&#8217;m not a shell and perl expert I finally moved to the linux toolkit under ubuntu ( even if on linux the Flex builder is really far to be usable!)</div>
<div>Anyway, this evening I decided to spend some more time trying to understand why when I was trying to execute the alchemy &#8220;<strong>gcc</strong>&#8221; script ( the ones inside the <em>achacks</em> folder, which is a perl script) nothing happened.</div>
<div>After long time with old style &#8220;print&#8221; debugging strategy, at the end I discovered an error in the &#8220;<strong>config</strong>&#8221; script in the main alchemy installation folder.</div>
<div>At this line (line 33):</div>
<div><code lang="bash">if echo $MACHTYPE | grep darwin &> /dev/null; then</code>
</div>
<div>I had to modify it into:</div>
<div><code lang="bash">if echo $MACHTYPE | grep -i darwin &> /dev/null; then</code>
</div>
<div>because the command &#8220;echo $MACHTYPE&#8221; outputs &#8220;<strong>x86_64-Apple-Darwin</strong>&#8220;, with the uppercase &#8220;D&#8221;.</div>
<div>In fact, after that modification everything finally worked!</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2010/01/07/alchemy-installation-problems-under-osx/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Flex 3 Tree double-click to edit</title>
		<link>https://blog.sephiroth.it/2009/12/23/flex-3-tree-double-click-to-edit/</link>
					<comments>https://blog.sephiroth.it/2009/12/23/flex-3-tree-double-click-to-edit/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 23 Dec 2009 23:24:52 +0000</pubDate>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[double click]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[tree]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=286</guid>

					<description><![CDATA[Some people asked about changing the default editing behavior of a Flex 3 Tree control so &#160;that item editing starts on a double-click event instead of the default single click. Indeed it has been covered several times on forums or mailing list, but it&#8217;s faster to create a simple script than search for it sometimes. &#8230; <a href="https://blog.sephiroth.it/2009/12/23/flex-3-tree-double-click-to-edit/" class="more-link">Continue reading <span class="screen-reader-text">Flex 3 Tree double-click to edit</span></a>]]></description>
										<content:encoded><![CDATA[<p><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;">Some people asked about changing the default editing behavior of a Flex 3 Tree control so  that item editing starts on a double-click event instead of the default single click.</span></p>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;">Indeed it has been covered several times on forums or mailing list, but it&#8217;s faster to create a simple script than search for it sometimes.</span></div>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;"><br />
 </span></div>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;">Here&#8217;s the files:</span></div>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;"><a title="Tree Double Click source" href="/wp-content/uploads/2009/12/src.zip">Download Source</a></span></div>
<div></div>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;">Here&#8217;s the live demo:</span></div>
<div><a href="/wp-content/uploads/2009/12/tree_double_click.swf"><img decoding="async" class="size-full wp-image-1172" title="Tree double click" src="https://blog.sephiroth.it/wp-content/uploads/2009/12/Screen-shot-2010-06-24-at-9.54.14-AM.png" alt="" width="199" height="188" /></a></div>
<div><span style="font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif;"><br />
 </span></div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/12/23/flex-3-tree-double-click-to-edit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Download flash camp presentation</title>
		<link>https://blog.sephiroth.it/2009/09/08/download-flash-camp-presentation/</link>
					<comments>https://blog.sephiroth.it/2009/09/08/download-flash-camp-presentation/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 08 Sep 2009 15:42:21 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[scripting languages]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex camp]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[presentation]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=278</guid>

					<description><![CDATA[I&#8217;m publishing here the pdf of the slides me and Gabriele used in the Flash Camp in Rimini last Saturday, if someone is interested. You can download the pdf here:&#160;flex camp.pdf P.S. Saturday night was really great, thank you everyone &#240;&#159;&#153;&#130;]]></description>
										<content:encoded><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><br />
<a href="/wp-content/uploads/2009/09/flex_camp.pdf"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-424" title="Screen shot 2009-09-08 at 8.31.25 AM" src="http://ve.m5yn67dl.vesrv.com/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.31.25-AM.png" alt="" width="400" height="299" srcset="https://blog.sephiroth.it/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.31.25-AM.png 400w, https://blog.sephiroth.it/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.31.25-AM-300x224.png 300w, https://blog.sephiroth.it/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.31.25-AM-150x112.png 150w" sizes="(max-width: 400px) 100vw, 400px" /></a><br />
</span></p>
<div>
<div style="text-align: left;">I&#8217;m publishing here the pdf of the slides me and Gabriele used in the <a href="http://www.actionscript.it/showVetrina.cfm?id=58">Flash Camp</a> in Rimini last Saturday, if someone is interested.</div>
<div style="text-align: left;">You can download the pdf here: <a href="/wp-content/uploads/2009/09/flex_camp.pdf">flex camp.pdf</a></div>
</div>
<div>P.S. Saturday night was really great, thank you everyone 🙂</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/09/08/download-flash-camp-presentation/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>[Bindable]? No, thanks</title>
		<link>https://blog.sephiroth.it/2009/07/25/bindable-no-thanks/</link>
					<comments>https://blog.sephiroth.it/2009/07/25/bindable-no-thanks/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sun, 26 Jul 2009 01:20:08 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[actioscript]]></category>
		<category><![CDATA[bindable]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=276</guid>

					<description><![CDATA[Working on huge projects sometimes let you take long optimization sessions. During one of these sessions I was trying to find a way to optimize a bunch of code which was taking too long time to process. The big big bottleneck I discovered, and I didn&#8217;t know before (my fault), was the **[Bindable]** attribute of &#8230; <a href="https://blog.sephiroth.it/2009/07/25/bindable-no-thanks/" class="more-link">Continue reading <span class="screen-reader-text">[Bindable]? No, thanks</span></a>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-thumbnail wp-image-394" style="margin: 4px;" title="flash_builder_logo" src="https://blog.sephiroth.it/wp-content/uploads/2010/01/flash_builder_logo-150x150.png" alt="" width="150" height="150" srcset="https://blog.sephiroth.it/wp-content/uploads/2010/01/flash_builder_logo-150x149.png 150w, https://blog.sephiroth.it/wp-content/uploads/2010/01/flash_builder_logo-64x64.png 64w, https://blog.sephiroth.it/wp-content/uploads/2010/01/flash_builder_logo.png 300w" sizes="(max-width: 150px) 100vw, 150px" />Working on huge projects sometimes let you take long optimization sessions.<br />
 During one of these sessions I was trying to find a way to optimize a bunch of code which was taking too long time to process.<br />
 The big big bottleneck I discovered, and I didn&#8217;t know before (my fault), was the **[Bindable]** attribute of one of the classes included in the process.<br />
 This process was creating something like 1 million instances of this class during its life. After a first optimization in which I created an object pooling, thus reducing the total execution time from 16 seconds to 13, I found this incredible trick which reduced the total execution time to **1 second!!**</p>
<p>Let&#8217;s say you have a class like this:</p>
<p><code lang="actionscript3">package it.sepy.test<br />
{</p>
<p>	[Bindable]<br />
	public class RGB<br />
	{<br />
		private var _blue: int;<br />
		private var _green: int;<br />
		private var _red: int;</p>
<p>		public function RGB()<br />
		{<br />
		}</p>
<p>		public function get blue(): int<br />
		{<br />
			return _blue;<br />
		}</p>
<p>		public function set blue( v: int ): void<br />
		{<br />
			_blue = v;<br />
		}</p>
<p>		public function get green(): int<br />
		{<br />
			return _green;<br />
		}</p>
<p>		public function set green( v: int ): void<br />
		{<br />
			_green = v;<br />
		}</p>
<p>		public function get red(): int<br />
		{<br />
			return _red;<br />
		}</p>
<p>		public function set red( v: int ): void<br />
		{<br />
			_red = v;<br />
		}<br />
	}<br />
}<br />
</code></p>
<p>and a simple script which create 100000 instances of this class (my script wasn&#8217;t like this, but for simplicity I&#8217;m doing this example):</p>
<p><code lang="actionscript3"><br />
package<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.system.System;<br />
	import it.sepy.test.Pool;<br />
	import it.sepy.test.RGB;</p>
<p>	public class test extends Sprite<br />
	{<br />
		public function test()<br />
		{<br />
			startTest();<br />
		}</p>
<p>		private function startTest(): void<br />
		{<br />
			var t1: Number = new Date().getTime();<br />
			for ( var i: int = 0; i < 100000; i++ )
			{
				var rgb: RGB = new RGB();
				rgb.red = i % 255;
				rgb.green = i % 255;
				rgb.blue = i % 255;
			}

			var t2: Number = new Date().getTime();
			trace( 'total execution time:', ( t2 - t1 ), 'ms' );
			trace( 'memory usage:', System.totalMemory / 1024, 'kb' );
		}
	}
}
</code></p>
<p>now launch the script and in the output I have this result<br />
 <strong> total execution time: 2381 ms<br />
 memory usage: 5924 kb</strong></p>
<p>NOW. Remove the **[Bindable]** property from the RGB class and launch again the test script. See at the output console and the new results are:<br />
 <strong> total execution time: 236 ms<br />
 memory usage: 2720 kb</strong></p>
<p>So, I know that bindable were not created for this kind of jobs, but if using it make 10 time slower my scripts, then I don't see any valid reason to use it anywhere.</p>
<p></code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/07/25/bindable-no-thanks/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Java 6 Update 10 breaks Flex compiler!</title>
		<link>https://blog.sephiroth.it/2008/09/12/java-6-update-10-breaks-flex-compiler/</link>
					<comments>https://blog.sephiroth.it/2008/09/12/java-6-update-10-breaks-flex-compiler/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sat, 13 Sep 2008 00:04:39 +0000</pubDate>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[java]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=262</guid>

					<description><![CDATA[I just want to share this problem I found so maybe someone can save some time.. Today while surfing the net I received a notification of an update of my Java installation to the Update 10 in order to see correctly the contents of that site.. bla bla bla.. Sometime later I switched to Flex &#8230; <a href="https://blog.sephiroth.it/2008/09/12/java-6-update-10-breaks-flex-compiler/" class="more-link">Continue reading <span class="screen-reader-text">Java 6 Update 10 breaks Flex compiler!</span></a>]]></description>
										<content:encoded><![CDATA[<p><a href="https://blog.sephiroth.it/wp-content/uploads/2008/09/java-update-10.png"><img loading="lazy" decoding="async" class="alignleft size-full wp-image-1127" style="margin: 4px;" title="java-update-10" src="https://blog.sephiroth.it/wp-content/uploads/2008/09/java-update-10.png" alt="" width="50" height="59" /></a>I just want to share this problem I found so maybe someone can save some time..</p>
<p>Today while surfing the net I received a notification of an update of my Java installation to the Update 10 in order to see correctly the contents of that site.. bla bla bla..</p>
<p>Sometime later I switched to Flex and at the first execution of my ant script for compiling a flex project I suddenly received this beautiful error:<br />
<code>[exec] Error: java/security/MessageDigest<br />
[exec] java.lang.NoClassDefFoundError: java/security/MessageDigest<br />
[exec]     at java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source)<br />
[exec]     at java.io.ObjectStreamClass.access$100(Unknown Source)<br />
[exec]     at java.io.ObjectStreamClass$1.run(Unknown Source)<br />
[exec]     at java.security.AccessController.doPrivileged(Native Method)<br />
[exec]     at java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source)<br />
[exec]     at java.io.ObjectStreamClass.initNonProxy(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readClassDesc(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readClassDesc(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readObject0(Unknown Source)<br />
[exec]     at java.io.ObjectInputStream.readObject(Unknown Source)<br />
[exec]     at flex.util.SerializedTemplateFactory.load(SerializedTemplateFactory.java:30)<br />
[exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:162)<br />
[exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:151)<br />
[exec]     at flex2.compiler.util.VelocityManager.getTemplate(VelocityManager.java:137)<br />
[exec]     at flex2.compiler.as3.genext.GenerativeSecondPassEvaluator.generateSupportCode(GenerativeSecondPassEvaluator.java:256)<br />
[exec]     at flex2.compiler.as3.genext.GenerativeSecondPassEvaluator.modifySyntaxTree(GenerativeSecondPassEvaluator.java:355)<br />
[exec]     at flex2.compiler.as3.binding.BindableSecondPassEvaluator.evaluate(BindableSecondPassEvaluator.java:102)<br />
[exec]     at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)<br />
[exec]     at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:338)<br />
[exec]     at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)<br />
[exec]     at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:923)<br />
[exec]     at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)<br />
[exec]     at flex2.compiler.as3.genext.GenerativeExtension.parse2(GenerativeExtension.java:114)<br />
[exec]     at flex2.compiler.as3.Compiler.parse2(Compiler.java:386)<br />
[exec]     at flex2.compiler.API.parse2(API.java:2390)<br />
[exec]     at flex2.compiler.API.parse2(API.java:2348)<br />
[exec]     at flex2.compiler.API.batch2(API.java:375)<br />
[exec]     at flex2.compiler.API.batch(API.java:1117)<br />
[exec]     at flex2.compiler.API.compile(API.java:1290)<br />
[exec]     at flex2.compiler.API.compile(API.java:1210)<br />
[exec]     at flex2.tools.Compc.compc(Compc.java:158)<br />
[exec]     at flex2.tools.Compc.main(Compc.java:41)</code><br />
so I tried also to compile another project before go crazy, but I got this another java funny error, which was more or less unreadable as the previous one!</p>
<p>Fortunately I remembered the update I did of Java! And in fact after remove that update everything worked again!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2008/09/12/java-6-update-10-breaks-flex-compiler/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Flex Builder on Ubuntu Hardy 8</title>
		<link>https://blog.sephiroth.it/2008/01/29/flex-builder-on-ubuntu-hardy-8/</link>
					<comments>https://blog.sephiroth.it/2008/01/29/flex-builder-on-ubuntu-hardy-8/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 30 Jan 2008 00:02:09 +0000</pubDate>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=244</guid>

					<description><![CDATA[I don&#8217;t know exactly why, but the first time I found the link of an article about the first Ubuntu 8 hardy alpha release I couldn&#8217;t wait anymore and so I immediately upgraded my distribution.. I can&#8217;t resist to alphas and betas! damn! Anyway, a part the obvious problems related to an alpha version, such &#8230; <a href="https://blog.sephiroth.it/2008/01/29/flex-builder-on-ubuntu-hardy-8/" class="more-link">Continue reading <span class="screen-reader-text">Flex Builder on Ubuntu Hardy 8</span></a>]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" title="Ubuntu" src="http://www.ubuntu.com/themes/ubuntu07/images/icon-ubuntu.png" border="0" alt="Ubuntu" hspace="3" vspace="3" width="40" height="40" align="left" />I don&#8217;t know exactly why, but the first time I found the link of an article about the first <a title="ubuntu hardy" href="http://www.ubuntu.com/testing/hardy/alpha3" target="_blank">Ubuntu 8 hardy alpha</a> release I couldn&#8217;t wait anymore and so I immediately upgraded my distribution..<br />
I can&#8217;t resist to alphas and betas! damn!</p>
<p>Anyway, a part the obvious problems related to an alpha version, such as video card, mouse etc.. the most frustrating thing was the fact my eclipse installation was corrupted.. I reinstalled eclipse again and downloaded again <a title="Flex builder linux" href="http://labs.adobe.com/technologies/flex/flexbuilder_linux/" target="_blank">flex builder for linux</a>.<br />
But when trying to install Flex builder  I received a really nonsense java exception error, which more or less was:</p>
<p><strong>xcb_xlib_unlock: Assertion `c-&gt;xlib.lock&#8217; failed</strong></p>
<p>After some google searches I found out the solution for my problems ( I&#8217;m posting here in case someone else is so crazy to upgrade his ubuntu version with a flex builder installed into ):</p>
<p>In a terminal window:<br />
<code>sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so</code><br />
Then restarting flex builder bin installation everything worked again and now I&#8217;m happy with my flex builder linux version again 🙂</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2008/01/29/flex-builder-on-ubuntu-hardy-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Releases: BlazeDS &#038; Flex Builder 3 Beta 3</title>
		<link>https://blog.sephiroth.it/2007/12/13/releases-blazeds-flex-builder-3-beta-3/</link>
					<comments>https://blog.sephiroth.it/2007/12/13/releases-blazeds-flex-builder-3-beta-3/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Thu, 13 Dec 2007 19:37:50 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[blazedb]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=243</guid>

					<description><![CDATA[Today is a good day for announcements! I&#8217;ve just read the Adobe plans to release, as opensource (LGPL 3?), on labs its Remoting and Messages technologies under the codename BlazeDS. Moreover Adobe published AMF binary data protocol specifications ( the technology on which the BlazeDS remoting implementation is based). The source code will be available &#8230; <a href="https://blog.sephiroth.it/2007/12/13/releases-blazeds-flex-builder-3-beta-3/" class="more-link">Continue reading <span class="screen-reader-text">Releases: BlazeDS &#038; Flex Builder 3 Beta 3</span></a>]]></description>
										<content:encoded><![CDATA[<p>Today is a good day for announcements!<br />
I&#8217;ve just read the Adobe plans to release, as opensource (LGPL 3?), on labs its Remoting and Messages technologies under the codename <a href="http://labs.adobe.com/technologies/blazeds/" target="_blank">BlazeDS</a>.<br />
Moreover Adobe published <a href="http://download.macromedia.com/pub/labs/amf/amf3_spec_121207.pdf" target="_blank">AMF binary data protocol specifications </a>( the technology on which the BlazeDS remoting implementation is based).<br />
The source code will be available for download in early 2008</p>
<p>Second announcement is the release on labs of <a href="http://labs.adobe.com/technologies/flex/" target="_blank">Adobe Flex Builder 3 Beta 3</a> (M4). Cool, I&#8217;m working almost all the time with flex!.. but why only mac and pc downloads are available? The Linux version is still the alpha released on 12 October!</p>
<p>Actually I almost switched to <a href="http://www.ubuntu.com" target="_blank">ubuntu</a>, moreover the fact that there is Flex Builder also for Linux allowed me to spend more and more time on my ubuntu partition and I really feel satisfied. Flex Builder for linux is more and more stable than all the other Flex betas for Windows or Mac ( even if the more I use eclipse and the more I hate it&#8230; ), so why give us only that candy?</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/12/13/releases-blazeds-flex-builder-3-beta-3/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Flex Canvas bug when it is zoomed in and &#8220;horizontalCenter = 0&#8221;</title>
		<link>https://blog.sephiroth.it/2007/11/14/flex-canvas-bug-when-it-is-zoomed-in-and-horizontalcenter-0/</link>
					<comments>https://blog.sephiroth.it/2007/11/14/flex-canvas-bug-when-it-is-zoomed-in-and-horizontalcenter-0/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 14 Nov 2007 20:37:19 +0000</pubDate>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[bug]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=238</guid>

					<description><![CDATA[Recently I came across a Flex bug when working on canvas. If you have a canvas with an object centered inside ( horizontal or vertical, it&#8217;s the same ) and scale this object the result is that the canvas will clip left and top its contents! To understand what I mean see this example and &#8230; <a href="https://blog.sephiroth.it/2007/11/14/flex-canvas-bug-when-it-is-zoomed-in-and-horizontalcenter-0/" class="more-link">Continue reading <span class="screen-reader-text">Flex Canvas bug when it is zoomed in and &#8220;horizontalCenter = 0&#8221;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Recently I came across a Flex <strong>bug</strong> when working on canvas. If you have a canvas with an object centered inside ( horizontal or vertical, it&#8217;s the same ) and scale this object the result is that the canvas will clip left and top its contents!<br />
To understand what I mean see this example and try to scale the image:</p>
<p>[kml_flashembed publishmethod=&#8221;static&#8221; fversion=&#8221;10.0.22&#8243; movie=&#8221;https://blog.sephiroth.it/wp-content/uploads/2007/11/canvas_bug.swf&#8221; width=&#8221;250&#8243; height=&#8221;290&#8243; targetclass=&#8221;flashmovie&#8221;]</p>
<p><a href="http://adobe.com/go/getflashplayer"><img decoding="async" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
<p>[/kml_flashembed]</p>
<p>And this is the code used:</p>
<p><code lang="xml"><br />
< ?xml version="1.0" encoding="utf-8"?><br />
<mx:application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0"><br />
	<mx:number id="scale">1</mx:number><br />
	<mx:vbox horizontalCenter="0" verticalCenter="0"><br />
		<mx:hbox width="100%" horizontalCenter="0"><br />
			<mx:label text="Zoom" /><mx:hslider value="{scale}" change="{scale = HSlider(event.target).value}" width="100%" /><br />
		</mx:hbox><br />
		<mx:canvas width="200" height="200"
				   backgroundColor="#EEEEEE" borderColor="#666666"
				   borderStyle="solid" verticalCenter="0" horizontalCenter="0" ><br />
			<mx:image id="image" source="@Embed('../assets/test.png')" scaleX="{scale}" scaleY="{scale}"
					  verticalCenter="0" horizontalCenter="0" /><br />
		</mx:canvas><br />
	</mx:vbox><br />
</mx:application><br />
</code></p>
<p>As you can see once the image is scaled and it&#8217;s bigger that its parent, you wont be able to see it top left corner anymore. <strong>This is an annoying bug for me!</strong></p>
<p>Later I found that someone opened a ticket in the Flex bug management system here: <a title="JIRA-13009" href="http://bugs.adobe.com/jira/browse/SDK-13009" target="_blank">http://bugs.adobe.com/jira/browse/SDK-13009</a><br />
A couple of days ago I received a notification that the bug has been closed&#8230; and incredible they closed it as NOT A BUG!<br />
I can understand that finding the bug in a file with 5000 and more lines of code it&#8217;s not easy and can cause horrible headache, but the reason they gave it&#8217;s nosense! It&#8217;s completely a different thing that the reason of this bug.</p>
<p>Moreover what&#8217;s the connection between flash and html?</p>
<p>Flex have been designed since the 1.0 version as a framework for building RIA (Rich Internet Applications).<br />
A RIA have to behave as a desktop application that runs using the web browser. One of the advantages of Flex agains Ajax is that the first technology provide to the user a behaviour which is much more similar to desktop applications that the one provided using HTML+Javascript. And so my questions is: why should Flex behave like HTML when one of its most important features is to be different from HTML ?<br />
Flex behaves like other SDKs used to develop desktop apps in many situations which are much less important than the one hilighted above. So why close this bug (yes. it is a bug) providing as explanation that it is correct because it behaves like HTML ?</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/11/14/flex-canvas-bug-when-it-is-zoomed-in-and-horizontalcenter-0/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
			</item>
		<item>
		<title>Flex Frameworks</title>
		<link>https://blog.sephiroth.it/2007/10/22/flex-frameworks/</link>
					<comments>https://blog.sephiroth.it/2007/10/22/flex-frameworks/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 23 Oct 2007 06:15:11 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[cairngorm]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[puremvc]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=236</guid>

					<description><![CDATA[Luke Bayes and Ali Mills of PatternPark made a presentation for the Silicon Valley Flex Users Group (SilvaFUG) of 9 different frameworks and toolkits for creating Flex applications: Cairngorm, PureMVC, ARP, MVCS, Flest, Model-Glue: Flex, ServerBox Foundry, Guasax, and Slide. Watch the presentation: http://adobechats.adobe.acrobat.com/p12266504/ See the slides: http://www.asserttrue.com/files/ApplicationFrameworks/index.html Their Conclusion? &#8220;PureMVC by Cliff Hall beats &#8230; <a href="https://blog.sephiroth.it/2007/10/22/flex-frameworks/" class="more-link">Continue reading <span class="screen-reader-text">Flex Frameworks</span></a>]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignleft size-thumbnail wp-image-1061" style="margin: 4px;" title="puremvc-logo" src="https://blog.sephiroth.it/wp-content/uploads/2007/10/puremvc-logo-150x150.jpg" alt="" width="150" height="150" srcset="https://blog.sephiroth.it/wp-content/uploads/2007/10/puremvc-logo-150x150.jpg 150w, https://blog.sephiroth.it/wp-content/uploads/2007/10/puremvc-logo.jpg 200w" sizes="auto, (max-width: 150px) 100vw, 150px" />Luke Bayes and Ali Mills of <a title="Pattern Park" href="http://patternpark.com/" target="_blank">PatternPark</a> made a presentation for the Silicon Valley Flex Users Group (<a title="SilVaFUG" href="http://www.silvafug.org/" target="_blank">SilvaFUG</a>) of 9 different frameworks and toolkits for creating Flex applications: <a href="http://labs.adobe.com/wiki/index.php/Cairngorm">Cairngorm</a>, <a href="http://www.puremvc.org/">PureMVC</a>, <a href="http://osflash.org/projects/arp"><span class="caps">ARP</span></a>, <a href="http://www.adobe.com/devnet/flex/articles/blueprint.html"><span class="caps">MVCS</span></a>, <a href="http://code.google.com/p/flest/">Flest</a>, <a href="http://www.model-glue.com/flex.cfm">Model-Glue: Flex</a>, <a href="http://www.servebox.com/foundry/doku.php">ServerBox Foundry</a>, <a href="http://www.guasax.com/">Guasax</a>, and <a href="http://www.memorphic.com/news/">Slide</a>.</p>
<p>Watch the presentation: <a href="http://adobechats.adobe.acrobat.com/p12266504/" target="_blank">http://adobechats.adobe.acrobat.com/p12266504/</a><br />
See the slides: <a href="http://www.asserttrue.com/files/ApplicationFrameworks/index.html" target="_blank">http://www.asserttrue.com/files/ApplicationFrameworks/index.html</a></p>
<p><strong>Their Conclusion?</strong> <em><strong><br />
&#8220;</strong>PureMVC by Cliff Hall beats out the alternatives</em>&#8220;.</p>
<ul>
<li>Composition over inheritence</li>
<li>Liberal use of Interfaces</li>
<li>Indirection is used but not overwhelming</li>
<li>Instance members hide singleton references from application code</li>
<li>MXML views can be extremely thin</li>
<li>Benefits of Cairngorm, with few of the disadvantages.</li>
</ul>
<p>I must admit I never used PureMVC, the only framework I&#8217;m currently using is Cairngorm, even if I bookmarked the pureMVC page long time ago promising myself to watch it more in deep. Now it&#8217;s time to keep the promise.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/10/22/flex-frameworks/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
