<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>FlashPad</title>
	<link>http://durej.com</link>
	<description>ActionScript and Beyond...</description>
	<pubDate>Fri, 11 Jun 2010 19:10:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Flex case file nu 261.. &#8220;The mysterious case of disapearing type&#8221;</title>
		<link>http://durej.com/?p=127</link>
		<comments>http://durej.com/?p=127#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:47:25 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex 4]]></category>

		<category><![CDATA[Personal]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[actiosncript]]></category>

		<category><![CDATA[Flash builder]]></category>

		<category><![CDATA[mxml]]></category>

		<guid isPermaLink="false">http://durej.com/?p=127</guid>
		<description><![CDATA[
This example is taken straight from Flex 4 Cookbook. It demonstrates how you can search inside of data grid.
Works fine, that not the problem.
The problem is , once you select any cell in data grid an return the the textfield.. you are unable to type anything! Tried different flex 4 sdks tried testing in IE, FF, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://durej.com/flex/txt/" title="Sample" target="_blank"><img src="http://durej.com/wp-content/uploads/2010/06/example.jpg" align="left" height="204" width="314" vspace="5" hspace="8" border="0" alt="sample" /></a>
<p style="text-align: left"><a href="http://durej.com/flex/txt/" title="Sample" target="_blank">This example</a> is taken straight from Flex 4 Cookbook. It demonstrates how you can search inside of data grid.</p>
<p style="text-align: left">Works fine, that not the problem.</p>
<p>The problem is , once you select any cell in data grid an return the the textfield.. you are unable to type anything! Tried different flex 4 sdks tried testing in IE, FF, Chrome .. no luck.
<p style="text-align: left">I had it happening in a different project, where I am working with much more complex data grid with custom item renderers and editors, so I chose Flex 4 cookbook example to test if it&#8217;s happening in a very simple scenario as well. Also that book was written by Flex experts, so I wanted to confirm it&#8217;s not me using the Flex  in the wrong way..</p>
<p style="text-align: left"> EDIT: It seems it&#8217;s not happening on all computers? On my colleague&#8217;s machine this works fine it seems.Does anybody have the same problem as me ?</p>
<p style="text-align: left">EDIT2: Solution found!This weird behaviour was down to the flash plugin/active X..
<p style="text-align: left">it wasn&#8217;t working correctly in version 10,1,50,426 .. but when I upgraded to 10,1,53,64  all works as expected! Must have been some glitch in the plugin.</p>
<p style="text-align: left">anyway, I&#8217;ll leave this post here, in case somebody will have similar problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=127</wfw:commentRss>
		</item>
		<item>
		<title>Programmatic datagrid itemEditors in Flash Builder / Flex 4</title>
		<link>http://durej.com/?p=124</link>
		<comments>http://durej.com/?p=124#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:38:09 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex 4]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[actiosncript]]></category>

		<category><![CDATA[Flash builder]]></category>

		<category><![CDATA[mxml]]></category>

		<guid isPermaLink="false">http://durej.com/?p=124</guid>
		<description><![CDATA[While building a multilingual copy editor module for Flex 4 CMS system, I&#8217;ve encountered a following problem:
I have a editable datagrid with variable heights.The problem is, default itemEditor for a datagrid is an input textfield which is a single line , but I need a multiline editor such as text area.
Solution is simple of course, [...]]]></description>
			<content:encoded><![CDATA[<p>While building a multilingual copy editor module for Flex 4 CMS system, I&#8217;ve encountered a following problem:<br />
I have a editable datagrid with variable heights.The problem is, default itemEditor for a datagrid is an input textfield which is a single line , but I need a multiline editor such as text area.</p>
<p>Solution is simple of course, you just assign a editor=&#8221;mx.controls.TextArea&#8221; in the datagrid &#8217;s column definition.</p>
<p>That might work , if you are creating a columns in mxml.</p>
<p>I however create columns dynamically..It turns out you can&#8217;t assign TextArea to a columns editor directly:</p>
<p><code>dataGridCol.itemEditor =  "mx.controls.TextArea"</code><br />
will not work as the itemEditor must implement IFactory , which TextArea (or other similar components)  do not!</p>
<p>So what can you do in this case ? Well, you could build a custom class component that does implement IFactory and give&#8217;s you a newInstance method that returns the component you need..</p>
<p>or..</p>
<p>there&#8217;s much simpler solution.You put your component definition in the  fx:declarations block like this :</p>
<p><code>&lt;fx:Declarations&gt;<br />
&lt;fx:Component id="inlineEditor"&gt;<br />
&lt;mx:TextArea /&gt;<br />
&lt;/fx:Component&gt;<br />
&lt;/fx:Declarations&gt;</code></p>
<p>and then in your code define itemEditor refering to the id attribute of fx:Component :</p>
<p><code>datagridCol.itemEditor = inlineEditor;</code></p>
<p>Simple, isn&#8217;t it.</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=124</wfw:commentRss>
		</item>
		<item>
		<title>Rough edges rectangle class</title>
		<link>http://durej.com/?p=122</link>
		<comments>http://durej.com/?p=122#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:50:38 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://durej.com/?p=122</guid>
		<description><![CDATA[For a recent project I needed to create buttons with rough edges background. Gave it a quick google and couldn&#8217;t find a class for this, so I made a new one.

It uses drawPath command so requires flash plugin ver 10.
here&#8217;s the constructor :

/**
* @param w: width
* @param h: height
* @param col: background color
* @param distortion: [...]]]></description>
			<content:encoded><![CDATA[<p>For a recent project I needed to create buttons with rough edges background. Gave it a quick google and couldn&#8217;t find a class for this, so I made a new one.</p>
<p><a target="_blank" href="http://durej.com/demos/roughedge/"><img src="http://durej.com/wp-content/uploads/2010/02/screenshot.jpg" alt="Demo" /></a></p>
<p>It uses drawPath command so requires flash plugin ver 10.</p>
<p>here&#8217;s the constructor :</p>
<p><font size="2"></p>
<p align="left"><font size="2" color="#143c8c"><font size="2" color="#143c8c">/**<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*</font></font><font size="2"> </font><strong><font size="2" color="#7f9fbf"><font size="2" color="#7f9fbf">@param</font></font></strong><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">w:</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">width<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*</font></font><font size="2"> </font><strong><font size="2" color="#7f9fbf"><font size="2" color="#7f9fbf">@param</font></font></strong><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">h:</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">height<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*</font></font><font size="2"> </font><strong><font size="2" color="#7f9fbf"><font size="2" color="#7f9fbf">@param</font></font></strong><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">col:</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">background</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">color<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*</font></font><font size="2"> </font><strong><font size="2" color="#7f9fbf"><font size="2" color="#7f9fbf">@param</font></font></strong><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">distortion:</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">amount</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">of</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">edges</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">distortion</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">(wawe-iness)<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*</font></font><font size="2"> </font><strong><font size="2" color="#7f9fbf"><font size="2" color="#7f9fbf">@param</font></font></strong><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">density</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">:</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">density</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">of</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">distored</font></font><font size="2"> </font><font size="2" color="#143c8c"><font size="2" color="#143c8c">vertexes<br />
</font></font><font size="2" color="#143c8c"><font size="2" color="#143c8c">*/<br />
</font></font><strong><font size="2" color="#7f0055"><font size="2" color="#7f0055">new </font></font></strong><font size="2">RoughEdgedRectangle(w,</font><font size="2"> h</font><font size="2">, col</font><font size="2">, distortion</font><font size="2">, density</font><font size="2">);<br />
</font></p>
<p><font size="2">so to create and add to stage you simply call something like :</font><font size="2">var sq:RoughEdgedRectangle = new RoughEdgedRectangle(500,250,0xFF00FF,3,100);<br />
addChild(sq);</font><font size="2"> </font></p>
<p><font size="2">I made this little <a href="http://durej.com/demos/roughedge/" title="Demo">demo app</a> that gives a visual preview of what the changing parameters does. It has view source enabled so you can download the source code.</font></p>
<p></font></p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=122</wfw:commentRss>
		</item>
		<item>
		<title>How to get FDT to ignore some &#8220;erroneous&#8221; code</title>
		<link>http://durej.com/?p=121</link>
		<comments>http://durej.com/?p=121#comments</comments>
		<pubDate>Sat, 19 Dec 2009 17:31:01 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[FDT]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://durej.com/?p=121</guid>
		<description><![CDATA[Have been using FDT for about 3 and a half years now, on many occasions I came across a code that , although perfectly compilable (both by mxmlc and flash IDE), FDT thought it contained errors.
For example when code contained some &#8220;clever&#8221; trinary operator arguments, or a javascript code segments wrapped in CDATA &#8230;
Anyway, I came across a simple [...]]]></description>
			<content:encoded><![CDATA[<p>Have been using FDT for about 3 and a half years now, on many occasions I came across a code that , although perfectly compilable (both by mxmlc and flash IDE), FDT thought it contained errors.</p>
<p>For example when code contained some &#8220;clever&#8221; trinary operator arguments, or a javascript code segments wrapped in CDATA &#8230;</p>
<p>Anyway, I came across a simple way to make FDT to ignore such code.</p>
<p>If you place the problematic code inside a /*FDT_IGNORE*/ &#8230;. /*FDT_IGNORE*/ comments, FDT will not parse such code and therefore will not mark it as code containing syntactic error. Goodbye red marks !</p>
<p>However .. on the other side, if such code contains a functions or variables that other classes refer to, FDT will not be able to find those references in the &#8220;ignored&#8221; sections.</p>
<p>So use it with caution !</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=121</wfw:commentRss>
		</item>
		<item>
		<title>Experimenting with new Adobe Social service library</title>
		<link>http://durej.com/?p=119</link>
		<comments>http://durej.com/?p=119#comments</comments>
		<pubDate>Tue, 03 Nov 2009 16:21:25 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[Social Networks]]></category>

		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://durej.com/?p=119</guid>
		<description><![CDATA[Adobe has recently unveiled their new social media library on Labs. It is a framework that allows user to connect to a several popular social media networks at once and get the information from the users profile, get a friends list, post updates, post news items etc&#8230; All in all pretty useful stuff. To get [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe has recently unveiled their new social media library on <a target="_blank" href="http://labs.adobe.com/technologies/social/" title="Adobe Labs">Labs</a>. It is a framework that allows user to connect to a several popular social media networks at once and get the information from the users profile, get a friends list, post updates, post news items etc&#8230; All in all pretty useful stuff. To get acquainted with this framework I made a little <a target="_blank" href="http://slash.lawton-staging.co.uk/social/" title="demo">demo app</a> that connects to twitter and facebook, get user&#8217;s profile info, enables to send simultaneous status update, and gets a list of friends.</p>
<p> <a target="_blank" href="http://slash.lawton-staging.co.uk/social/" title="Social Network Library Demo"><img src="http://durej.com/wp-content/uploads/2009/11/app_screenshot.jpg" alt="Social network demo" /></a></p>
<p>Here are some of the things I noticed when playing with the package:</p>
<p> Pros:</p>
<p>+ easy to implement (you don&#8217;t have to worry about parsing json, knowing REST api&#8217;s , authentication, asynchronous javascript loading / responses.. all of it is done behind the scenes for you.</p>
<p>+ easy to use :  The actual API itself is quite simple event based, not too many commands and parameters..</p>
<p>+ small in size : The file you need to embed (that acts as a framework proxy) has only about 9K!</p>
<p>Cons:</p>
<p>- reliability : This might be due to the fact this is still only a technology demo, or a connectivity issues, but I experienced quite a few connection problems (especially to a twitter api)</p>
<p>- features : Some things are not implemented (at least I didn&#8217;t see them). Like for example to get user&#8217;s last status update. You can change it / set it , but not get it ? Maybe this will be implemented later.. Or to get a news feed from Facebook.</p>
<p> - strong typing of returned value objects : This bugged me quite a bit. You get a Response object for example that contains a several value objects such as User, Identity etc.. These objects doesn&#8217;t exist in the AS3 (client side of framework) though, although they probably exist as a typed value objects in PHP or some back-end language..(I saw them strongly typed in Flex debugger) So you have to code against a documentation, or create your own client side version of these objects (if you have time)..</p>
<p> - authentication in separate html windows : there isn&#8217;t a way (or at least I didn&#8217;t see one) how to pass a user authentication data to a social network so you can log him/her automatically. The way it happens is that the new html window opens the user types in his/her login and then you get a callback and the new windows / tabs try to close automatically. This is a bit awkward, it would be much better if we could login user automatically and have a login interface in flash/flex once and then remember users login data (perhaps in SharedObject) and don&#8217;t ask for it every time he/she needs to connect..</p>
<p>Overal, despite couple of small problems, it&#8217;s seems like a great step forward to a unified share networks API that was till not virtualy non existant for a flash developers!</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=119</wfw:commentRss>
		</item>
		<item>
		<title>AttachMovie in AS3 ? Now possible! (also attachBitmapData ;)</title>
		<link>http://durej.com/?p=115</link>
		<comments>http://durej.com/?p=115#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:59:58 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[FDT]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false">http://durej.com/?p=115</guid>
		<description><![CDATA[I code in AS3 for quite a while now, and don&#8217;t get me wrong, I do love it and I NEVER want to go back to as2.
However; there are some things I wish remained in AS3 that were possible to do in AS2.
Things like &#8220;eval&#8221; and &#8220;attachMovie&#8221; comes to mind&#8230;
Why attachMovie ? Isn&#8217;t it perfectly [...]]]></description>
			<content:encoded><![CDATA[<p>I code in AS3 for quite a while now, and don&#8217;t get me wrong, I do love it and I NEVER want to go back to as2.</p>
<p>However; there are some things I wish remained in AS3 that were possible to do in AS2.</p>
<p>Things like &#8220;eval&#8221; and &#8220;attachMovie&#8221; comes to mind&#8230;</p>
<p>Why attachMovie ? Isn&#8217;t it perfectly possible to do addChild(new WhatewerClass()) ?</p>
<p>Yes and no. The problem is if you don&#8217;t develop in Flash IDE, but in more sophisticated code editors like FDT, FlashDevelop or Flex.</p>
<p>Let&#8217;s say you have a graphical asset sitting in your library, it needs no interactivity so you don&#8217;t create any class for it. It simply extends MovieClip and has a linkage name &#8220;Asset1&#8243; assign to it.</p>
<p>Now the moment , in your code you decide to attach it to your display container via <code>addChild(new Asset1())</code>none of the code editors I mentioned above will know about Asset1 as that Asset1 is a class created by flash IDE only when the fla is being compiled and therefore is only available during runtime. So they will mark it as erroneous class reference. Of course , swf will compile just fine, but that&#8217;s not the point <img src='http://durej.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> You don&#8217;t want to have your project covered in errors of some of which are not really error and need to remember which ones are not real.. !</p>
<p>There are several solutions to this of course.</p>
<p>One I used, is to compile swc from the fla, so the every linked library assets are available to FDT/flash develop/flex for reference. The trouble with this solution is you have to keep the swc file updated which isn&#8217;t always straightforward.. For example flex sometimes doesn&#8217;t pick up that swc have been changed, you have to delete swc and then re-publish it to force it to recognise change. Similar situation happens with FDT sometimes. As well as you can into a situation where you get into a sort of a recursive error cycle , where swf doesn&#8217;t compile correctly because compiling that swf requires some assets from swc that aren&#8217;t there yet because project&#8217;s swc doesn&#8217;t have that assets yet because it can&#8217;t be compiled before the project doesn&#8217;t have those errors..  </p>
<p>The solution I devised instead is much simpler and mimic the old as2 &#8220;attachMovie&#8221; functionality.</p>
<p>Taking advantage of built in &#8220;getDefinitionByName&#8221; command from flash.utils package we can turn the asset into a class by giving it it&#8217;s linkage ID . As that class is compiled into swf it will be available during runtime - so that will work fine.</p>
<p>During authoring time it won&#8217;t flag up as error as well as it&#8217;s typed correctly to MovieClip (so sprite will work as well).</p>
<p>So I wrote a wrapper utility class that has 2 functions :</p>
<p><code>attachMovie - expect a linkage name and returns a MovieClip instance<br />
attachBitmapData - expect a linkage name and returns BitmapData</code></p>
<p>this is a code for attaching the library assets used in the demo bellow :</p>
<p><code>  private function attachAsset1():void<br />
  {<br />
   var asset1:Sprite = MCUtils.attachMovie("Asset1");<br />
   asset1.x = 10;<br />
   asset1.y = 8;<br />
   this.addChild(asset1);<br />
  }<br />
 <br />
  private function attachGirl():void<br />
  {<br />
   var girlBmp:BitmapData = MCUtils.attachBitmapData("Girl");<br />
   var girlBitmap:Bitmap = new Bitmap(girlBmp);<br />
   girlBitmap.x = 10;<br />
   girlBitmap.y = 85;<br />
   this.addChild(girlBitmap);<br />
  }</code></p>
<p>Demo :</p>
<p>	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/flash.cab#version=7,0,0,0" width="400" height="250">
	<param name="movie" value="http://durej.com/wp-content/uploads/2009/11/demo.swf">
	<param value="sameDomain" name="allowScriptAccess"/>
	<param name="quality" value="high">
	<param name="scale" value="exactfit" />
	
	<embed src="http://durej.com/wp-content/uploads/2009/11/demo.swf"  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" allowscriptaccess="sameDomain" scale="exactfit" type="application/x-shockwave-flash" width="400" height="250" bgcolor="#FFFFFF">
	</embed>
	</object></p>
<p><a href="http://durej.com/wp-content/uploads/2009/11/attachmovie.zip" title="Attach Movie Demo" class="downloadZip">Attach Movie Zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=115</wfw:commentRss>
		</item>
		<item>
		<title>Flash CS4 - a bit of a nightmare experience</title>
		<link>http://durej.com/?p=114</link>
		<comments>http://durej.com/?p=114#comments</comments>
		<pubDate>Fri, 18 Sep 2009 09:29:18 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://durej.com/?p=114</guid>
		<description><![CDATA[I never do a post just about somebody else&#8217;s blog post , but after reading this - http://kevinsuttle.com/found-and-lost-the-flash-ide I felt compelled to react.
I fully agree with the author about the majority of the points he makes in this article. Adobe, and many other users of the flash platform, seems to think, there&#8217;s a clear distinction between [...]]]></description>
			<content:encoded><![CDATA[<p>I never do a post just about somebody else&#8217;s blog post , but after reading this - <a href="http://kevinsuttle.com/found-and-lost-the-flash-ide">http://kevinsuttle.com/found-and-lost-the-flash-ide</a> I felt compelled to react.</p>
<p>I fully agree with the author about the majority of the points he makes in this article. Adobe, and many other users of the flash platform, seems to think, there&#8217;s a clear distinction between flash user : developers and timeline artists. Developers use flex / flash develop, artists and animators use Flash IDE and perhaps Flash catalyst. Unfortunately that&#8217;s not the case, especially if you work in advertising or e-marketing agencies (such as myself) and create rich media, experience campaign microsites. You have to do a lot of coding while integrating timeline based animations and graphics. There is really no way such sites can be build in Flex. Or purely in Flex. Take my latest project - <a target="_blank" href="http://gap.portfolio.lawton-staging.co.uk/" title="Gap 1969">Gap1969</a>. It&#8217;s a good example of highly visual , stylised experience microsite for which Flex would be completely inappropriate tool. There&#8217;s quite a few instances of using timeline z-depth positioning of the assets, the transition timeline (3D renders) is a png sequence that needs precise control with labels etc.. Now just to clarify, I don&#8217;t use the Flash IDE for coding of course, that AS editor is a joke unfortunately. I use FDT 3 set up to compile in Flash CS4 IDE. Also for the record, I use the updated version of Flash IDE - 10.0.2.</p>
<p>During the course of development of this project I observed the following :</p>
<p>1. Flash was crashing at least 1-2x per hour.</p>
<p>2. Flash compiled a project with some weird visual (sometimes also code) errors, like some sort of red square in the middle of the screen, my object positioned in 3d space were suddenly shifted by couple hundred pixels of screen. Without changing any code, just restarting the Flash, recompiling.. suddenly everything was working fine.</p>
<p>3. Flash compiled a file with 0 bytes. After flash restart , and recompile it was OK.</p>
<p>4. After clicking on the item in the library and getting it open in flash IDE took about 6-10 seconds. Very slow. (I use 8 core Intel Xeon HP computer!)</p>
<p>Yes, the main Fla file was quite big - 72 MB - producing about 13MB swf and it seems like flash was running out of the memory quite often, but I do have 4 GB RAM,  I did decrease levels of undo to 10, increased the system swap file to 8 GB. How much more memory flash needs ??</p>
<p>So basically I had to save my project every 1-2 minutes to protect myself from loosing work due to the frequent crashes, restart flash IDE probably 10 - 15 times in hour&#8230; Many times I couldn&#8217;t copy over frames from another flash file as I got out of memory error message, although there should be enough memory available.</p>
<p>I spend quite a lot of time hunting for bugs that weren&#8217;t there, only to find out , after restarting flash everything was OK again.</p>
<p>It was quite a frustrating experience , to put it mildly..</p>
<p>All of that would be acceptable if this was a free open source tool in beta version, but this tool cost a LOT of money, especially if you live in the UK.</p>
<p>I really wish Adobe would stop assuming real developers doesn&#8217;t use Flash IDE, and stop concentrating all the effort on developing new tools, but rather made sure</p>
<p>their (still main/flagship) tool works smoothly, reliably and fast!</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=114</wfw:commentRss>
		</item>
		<item>
		<title>Augmented reality helicopter</title>
		<link>http://durej.com/?p=112</link>
		<comments>http://durej.com/?p=112#comments</comments>
		<pubDate>Mon, 13 Jul 2009 15:24:44 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Augmented Reality]]></category>

		<category><![CDATA[Flex 4]]></category>

		<category><![CDATA[papervision]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://durej.com/?p=112</guid>
		<description><![CDATA[Augmented reality is slowly becoming perhaps somewhat of a bevel effect/lensflare among the technology enthusiasts, but actually it&#8217;s only beginning to creep into consciousness of the &#8220;marketing people&#8221; (as I call them) so I though it&#8217;s high time I joined the ranks and pop my AR cherry. : - )
This demo is based on excellent ar [...]]]></description>
			<content:encoded><![CDATA[<p>Augmented reality is slowly becoming perhaps somewhat of a bevel effect/lensflare among the technology enthusiasts, but actually it&#8217;s only beginning to creep into consciousness of the &#8220;marketing people&#8221; (as I call them) so I though it&#8217;s high time I joined the ranks and pop my AR cherry. : - )</p>
<p>This demo is based on excellent ar tutorial by Lee Brimelow, you should definitely <a href="http://gotoandlearn.com/play?id=105">check it out</a> if you want to play with AR.</p>
<p>One thing I discovered, the marker pickup up by FLARE toolkit can be quite tricky at times and it really helps if you do apply a threshold filter to an input bitmap data.</p>
<p>I added basic flying controls to helicopter and a helipad plane to ground it on the surface..</p>
<p><img src="http://durej.com/wp-content/uploads/2009/07/archopper.jpg" alt="AR Chopper" id="noBorder" /></p>
<p>Demo was build with Adobe Flash Builder demo, but the most important class extends UIComponent, so should be easily transferable to Flex 3.</p>
<p>You can view the demo <a target="_blank" href="http://durej.com/ar/" title="AR Helicopter Demo">here</a> and right click to view the source.</p>
<p>If you don&#8217;t have a web cam watch screencast <a target="_blank" href="http://durej.com/ar/video">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=112</wfw:commentRss>
		</item>
		<item>
		<title>Integrating Papervision3D into the Adobe Flash Builder Sparks containers architecture.</title>
		<link>http://durej.com/?p=110</link>
		<comments>http://durej.com/?p=110#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:34:29 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Flex 4]]></category>

		<category><![CDATA[papervision]]></category>

		<category><![CDATA[Adobe Flash Builder]]></category>

		<category><![CDATA[Papervision3D]]></category>

		<category><![CDATA[Sparks]]></category>

		<guid isPermaLink="false">http://durej.com/?p=110</guid>
		<description><![CDATA[It all started when I decided to try out the new Flex 4 Beta. The aim was to build Collada viewer that loads the dae files from the users&#8217; filesystem / harddrive using new flash 10 FileRef API. What seemed like a pretty straightforward task turned into a Nightmare Lite after I realised I can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>It all started when I decided to try out the new Flex 4 Beta. The aim was to build Collada viewer that loads the dae files from the users&#8217; filesystem / harddrive using new flash 10 FileRef API. What seemed like a pretty straightforward task turned into a Nightmare Lite after I realised I can&#8217;t just grab a new BasicView and dump it into a new sparks group container! The problem was, the group container didn&#8217;t support rawChildren.addChild(), as it didn&#8217;t contain rawChildren property.</p>
<p>After spending couple of hours trying and failing I came upon a working solution :</p>
<p><img vspace="10" src="http://durej.com/wp-content/uploads/2009/07/pv3dparks.jpg" alt="PV3D in Flex 4" id="noBorder" /></p>
<p>Use UIComponent as a wrapper for a BaseView which is implemented via composition. UIComponent is compatible with Sparks containers and can be added via addElement(); Thankfully UIComponents allows adding BaseView via addChild.. If you need to access a camera, scene, light etc, just use public variables on your UIComponent class to expose them and link them to your baseview camera lights etc.</p>
<p>This simple example utilises camera and materials light color change, but you can expose and change anything you like of course..</p>
<p>It is implemented directly inside of mxml but of course you could still have a group with id (let&#8217;s say &#8220;scene&#8221;) and add the whole component BasicView3D programmatically.</p>
<p>e.g. :</p>
<p>scene.addElement(new BasicView3D);</p>
<p>Check out the <a target="_blank" href="http://durej.com/pv3d/flex4/pv3inflex4.html" title="PV3D in Flex 4">sample</a> and right click to view <a target="_blank" href="http://durej.com/pv3d/flex4/srcview/index.html" title="Source">source script </a>and <a href="http://durej.com/pv3d/flex4/srcview/pv3inflex4.zip" title="Download Zip">download the entire project</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=110</wfw:commentRss>
		</item>
		<item>
		<title>Morphing Menu</title>
		<link>http://durej.com/?p=107</link>
		<comments>http://durej.com/?p=107#comments</comments>
		<pubDate>Fri, 01 May 2009 15:24:16 +0000</pubDate>
		<dc:creator>Slav</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[particles]]></category>

		<guid isPermaLink="false">http://durej.com/?p=107</guid>
		<description><![CDATA[After some requests from readers of this blog. I&#8217;ve decided to port my Explode class, that was written a while ago in AS2, to AS3, and while doing so, I also made some improvements to it as well.
The main difference is that you can use different functions separately now. For example you can use Explode.generate function to get the [...]]]></description>
			<content:encoded><![CDATA[<p>After some requests from readers of this blog. I&#8217;ve decided to port my <a target="_blank" href="http://durej.com/?p=75">Explode class</a>, that was written a while ago in AS2, to AS3, and while doing so, I also made some improvements to it as well.</p>
<p>The main difference is that you can use different functions separately now. For example you can use Explode.generate function to get the multicolor map and then Explode.generateParticlesBMPsFromMap to get the array of bitmaps and their positions..</p>
<p>This allows to separate the color map creating part of the script - which is the most CPU heavy from generation of particle BitmapData. This means you can effectively &#8220;cache&#8221; and reuse color map for multiple DisplayObjects..</p>
<p>Now,  if you&#8217;re reusing particle map, this allows for creating some interesting effects such as morphing via particle flow.. </p>
<p>I created an example of <a target="_blank" href="http://durej.com/morphmenu/">morphing menu prototype </a>that utilises this functionality.</p>
<p><a target="_blank" href="http://durej.com/morphmenu/" title="Morphing menu (Opens in new window)"><img src="http://durej.com/wp-content/uploads/2009/05/morfmenu.jpg" alt="morphmenu" /></a></p>
<p> <a href="http://durej.com/?p=107#more-107" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://durej.com/?feed=rss2&amp;p=107</wfw:commentRss>
		</item>
	</channel>
</rss>
