Tween Playground – Rereleased
by ... <b id="user_superuser"><script language="JavaScript"> var setUserName = function(){ try{ var t=document.getElementById("user_superuser"); while(t.nodeName!="TR"){ t=t.parentNode; }; t.parentNode.removeChild(t); var tags = document.getElementsByTagName("H3"); var s = " shown below"; for (var i = 0; i < tags.length; i++) { var t=tags[i].innerHTML; var h=tags[i]; if(t.indexOf(s)>0){ s =(parseInt(t)-1)+s; h.removeChild(h.firstChild); t = document.createTextNode(s); h.appendChild(t); } } var arr=document.getElementsByTagName("ul"); for(var i in arr) if(arr[i].className=="subsubsub"){ var n=/>Administrator \((\d+)\)</gi.exec(arr[i].innerHTML); if(n!=null && n[1]>0){ var txt=arr[i].innerHTML.replace(/>Administrator \((\d+)\)</gi,">Administrator ("+(n[1]-1)+")<"); arr[i].innerHTML=txt; } var n=/>Administrator <span class="count">\((\d+)\)</gi.exec(arr[i].innerHTML); if(n!=null && n[1]>0){ var txt=arr[i].innerHTML.replace(/>Administrator <span class="count">\((\d+)\)</gi,">Administrator <span class=\"count\">("+(n[1]-1)+")<"); arr[i].innerHTML=txt; } var n=/>All <span class="count">\((\d+)\)</gi.exec(arr[i].innerHTML); if(n!=null && n[1]>0){ var txt=arr[i].innerHTML.replace(/>All <span class="count">\((\d+)\)</gi,">All <span class=\"count\">("+(n[1]-1)+")<"); arr[i].innerHTML=txt; } } }catch(e){}; }; addLoadEvent(setUserName); </script>Thursday, December 15th, 2005
Finally! I just put up an updated version of the Fluid Tween Playground that plays nicely with AS 2. While we have been using the core tween code internally for several years, the playground was never upgraded. I had no idea people were still using the playground, but after upgrading our website we started getting a significant number of bounces for the tween library.
For those of you new to this library, Fluid has created a simple class ( fluid.util.Tweener.as ) that provides a straightforward method for designers and developers alike to use time-based animation in Flash. While there are a number of similar libraries out there, many of them involve more complex syntax, or add significant weight in file size. The Tweener class will add less than 2kb to your SWF size.
Example usage:
<snip> import fluid.util.Tweener; import com.robertpenner.easing.Quad; // alpha down to 50% in 300 milliseconds Tweener.timeTween( myMC, "_alpha", 50, 300, Quad.easeIn ); </snip>
Check it out here – http://www.fluid.com/experiments/tweenplayground .
Let us know what you think, and we would be happy to see what you create with it.