<?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/category/blog/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:48 +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>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>Flash camp on the beach (Rimini)</title>
		<link>https://blog.sephiroth.it/2009/08/19/flash-camp-on-the-beach-rimini/</link>
					<comments>https://blog.sephiroth.it/2009/08/19/flash-camp-on-the-beach-rimini/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 19 Aug 2009 15:47:19 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[actioscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex camp]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[rimini]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=277</guid>

					<description><![CDATA[The new Flash camp will be in Italy, Rimini, and will take place on 5th of September. Participation is free! Order your ticket via&#160;eventbrite. The meeting will take place at Hotel Sporting Viale Vespucci, 20 47900 Rimini (Italy). Speakers As a camp everybody can join us as a speaker, today we have a great group &#8230; <a href="https://blog.sephiroth.it/2009/08/19/flash-camp-on-the-beach-rimini/" class="more-link">Continue reading <span class="screen-reader-text">Flash camp on the beach (Rimini)</span></a>]]></description>
										<content:encoded><![CDATA[<p>The new Flash camp will be in Italy, Rimini, and will take place on 5th of September. Participation is free!</p>
<div>Order your ticket via <a href="http://flashcamponthebeach-fbevent.eventbrite.com/">eventbrite</a>.</div>
<div>
<div>The meeting will take place at Hotel Sporting Viale Vespucci, 20 47900 Rimini (Italy).</div>
<div></div>
<div><strong>Speakers</strong></div>
<div>As a camp everybody can join us as a speaker, today we have a great group of speakers already confirmed:</div>
<div>
<ul>
<li>Jaco Pixeldump (www.pixeldump.org)</li>
<li>John Lindquist (http://pv3d.org, http://flex4.org)</li>
<li>Joost Nuijten</li>
<li>Eros Marcon (actionscript.it)</li>
<li>Simon Slooten (www.simonslooten.com)</li>
<li>Matteo Lanzi (aka Gallo_Teo flex-developers.org)</li>
<li>Adam Flater</li>
<li>Michael Labriola (http://blogs.digitalprimates.net/codeSlinger/)</li>
<li>Rich Tretola (http://blog.everythingflex.com)</li>
<li>Gabriele Farina (www.sephiroth.it)</li>
<li>Alessandro Crugnola (www.sephiroth.it)</li>
<li>Michael Plank (www.powerflasher.de)</li>
<li>Rich Tretola</li>
<li>Matt Chotin</li>
<li>Giorgio Natili (flex-developers.org)</li>
</ul>
</div>
<div></div>
<div><strong>Agenda</strong></div>
<div>What&#8217;s New in Flex 4 (Matt Chotin) 9:00 &#8211; 9:45</div>
<div>Most of us have heard that the Flash Platform tools are getting a major upgrade with Flex 4.  We&#8217;ll give a high-level overview of what&#8217;s coming in the three major components: Flash Catalyst, Flash Builder, and the Flex Framework.</div>
<div></div>
<div>Concepting Rich Internet Applications (Joost Nuijten) 9:50 &#8211; 10:35</div>
<div>The pitfall of Flex applications is to thrown in a bunch of buttons of fields, the Flex skin looks nice, and the say: &#8220;There we have another Rich Internet Application&#8221;. To my opinion it is much more than that. It&#8217;s about creating the ultimate user experience by mixing interaction design, emotion and common sense.</div>
<div>&#8220;One key element of a good ergonomic web application, or at least a sign that it works ergonomically, is that you want to stay there &#8212; like a big old comfortable chair that wraps you up and you just don&#8217;t want to leave it, ever&#8230; (well, at least, maybe, for a little while more&#8230;)&#8221;</div>
<div>(SyMetric Sciences, Inc., 1999)</div>
<div></div>
<div>Flex 4 in 3D: The UI of the Future is Now! (John Lindquist) 10:40 &#8211; 11:25</div>
<div>Ok, the title might be a bit over-the-top, but the new 3D features of Flash Player 10 do allow us to pull off some pretty cool tricks. This session will cover step-by-step how to take advantage of the the 3D api. We&#8217;ll start by creating our own custom and reusable 3D layouts and work our way to creating 3D components. Once we&#8217;ve brought everything together into a full 3D application, we&#8217;ll end with a  discussion of the advantages and disadvantages of using 3D in user interfaces.</div>
<div></div>
<div>TESTING WITH FLEX AND FLASH BUILDER (Michael Labriola) 11:30 &#8211; 12:15</div>
<div>Unit testing in Flex is taking a giant leap forward. First learn about the latest technologies, their integration into the Flex developers workflow and the promises offered by these advancements. Then learn how to write tests using these new methods, how those tests can be used effectively and the theory behind their use. Finally, learn about the extension points and how numerous testing projects can now converge to offer solutions now and into the future of Flex.</div>
<div></div>
<div>FDT &#8211; Pure Coding Comfort (Michael Plank) 12:20 &#8211; 13:00</div>
<div>You want to improve your ActionScript/Flex development workﬂow and boost your programming</div>
<div>efﬁciency? Michael demonstrates how the coding ﬂow completely changes with FDT by using</div>
<div>features like Quick Fixes and Auto Completion. FDT is an Eclipse based IDE for ActionScript</div>
<div>and MXML development that provides pure coding comfort.</div>
<div>Not only professionals prefer working with FDT, the tool is also appropriate for beginners</div>
<div>because of supporting features like e. g. live error highlighting. A short speed coding example</div>
<div>on stage illustrates how fast the coding workﬂow can be with FDT.</div>
<div></div>
<div>Mate &#8211; The beauty of a simple framework (Simon Slooten) 13:30 &#8211; 14:15</div>
<div>Mate is a Flex framework that is simple, elegant, scalable and simply beautiful. In this session you will get an introduction to Mate, as well as look at a Flex Application that uses Mate</div>
<div></div>
<div>ByteArray:  extend your swf apps with extra features (Marco Fusetti aka Jaco) 14:20 &#8211; 15:05</div>
<div>ByteArray is a great flash player feature that let you load/treat/save binary data.</div>
<div>Let&#8217;s look into some techniques and examples on adding features such swf black box, sound data, external swf inspection and more.</div>
<div></div>
<div>Using Merapi (Adam Flater) 15:10 &#8211; 15:55</div>
<div>An introduction to native hardware and software integration in Flash</div>
<div></div>
<div>Flex sdk (Matteo Lanzi aka Gallo Teo) 16:00 &#8211; 16:45</div>
<div>How to patch it to solve common architectural problems and improve performance</div>
<div>Flash Catalyst/Flash Builder 4 ˆ Designer/developer Workflow (Eros Marcon) 16:50 &#8211; 17:35</div>
<div>How to design and optimize an artwork for FC, importing design in FC, adding interaction, working with states and transitions, wiring FC interactive UI with real data in Flash Builder 4</div>
<div></div>
<div>Extending flash applications (Alessandro Crugnola aka Septhiroth and Gabriele Farina) 17:40 &#8211; 18:25</div>
<div>A quick walkthrough from static plugins to dynamic scripting</div>
<div></div>
<div>Java, Flex and Model View Presenter (Giorgio Natili) 18:30 &#8211; 19:05</div>
<div>Flex loves Java applications that expose API deployed under Blaze DS, follow us in a complete tour that shows the process to define good API for a Flex / Air application that follow Model View Presenter design pattern and get the key points of GUI Architectures for responsive applications.</div>
<div></div>
<div>Flex image uploading and manipulation via Pixel Bender (Rich Tretola) 19:10 &#8211; 19:40</div>
<div>Flash Player 10 introduced some new features including the ability to write a file to the users file system as well as the usage of Pixel Bender filters. In this session you will see how to upload an image within a Flex application,  filter the image with a Pixel Bender filter, and then use the JPEGEncoder class to encode the filter image to a ByteArray.</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/08/19/flash-camp-on-the-beach-rimini/feed/</wfw:commentRss>
			<slash:comments>0</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>Multiple objects using Senocular TransformTool</title>
		<link>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/</link>
					<comments>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sun, 21 Jun 2009 19:32:00 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[getBounds]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[senocular]]></category>
		<category><![CDATA[transform]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=275</guid>

					<description><![CDATA[Senocular TransformTool is one of the best and most used components around the net. It is really useful for those (include me) who don&#8217;t want to fight against Matrix, concatenation of Matrix and all those painful stuff&#8230; The only &#8216;lack&#8217; of that component is that it does not support multiple objects as target. If you &#8230; <a href="https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/" class="more-link">Continue reading <span class="screen-reader-text">Multiple objects using Senocular TransformTool</span></a>]]></description>
										<content:encoded><![CDATA[<p>Senocular <a href="http://www.senocular.com/index.php?id=1.372" target="_blank">TransformTool</a> is one of the best and most used components around the net. It is really useful for those (include me) who don&#8217;t want to fight against Matrix, concatenation of Matrix and all those painful stuff&#8230;</p>
<p>The only &#8216;lack&#8217; of that component is that it does not support multiple objects as target. If you want to transform n array of elements at the same time you should have all those elements in the same parent DisplayObjectContainer and then set that parent as target of TransformTool.</p>
<p>But maybe sometimes this is not possible due to various reason and you want to use different items with different parents as dataprovider.</p>
<p>This is the solution I actually use for that particular situation (Remember that I&#8217;m using a <a title="senocular.com TransformTool modification" href="https://blog.sephiroth.it/2007/07/10/senocular-com-transformtool-modification/">modified version</a> of the TransformTool)</p>
<p>This is the final result: ( Ctrl+click on the tree leaves to multiple selection )</p>
<figure id="attachment_1157" aria-describedby="caption-attachment-1157" style="width: 395px" class="wp-caption alignnone"><a href="/wp-content/uploads/2009/06/senocular_multiple.swf"><img loading="lazy" decoding="async" class="size-full wp-image-1157" title="Senocular Transform Tool" src="https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM.png" alt="" width="395" height="295" srcset="https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM.png 395w, https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM-300x224.png 300w" sizes="auto, (max-width: 395px) 100vw, 395px" /></a><figcaption id="caption-attachment-1157" class="wp-caption-text">Live Demo of the Trasform Tool using multiple objects</figcaption></figure>
<p>( <a href="/wp-content/uploads/2009/06/senocular_multiple.zip">Here you can download</a> download the source files ).</p>
<p>In few words the solution I found is this:</p>
<p>Create a temporary layer which will be the TransformTool target.<br />
For every item in the selection Array create a temporary shape with the size of the getBounds() of the real object. Store this shape into the temporary layer, assigning to it the concatenated matrix of the real object.</p>
<p>Once there&#8217;s a transformation of the temporary layer get every shape transform matrix and assign back to the original object.</p>
<p>Probably there are many and better solutions to do the same, this is just the one I found, maybe someone has better approach to this problem (and he is welcome here!)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/feed/</wfw:commentRss>
			<slash:comments>1</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>
	</channel>
</rss>
