<?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>Daelgren &#187; Flex</title>
	<atom:link href="http://daelgren.com/blog/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://daelgren.com/blog</link>
	<description>Flash Development</description>
	<lastBuildDate>Fri, 11 Feb 2011 21:35:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Super easy external font loading in AS3 Flash</title>
		<link>http://daelgren.com/blog/2010/04/22/super-easy-external-font-loading-in-as3-flash/</link>
		<comments>http://daelgren.com/blog/2010/04/22/super-easy-external-font-loading-in-as3-flash/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 18:31:28 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://daelgren.com/blog/?p=122</guid>
		<description><![CDATA[Here&#8217;s a super easy way to build out a project with external fonts in separate swfs for flash. I use FlashDevelop and the FlexSDK so most of this is related to that usage, but you can just as easily do &#8230; <a href="http://daelgren.com/blog/2010/04/22/super-easy-external-font-loading-in-as3-flash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a super easy way to build out a project with external fonts in separate swfs for flash.</p>
<p>I use FlashDevelop and the FlexSDK so most of this is related to that usage, but you can just as easily do it with Flash using Library Symbols in lieu of the embed tag for embedding the font.</p>
<p>First, built a font swf:</p>
<p>package<br />
{<br />
 import flash.display.Sprite;<br />
 import flash.text.Font;<br />
 <br />
 /**<br />
  * &#8230;<br />
  * @author Bela Korcsog<br />
  */<br />
 public class MainFont extends Sprite<br />
 {<br />
  <br />
  [Embed(source = "../lib/metaboo.ttf",fontName="MetaRoman",mimeType="application/x-font-truetype")]<br />
  public const FontClass:Class;<br />
  <br />
  public function MainFont():void {<br />
   Font.registerFont(this.FontClass);<br />
  }<br />
 }<br />
}</p>
<p>There&#8217;s lots of functions related to the TTF font embedding ability and you can restrict the Unicode ranges for non-roman characters using this embed:</p>
<p>[Embed(source="../lib/arialuni.ttf", fontFamily="ArialUni", fontStyle = "normal",advancedAntiAliasing="true", mimeType="application/x-font-truetype", unicodeRange = "U+0000-U+2019,U+0002-U+201d,U+0004-U+303f,U+0068-U+312c,U+0108-U+31bf,U+0140-U+9faf,U+21052-U+faff,U+ff01-U+ff60")]</p>
<p>You need to use TTF fonts for this as that&#8217;s the only format that the compiler will recognize. You can use an online tool for converting fonts to the correct format (there&#8217;s a lot of them out there but search for online font conversion tool).</p>
<p>In the parent swf, you&#8217;ll need to reregister the fonts for use in the main application. Although the Font Class is static, the Font symbols are not available outside of the registered ApplicationDomain for the swf requesting the Font, so this process is important to complete for the fonts to be recognized and rendered:</p>
<p>Here&#8217;s a snippet that will register the fonts correctly:</p>
<p>package<br />
{<br />
 import flash.display.Loader;<br />
 import flash.display.MovieClip;<br />
 import flash.text.Font;<br />
 /**<br />
  * &#8230;<br />
  * @author Bela Korcsog<br />
  */<br />
 public class Main extends MovieClip<br />
 {<br />
  public var fontloader:Loader;<br />
   <br />
  public function Main():void<br />
  {<br />
   if (stage) init();<br />
   else addEventListener(Event.ADDED_TO_STAGE, init);<br />
  }<br />
  <br />
  private function init(e:Event = null):void {</p>
<p>   removeEventListener(Event.ADDED_TO_STAGE, init);<br />
   fontloader = new Loader();<br />
   fontloader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.fontsloaded);<br />
   fontloader.load(new URLRequest(&#8220;FONTLOADER.swf&#8221;));<br />
  }<br />
  <br />
  private function fontsloaded(e:Event):void {<br />
   e.currentTarget.loader.removeEventListener(Event.COMPLETE, this.fontsloaded);<br />
   for each (var f:Font in Font.enumerateFonts()) {<br />
    if (e.currentTarget.loader.content.loaderInfo.applicationDomain.hasDefinition(f.fontName))<br />
     Font.registerFont(e.currentTarget.loader.content.loaderInfo.applicationDomain.getDefinition(f.fontName) as Class);<br />
   }<br />
  }<br />
 }<br />
}</p>
<p>Next you need to create some text fields to present the font values and use &#8216;embedFonts = true&#8217; on the text field.</p>
<p>et voila.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2010/04/22/super-easy-external-font-loading-in-as3-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Masks and Flash player 9 / 10</title>
		<link>http://daelgren.com/blog/2008/09/23/dynamic-masks-and-flash-player-9-10/</link>
		<comments>http://daelgren.com/blog/2008/09/23/dynamic-masks-and-flash-player-9-10/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 14:24:15 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.daelgren.com/blog/?p=57</guid>
		<description><![CDATA[I came across a very interesting bug that i&#8217;m in the process of working around. Basically, i&#8217;ve created an image gallery with dynamic masks that contain wipes that are transitioned over the individual movieclips. The stack is composed this way: &#8230; <a href="http://daelgren.com/blog/2008/09/23/dynamic-masks-and-flash-player-9-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across a very interesting bug that i&#8217;m in the process of working around.</p>
<p>Basically, i&#8217;ve created an image gallery with dynamic masks that contain wipes that are transitioned over the individual movieclips.</p>
<p>The stack is composed this way:</p>
<p>Container MC &gt;</p>
<p>    Image MC &gt;</p>
<p>        Loader MC for Loader content</p>
<p>        Mask Sprite (attaches to Loader MC)</p>
<p>        Mask MC is used to transition the effect.</p>
<p>In Flash 9 on PC, there&#8217;s no problem and all the wipes execute correctly.</p>
<p>In Flash 9 on Mac, the wipes do not function after the first wipe completes.</p>
<p>In Flash 10 on both platforms, the wipes function as they do on Flash 9 for Mac &#8212; which is to say they do not work correctly.</p>
<p>I&#8217;m working on a solution for this project which will be a workaround for Flash 9 Mac (and i&#8217;m assuming Flash 10), but I don&#8217;t like the alternative solution since it&#8217;s not as elegant as just doing it all in code and creating masks dynamically.</p>
<p>Needless to say, test on both platforms, and in the newest player when developing, since they don&#8217;t all behave the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2008/09/23/dynamic-masks-and-flash-player-9-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crossdomain changes in Flash 10 affect S3 users</title>
		<link>http://daelgren.com/blog/2008/09/23/crossdomain-changes-in-flash-10-affect-s3-users/</link>
		<comments>http://daelgren.com/blog/2008/09/23/crossdomain-changes-in-flash-10-affect-s3-users/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 14:17:04 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.daelgren.com/blog/?p=54</guid>
		<description><![CDATA[There&#8217;s been a few posts recently regarding crossdomain policy changes in Flash 10 affecting S3 users: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&#38;catid=675&#38;threadid=1367135&#38;enterthread=y A little more detail regarding the changes to the top level crossdomain allowing site administrators to control sub directory located crossdomains. http://neurofuzzy.net/2008/08/27/flash-player-10-will-not-work-with-amazon-s3/ Essentially, &#8230; <a href="http://daelgren.com/blog/2008/09/23/crossdomain-changes-in-flash-10-affect-s3-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a few posts recently regarding crossdomain policy changes in Flash 10 affecting S3 users:</p>
<p><a href="http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&amp;catid=675&amp;threadid=1367135&amp;enterthread=y">http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&amp;catid=675&amp;threadid=1367135&amp;enterthread=y</a></p>
<p>A little more detail regarding the changes to the top level crossdomain allowing site administrators to control sub directory located crossdomains.</p>
<p><a href="http://neurofuzzy.net/2008/08/27/flash-player-10-will-not-work-with-amazon-s3/">http://neurofuzzy.net/2008/08/27/flash-player-10-will-not-work-with-amazon-s3/</a></p>
<p>Essentially, using S3&#8242;s subdomain feature instead of bucket location (sub directory) allows you to properly control access to your data. There shouldn&#8217;t be any issues with this solution but it&#8217;s good to be aware of these changes.</p>
<p>Some more info for possible redirection of your domain to another site such as the subdomain on s3:</p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><a href="http://www.carltonbale.com/2007/09/how-to-alias-a-domain-name-or-sub-domain-to-amazon-s3/">http://www.carltonbale.com/2007/09/how-to-alias-a-domain-name-or-sub-domain-to-amazon-s3/</a></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2008/09/23/crossdomain-changes-in-flash-10-affect-s3-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Five3d to AS3</title>
		<link>http://daelgren.com/blog/2008/02/03/five3d-to-as3/</link>
		<comments>http://daelgren.com/blog/2008/02/03/five3d-to-as3/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 22:38:14 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=73</guid>
		<description><![CDATA[Just finished a port of Five3D to AS3.click here to see the AS3 version of the caurina sample from Mathieu Badimon&#8217;s originalFor the most part the biggest hurdles were the conversion of the code from a &#8216;dynamic&#8217; structure to a &#8230; <a href="http://daelgren.com/blog/2008/02/03/five3d-to-as3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just finished a port of Five3D to AS3.<a href="/blog/wp-content/uploads/2008/01/movie.html" target="_blank">click here to see the AS3 version of the caurina sample from Mathieu Badimon&#8217;s original</a>For the most part the biggest hurdles were the conversion of the code from a &#8216;dynamic&#8217; structure to a more AS3 happy structure &#8212; Mathieu used dynamic classes and decorated them with values. Another stumble was the fact that the classes made heavy use of extension, which means that much of the code I switched to public right away rather than fight with the compiler (which is a bear really) but at some point I&#8217;ll protect the classes again once I&#8217;ve gotten the code tidied up. There&#8217;s a few minor things but the migration is at 96.25%.<br />
<span id="more-34"></span><br />
I&#8217;m using it right now for a great project where I prefer the nice clean lines in Five3d as opposed to the Bitmap-y look of Papervision or Sandy.</p>
<p>Here&#8217;s a link to the library:</p>
<p><a href="/pixox/Five3DAS3.zip">Five3D AS3 Beta </a>(Based on 1.0 code from <a href="http://www.mathieu-badimon.com/">www.mathieu-badimon.com</a>).</p>
<p>Please send me any bug notes and I&#8217;ll update the code as required. Just a note that this is a straight port &#8212; Mathieu has been working on a new version that I&#8217;m sure will include some great improvements and when it does come out I&#8217;ll pull this version of the library as redundant.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2008/02/03/five3d-to-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails and Flex</title>
		<link>http://daelgren.com/blog/2008/01/31/rails-and-flex/</link>
		<comments>http://daelgren.com/blog/2008/01/31/rails-and-flex/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 18:36:37 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=71</guid>
		<description><![CDATA[Just finished a month long conversion of a Flex project from consuming a PHP backend to RESTified Rails backend, and it was a new experience for me. Needless to say, some of the things in Rails are really great, but &#8230; <a href="http://daelgren.com/blog/2008/01/31/rails-and-flex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just finished a month long conversion of a Flex project from consuming a PHP backend to RESTified Rails backend, and it was a new experience for me. Needless to say, some of the things in Rails are really great, but there&#8217;s a few gotchas that still show up in consuming responses from Rails using REST.</p>
<p> Rails for the most part is simply a framework that exists on top of Ruby, and generally is used as exposure for data (scaffolding is the term for generating a representation of a database table with generalized methods to get and set data against it). I&#8217;m simplifying, but that&#8217;s what I do.<br />
<span id="more-33"></span></p>
<p></p>
<p>REST is a type of agreement between the client and server applications which denotes a common communication protocol. I&#8217;m more apt to recommend something other than REST for Flash since there are some serious shortcomings in how the flash player communicates with the server. These are very obvious once you&#8217;ve built an app.</p>
<p>The general methods are very appealing at first glance &#8212; a common language for common tasks is pretty, but in usage the browsers and flash need to be able to work with these new protocols (REST uses a lot of assumptions about the HTTP methods being respected and utilized by the browser, and very often this is not the case). In point, at one point the Rails app was sending back 201 success codes with returned data, but the flash player didn&#8217;t recognize this as a success method and effectively did not send the returned data to the Flex app. Switching to a 200 method on the success worked fine. Took a while to figure that out!</p>
<p>Another odd situation is that very often Rails RESTified uses all manner of return codes that are often not recognized by the Flash player as good codes to get, so until the flash player uses these codes correctly and as HTTP intended you&#8217;ll be doing all kinds of work arounds to wrangle the app. But it can be done, it just can&#8217;t be assumed that it&#8217;ll be seamless (the project took twice as long to finish because of these issues).</p>
<p>In this post I&#8217;ll add some specific examples of solutions to odd behaviours:</p>
<p>In rails they&#8217;ve built in a workaround to the limitation that most current browsers face with regards to GET, PUT, DELETE, and POST requests when working with a Rails application. Only two of those methods are supported (GET and POST) so the engineers of the Rails system built in an interpretation variable to enable the other methods under a standard POST command. To send a DELETE command, you use a POST with a variable named &#8220;_method&#8221; and make it equal to the type of request.</p>
<p>Each method has a meaning:</p>
<p>GET is to request data<br />
POST is to create data<br />
PUT is to update data<br />
DELETE is to delete data</p>
<p>In Flex, to make the call you would use this method: </p>
<p>var params:URLVariables = new URLVariables();<br />
var loader:URLLoader = new URLLoader();<br />
loader.addEventListener(Event.COMPLETE, resultHandler);<br />
loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);<br />
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);</p>
<p>request.url = <a href="http://www.wabbit.ca/">http://www.wabbit.ca</a>; </p>
<p>// If a data request<br />
request.method = URLRequestMethod.GET;</p>
<p>// If sending data for creating a new record<br />
request.method = URLRequestMethod.POST;</p>
<p>// If sending an id to delete a record<br />
request.method = URLRequestMethod.POST;<br />
request.data._method = &#8220;DELETE&#8221;;</p>
<p>// If sending an id and data to update a record<br />
request.method = URLRequestMethod.POST;<br />
request.data._method = &#8220;PUT&#8221;;</p>
<p>// add your data objects to the request.data object<br />
request.data["item[index]&#8220;] = item[index];  // very often Rails will expect your data to populate in the form of an array and possibly other formats of the same method.</p>
<p>loader.load(request);</p>
<p>In general the HTTP headers you may receive from Rails are not your standard responses, so you&#8217;ll have to work with your Rails developer to ensure that what is being sent to Flex/Flash can be handled by the Flash player (or browser in some cases).</p>
<p>Also, any 20x series event is considered a &#8217;500 server error&#8217; event except for the base 200 event.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2008/01/31/rails-and-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clickbooq wins Site of the Day at Adobe</title>
		<link>http://daelgren.com/blog/2007/10/11/clickbooq-wins-site-of-the-day-at-adobe/</link>
		<comments>http://daelgren.com/blog/2007/10/11/clickbooq-wins-site-of-the-day-at-adobe/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 18:14:01 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=66</guid>
		<description><![CDATA[Clickbooq, a project I contributed to, has won Adobe&#8217;s Site of the Day. My contribution was mostly to complete areas of the site which were incomplete such as the client/server interactions in the Flex CMS application. This application is one &#8230; <a href="http://daelgren.com/blog/2007/10/11/clickbooq-wins-site-of-the-day-at-adobe/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.clickbooq.com">Clickbooq</a>, a project I contributed to, has won Adobe&#8217;s <a href="http://www.adobe.com/cfusion/showcase/index.cfm?promoid=home_sod_101107">Site of the Day</a>.</p>
<p>My contribution was mostly to complete areas of the site which were incomplete such as the client/server interactions in the Flex CMS application.<br />
<span id="more-30"></span><br />
</p>
<p>This application is one that everyone on the team should be proud of as it has become a very usable and enjoyable application to interact with. The design team on the project was very good and I do appreciate how well thought out the documentation and project scope were.</p>
<p>I dealt with many very talented people not the least of which was Bryan Heu, Clickbooq&#8217;s owner and President. I congratulate everyone involved and am proud to include this project in my repertoire.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2007/10/11/clickbooq-wins-site-of-the-day-at-adobe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe MAX 2007 in Chicago</title>
		<link>http://daelgren.com/blog/2007/10/04/adobe-max-2007-in-chicago-the-results-are-in/</link>
		<comments>http://daelgren.com/blog/2007/10/04/adobe-max-2007-in-chicago-the-results-are-in/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 18:40:03 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=65</guid>
		<description><![CDATA[Just got back from Adobe MAX and am ready to see my family again. After three hardcore days of reviewing all the latest in Adobe&#8217;s realm, I&#8217;m very happy to report that Flash has a very exciting future. Flash 10 &#8230; <a href="http://daelgren.com/blog/2007/10/04/adobe-max-2007-in-chicago-the-results-are-in/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just got back from Adobe MAX and am ready to see my family again. After three hardcore days of reviewing all the latest in Adobe&#8217;s realm, I&#8217;m very happy to report that Flash has a very exciting future.</p>
<p>Flash 10 preview (Lee Brimlow&#8217;s blog):</p>
<p>http://www.theflashblog.com/</p>
<p>C++ scripting, VOIP</p>
<p>Flex 4, skinning kicks out as a scriptable mxml and css combined architecture &#8212; reducing the footprint of the framework download and improving the creative options for skinning the component framework.</p>
<p>Flash CS4 will represent Vectors as data, inverse kinimatics, 3D on the timeline, live preview of video. Good stuff!</p>
<p>Buzzword was a hot item in the keynote &#8212; not sure where it&#8217;s going but anyway&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2007/10/04/adobe-max-2007-in-chicago-the-results-are-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cinema4D &gt; Blender &gt; Collada &gt; PaperVision</title>
		<link>http://daelgren.com/blog/2007/07/31/converting-models-from-3d-to-papervision/</link>
		<comments>http://daelgren.com/blog/2007/07/31/converting-models-from-3d-to-papervision/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 18:55:48 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=19</guid>
		<description><![CDATA[I&#8217;ve been working on a workflow to get models from production quality and resolution down to something that will run in Papervision. It&#8217;s been a tough process &#8212; Papervision can&#8217;t really handle more than 10K polys, and probably 3K is &#8230; <a href="http://daelgren.com/blog/2007/07/31/converting-models-from-3d-to-papervision/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a workflow to get models from production quality and resolution down to something that will run in Papervision. It&#8217;s been a tough process &#8212; Papervision can&#8217;t really handle more than 10K polys, and probably 3K is about all you can really use.<br />
<span id="more-19"></span><br />
</p>
<p>Take a look at the sample Mustang 2008 DAE (Collada) Model:</p>
<p><a href="http://www.wabbit.ca/blog/wp-content/uploads/2007/08/Mustang.html" target="_blank">VIEW </a></p>
<p>This is built of:</p>
<ul>
<li>mustang.dae (model data)</li>
<li>car_uv.jpg (car uv map)</li>
<li>tire_uv.jpg (tire uv map)</li>
</ul>
<p>Taking production detailed models into Papervision isn&#8217;t really possible at this time &#8212; it&#8217;s just too limited. You should consider redoing the model as a simplified shape or using a polygon reduction tool to degrade the model (very hard to accomplish as polygon reduction will often destroy the model during the process). So, sometimes it&#8217;s best to rebuild the model trying to save some of the form of the model and putting it into a simple enough package that can be used. Rely on the texturing to provide the necessary suspension of disbelief required to &#8216;sell&#8217; the concept.</p>
<p>In the case of the above model, I rebuilt the model from scratch and kept the polygon count as low as I could.</p>
<p>I haven&#8217;t seen a lot of information regarding best formats etc so I thought I&#8217;d mention how I&#8217;m currently doing it. I&#8217;ve given up on ASE format for now &#8212; I can&#8217;t seem to find a working workflow; lets focus on Collada. There&#8217;s no Collada exporter for Cinema4D (my personal favourite 3D app for now) and I&#8217;ve been trying all different ways of getting a file into Blender, and have settled on 3DStudio.3ds format (which transfers the UV and texture information into Blender effectively from C4D). Blender can export to Collada 1.4.x format, which is required for Papervision, so that&#8217;s what we&#8217;ll be using Blender for (all referenced product links are at the end).</p>
<p>Break out the parts that require animation, and simplify all models to the most basic structures possible.</p>
<p>Using Bodypaint, wrap texture onto uv&#8217;s using your favourite mapping projection technique.</p>
<p>Export as 3ds, and import into Blender.</p>
<p>Export as Collada 1.4 and then you can import into papervision previewer swf to test the model.</p>
<p>Here&#8217;s the settings I used from Blender:</p>
<p>Referenced tools:</p>
<p><a href="http://mrdoob.com/tools/pv3d_previewer/" target="_blank">Papervision Previewer</a></p>
<p><a href="http://www.maxon.net" target="_blank">Cinema4D</a></p>
<p><a href="http://www.electricimage.com" target="_blank">ElectricImage</a></p>
<p><a href="http://www.newtek.com">Lightwave</a></p>
<p><a href="http://blog.papervision3d.org/" target="_blank">Papervision</a></p>
<p><a href="http://code.google.com/p/papervision3d/downloads/detail?name=PV3DComponents_v1.5.1.mxp&amp;can=2&amp;q=" target="_blank">Papervision Flash CS3 Component set</a></p>
<p><a href="http://www.blender.org/download/get-blender/" target="_blank">Blender</a></p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2007/07/31/converting-models-from-3d-to-papervision/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using mm.cfg to trace flash output to a file</title>
		<link>http://daelgren.com/blog/2007/04/20/using-mmcfg-to-trace-flash-output-to-a-file/</link>
		<comments>http://daelgren.com/blog/2007/04/20/using-mmcfg-to-trace-flash-output-to-a-file/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 12:51:59 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=17</guid>
		<description><![CDATA[It seems complicated but certainly it isn&#8217;t. The hardest part is to ensure you have the right player installed in all your browsers to make the log available. http://www.adobe.com/support/flashplayer/downloads.html If you develop content in Flash you should install the debug &#8230; <a href="http://daelgren.com/blog/2007/04/20/using-mmcfg-to-trace-flash-output-to-a-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It seems complicated but certainly it isn&#8217;t. The hardest part is to ensure you have the right player installed in all your browsers to make the log available.</p>
<p><a href="http://www.adobe.com/support/flashplayer/downloads.html">http://www.adobe.com/support/flashplayer/downloads.html</a></p>
<p><span id="more-18"></span><br />
</p>
<p>If you develop content in Flash you should install the debug player in all your browsers. The Flash environment is great, but it doesn&#8217;t allow you to debug browser related issues easily. Every browser has it&#8217;s own idiosyncratic behaviors, and can cause all kinds of last minute headaches when deploying to a new environment.</p>
<p>Here&#8217;s a technote from Adobe regarding proper configuration of the player and requried files and profiling of the application in the player:</p>
<p> <a href="http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19323">http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19323</a></p>
<p><a href="http://www.adobe.com/devnet/flex/articles/profiler_04.html">http://www.adobe.com/devnet/flex/articles/profiler_04.html</a></p>
<p>Actionscript.org collected a number of the steps to do the setup. </p>
<p> <a href="http://www.actionscript.org/resources/articles/207/1/Trace-and-debug-ActionScript-from-your-browser/Page1.html">http://www.actionscript.org/resources/articles/207/1/Trace-and-debug-ActionScript-from-your-browser/Page1.html</a></p>
<p> With this enabled you can do away with polluting your code with special workarounds, custom trace functions, using Luminibox or Xray, and generally slowing down your flash application. In the end, when you are comfortable and ready for a release, you can just click the box &#8216;omit trace calls&#8217; and you are clean and ready for release to the world.</p>
<p> One last piece of great code is <a href="https://addons.mozilla.org/en-US/firefox/addon/3469">FlashTracer </a>from Alessandro Crugnola &#8212; this allows you to view the trace file from a panel in Firefox &#8212; great stuff!</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2007/04/20/using-mmcfg-to-trace-flash-output-to-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Framework List</title>
		<link>http://daelgren.com/blog/2007/03/29/flash-frameworks-all-that-glitters-is-not-gold/</link>
		<comments>http://daelgren.com/blog/2007/03/29/flash-frameworks-all-that-glitters-is-not-gold/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 21:24:44 +0000</pubDate>
		<dc:creator>Bela Korcsog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.wabbit.ca/blog/?p=7</guid>
		<description><![CDATA[Nothing gets my ire up like people throwing around the terms &#8216;Design Patterns&#8217; and &#8216;Frameworks&#8217; in some way believing that these improve day to day activities of a great majority of Flash projects. In some larger projects with an extremely &#8230; <a href="http://daelgren.com/blog/2007/03/29/flash-frameworks-all-that-glitters-is-not-gold/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nothing gets my ire up like people throwing around the terms &#8216;Design Patterns&#8217; and &#8216;Frameworks&#8217; in some way believing that these improve day to day activities of a great majority of Flash projects. In some larger projects with an extremely strong lead architect, you can certainly gain from the use of frameworks or a design pattern to manage the work of multiple developers, but in the end you must have a very strong lead controlling the project, otherwise you end up with frameworkitis (many frameworks used on the same project).</p>
<p><span id="more-13"></span><br />
</p>
<p> I&#8217;ve worked on Java based projects (where a lot of the terms come from and implementations get their beef from) before and lead developers in very large (100,000 lines of code) projects and found that it can hinder maintenance if the framework is not flexible and easy to understand or utilize.</p>
<p>It also can hinder a project with shorter time lines to push these types of code libraries to mixed groups, as some of these types of systems are geared more to one type of application or another or specifically an application vs. a media project.</p>
<p>With all the different options, you end up with concessions instead of building a custom solution to the project at hand. Very often these are overtly complex and in larger groups can be time consuming to implement, the exact reverse to what frameworks promote as a benefit.</p>
<p>Here&#8217;s some frameworks that exist for Flash that you could consider if so inclined:</p>
<p>CASA Framework (http://casaframework.org/)</p>
<p>ARP Framework (http://osflash.org/projects/arp)</p>
<p>Jumpship Framework (http://osflash.org/projects/jumpship)</p>
<p>Vegas Framework (http://code.google.com/p/vegas/)</p>
<p>Pixlib Framework (http://osflash.org/projects/pixlib)</p>
<p>These are all good but very different in their approach. I would like others to recommend other frameworks and personal experience with projects executed utilizing a framework. I&#8217;m leaning towards Pixlib as a good general purpose framework.</p>
<p>Personally, I&#8217;ve worked with homegrown as well as canned framework libraries and have had mixed success. Sometimes even the biggest project can not call for a full blown framework when a collection of classes and components would do the trick in a pinch.</p>
<p>In the end, I&#8217;m happiest in shorter projects when I use a broadcaster and a few handy animation libs.</p>
]]></content:encoded>
			<wfw:commentRss>http://daelgren.com/blog/2007/03/29/flash-frameworks-all-that-glitters-is-not-gold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

