{"id":54,"date":"2007-03-26T05:48:43","date_gmt":"2007-03-26T13:48:43","guid":{"rendered":"http:\/\/dougmccune.com\/blog\/2007\/03\/26\/fire-component-added-to-flexlib\/"},"modified":"2007-03-26T05:48:44","modified_gmt":"2007-03-26T13:48:44","slug":"fire-component-added-to-flexlib","status":"publish","type":"post","link":"https:\/\/dougmccune.com\/blog\/2007\/03\/26\/fire-component-added-to-flexlib\/","title":{"rendered":"Fire component added to FlexLib"},"content":{"rendered":"<p>I added a new Fire component to the FlexLib library. This is a Flex component that creates a fire or smoke effect. It can be customized in a variety of ways, including setting multiple colors for the flame. Check out the demo app below to see a few different presets I came up with. Try playing around with the different controls and you&#8217;ll get an idea of the different kinds of effects that are possible.<\/p>\n<p>The key to this is using the <a href=\"http:\/\/livedocs.adobe.com\/flex\/2\/langref\/flash\/display\/BitmapData.html#perlinNoise()\">perlinNoise<\/a> function of the BitmapData class, and the <a href=\"http:\/\/livedocs.adobe.com\/flex\/2\/langref\/flash\/filters\/DisplacementMapFilter.html\">DisplacementMapFilter<\/a>. I don&#8217;t claim to be an expert on using these functions. <a href=\"http:\/\/as3.betaruce.com\/tut\/fire\/fire_f8.html\">Others have written about using them<\/a>, I just copied the same approach. <\/p>\n<p><a href=\"http:\/\/flexlib.googlecode.com\/svn\/trunk\/docs\/flexlib\/controls\/Fire.html\">View the documentation<\/a><br \/>\n<a href=\"http:\/\/flexlib.googlecode.com\/svn\/trunk\/examples\/Fire\/Fire_Sample.swf\">View the example<\/a> in a new window.<\/p>\n<p>To get the source of the Fire component, download the <a href=\"http:\/\/flexlib.net\">FlexLib project<\/a> from Google code.<\/p>\n<p>And don&#8217;t complain about this using a lot of CPU horsepower, go get a faster machine \ud83d\ude1b Or look at the source and figure out how to optimize it for better performance and contribute the improvements back to <a href=\"http:\/\/flexlib.net\">FlexLib<\/a>.<\/p>\n<p><div id=\"swf5da31\">This movie requires Flash Player 9.<\/div>\n<script type=\"text\/javascript\">\n\tswfobject.embedSWF(\"http:\/\/flexlib.googlecode.com\/svn\/trunk\/examples\/Fire\/Fire_Sample.swf\", \"swf5da31\", \"500\", \"500\", \"9.0.0\", \"\", {}, {wmode: \"window\", menu: \"false\", quality: \"high\", bgcolor: \"#FFFFFF\", allowScriptAccess: \"always\"}, {});\n<\/script>\n<\/p>\n<p>Oh, and for anyone wondering, I&#8217;ll be releasing the source for the RSS reader that was shown at 360Flex&#8230; soon. Probably tomorrow. And it&#8217;s an even more pimped out version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I added a new Fire component to the FlexLib library. This is a Flex component that creates a fire or smoke effect. It can be customized in a variety of ways, including setting multiple colors for the flame. Check out the demo app below to see a few different presets I came up with. Try [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-flex"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":0,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}