<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5474914748814169499</id><updated>2011-07-31T00:40:28.115-07:00</updated><title type='text'>Marfastic - Flash Development Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://marfastic.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://marfastic.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Marfastic</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_qQaXEM2d9ng/SK8n5gjlgpI/AAAAAAAAADc/Y4fzzipTIHU/S220/DSC05918_thumb.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5474914748814169499.post-1386580868952986092</id><published>2010-01-26T13:41:00.000-08:00</published><updated>2010-01-26T14:16:08.363-08:00</updated><title type='text'>Run Multiple Collada Animations at once</title><content type='html'>I tweaked the Away3d SkinAnimation class to allow me to run multiple animations at once(as long as they don't effect the same bones). So for instance you could have a walking animation with the legs moving, while you animate a hand waving animation.  Here is the code you will need to replace in your SkinAnimation class&lt;b&gt;*&lt;/b&gt;:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;*Note, you will need to update the IMeshAnimation Interface class, to change the update definition to:&lt;/b&gt;&lt;/i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;function update(time:Number, interpolate:Boolean = true, onlyChannels:Array = null):void;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;/**&lt;br /&gt;* Updates all channels in the animation with the given time in seconds.&lt;br /&gt;*&lt;br /&gt;* @param time      Defines the time in seconds of the playhead of the animation.&lt;br /&gt;* @param interpolate  [optional] Defines whether the animation interpolates between channel points Defaults to true.&lt;br /&gt;* @param onlyChannels [optional] Will only update the channels whose name contain part of the strings in this array. If this value is null, all channels will be updated&lt;br /&gt;*/&lt;br /&gt;public function update(time:Number, interpolate:Boolean = true, onlyChannels:Array = null ):void&lt;br /&gt;{&lt;br /&gt;if (time &gt; start + length ) {&lt;br /&gt; if (loop) {&lt;br /&gt;  time = start + (time - start) % length;&lt;br /&gt; }else{&lt;br /&gt;  time = start + length;&lt;br /&gt; }&lt;br /&gt;} else if (time &lt; time =" start" time =" start;" onlychannels ="="" uint =" 0;"&gt;= 0)&lt;br /&gt;  return true;&lt;br /&gt;}&lt;br /&gt;return false;&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5474914748814169499-1386580868952986092?l=marfastic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marfastic.blogspot.com/feeds/1386580868952986092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5474914748814169499&amp;postID=1386580868952986092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/1386580868952986092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/1386580868952986092'/><link rel='alternate' type='text/html' href='http://marfastic.blogspot.com/2010/01/run-multiple-collada-animations-at-once.html' title='Run Multiple Collada Animations at once'/><author><name>Marfastic</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_qQaXEM2d9ng/SK8n5gjlgpI/AAAAAAAAADc/Y4fzzipTIHU/S220/DSC05918_thumb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5474914748814169499.post-3002791044560291189</id><published>2009-11-13T10:35:00.000-08:00</published><updated>2009-11-13T11:12:19.605-08:00</updated><title type='text'>Speed Up an Unchanged Away3d Scene</title><content type='html'>Have you have ever noticed your Away3d scene eating up the clock cycles even though the scene has not changed? There may be a very good reason for this...  well an annoying reason for this might be a more accurate. &lt;br /&gt;&lt;br /&gt;Say you are updating an objects orientation on every update:&lt;br /&gt;plane.rotationX = 240;&lt;br /&gt;&lt;br /&gt;Because of the in-preciseness of floating point numbers, this object's rotationX might be set to something very close, but not quite the same as the value before, such as 239.99999999999997. Then on the next update you are setting it to 240 again, and because this is ever so slightly different than the last number, Away3d will re-render the whole part of the that scene.  This is unnecessary work, and can cause problems in a mixed flash/html site, where the rest of the site will run more slowly when the flash piece is not even moving or being interacted with.&lt;br /&gt;&lt;br /&gt;Here is a way to check if you do indeed need to update a object's value:&lt;br /&gt;&lt;pre  style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"&gt;&lt;code style="color:#000000;word-wrap:normal;"&gt; function setIfChanged( target, variable:String, value:Number, precision:Number = 0.001 ) {  &lt;br /&gt;  // checks if the new value is within a certain precision "distance" from the other  &lt;br /&gt;  if ((Math.abs(target[variable - value) &amp;lt; Math.abs(precision)) == false)  &lt;br /&gt;   target[variable] = value;  &lt;br /&gt; }  &lt;br /&gt; // use the above function to check if it is really a new value  &lt;br /&gt; setIfChanged(plane, "rotationX", 240);  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If you use this method to check items you are updating on often (like on every Enter Frame), it will only re-render what it needs to, and when it doesn't it will run much faster and not slow down the rest of the site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5474914748814169499-3002791044560291189?l=marfastic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marfastic.blogspot.com/feeds/3002791044560291189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5474914748814169499&amp;postID=3002791044560291189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/3002791044560291189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/3002791044560291189'/><link rel='alternate' type='text/html' href='http://marfastic.blogspot.com/2009/11/speed-up-unchanged-away3d-scene.html' title='Speed Up an Unchanged Away3d Scene'/><author><name>Marfastic</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_qQaXEM2d9ng/SK8n5gjlgpI/AAAAAAAAADc/Y4fzzipTIHU/S220/DSC05918_thumb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5474914748814169499.post-4414133809785316546</id><published>2009-01-07T08:22:00.000-08:00</published><updated>2009-01-07T08:27:15.859-08:00</updated><title type='text'>Away3d - Tween Filters</title><content type='html'>I had read that there was no way to tween filters in Away3d using one of the convenient Tweening Engines like TweenLite.  It is true that you cannot Tween the filters using the tweening engines built-in filter tweening, but I have found an easy way around this.  All you have to do is tween the properties in the Filters array.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;// cube can be any Object3D object&lt;br /&gt;cube.filters = [ new GlowFilter(0xFFFFFF, 1, 12, 12, 0), new GlowFilter(0x00FFFF, 1, 21, 21, 0) ];&lt;br /&gt;   &lt;br /&gt;TweenLite.to( cube.filters[0], 1, { strength:2.4 } );&lt;br /&gt;TweenLite.to( cube.filters[1], 1, { strength:1.3 } );&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5474914748814169499-4414133809785316546?l=marfastic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marfastic.blogspot.com/feeds/4414133809785316546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5474914748814169499&amp;postID=4414133809785316546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/4414133809785316546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/4414133809785316546'/><link rel='alternate' type='text/html' href='http://marfastic.blogspot.com/2009/01/away3d-tween-filters.html' title='Away3d - Tween Filters'/><author><name>Marfastic</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_qQaXEM2d9ng/SK8n5gjlgpI/AAAAAAAAADc/Y4fzzipTIHU/S220/DSC05918_thumb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5474914748814169499.post-6326797670057771420</id><published>2008-08-22T12:11:00.000-07:00</published><updated>2009-04-28T09:15:14.563-07:00</updated><title type='text'>Create Custom Tween's for TweenLite</title><content type='html'>I wanted an easy way to create custom tweens with a visual guide, much like you can with LMC Tween and Fuse.  Since I couldn't find anything out there that provided this I decided to create my own.&lt;br /&gt;&lt;br /&gt;Here is the link &lt;a href="http://rokkan.com/testing/tween/rokkan_bezierdefiner.swf"&gt;http://rokkan.com/testing/tween/rokkan_bezierdefiner.swf&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;To use this program I recommend downloading the accompanying class &lt;a href="http://rokkan.com/testing/tween/ZigoTween.zip"&gt;ZigoTween.as&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Example of creating a custom tween:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;var zt:ZigoTween = new ZigoTween([{Mx:0,Nx:0,Ny:-1000,My:0,Px:500,Py:500},{Mx:500,My:-500}] );&lt;br /&gt;TweenLite.to(mc,1,{x:200,ease:zt.ease});&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This example assumes you have imported the &lt;a href="http://rokkan.com/testing/tween/ZigoTween.zip"&gt;ZigoTween.as&lt;/a&gt; class.&lt;br /&gt;&lt;br /&gt;If anybody can help me make this a custom Flash Panel I would appreciate the help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5474914748814169499-6326797670057771420?l=marfastic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marfastic.blogspot.com/feeds/6326797670057771420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5474914748814169499&amp;postID=6326797670057771420' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/6326797670057771420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5474914748814169499/posts/default/6326797670057771420'/><link rel='alternate' type='text/html' href='http://marfastic.blogspot.com/2008/08/create-custom-tweens-for-tweenlite.html' title='Create Custom Tween&apos;s for TweenLite'/><author><name>Marfastic</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_qQaXEM2d9ng/SK8n5gjlgpI/AAAAAAAAADc/Y4fzzipTIHU/S220/DSC05918_thumb.jpg'/></author><thr:total>13</thr:total></entry></feed>
