Category ActionScript

Tweensy Beta

TweensyTweensy is a new tweening engine which offers unique features like particle emitters or gradient tweening. It seems it’s even better in performance than Tweener or TweenLite. It is currently available only as a private beta so I’m looking forward to releasing source code.

Related links:
Tweensy
Tweener
TweenLite

Box2DFlashAS3

Ragdolls - Box2DFlashAs3 example Box2DFlashAS3 is an open source port of Erin Catto’s powerful C++ physics library Box2D. Performance of the engine is pretty good. Change examples with Left and Right arrow. I can especially recommend “Ragdols” and “Example”. Enjoy.

Related links:
Box2DFlashAS3
Box2D.org

Amazing ActionScript 3.0

as3_roxik.jpgAmazing sample of ActionScript 3.0 was shown on Adobe CS3 Web Edition Tour made by roxik, author of very well known Pictaps. You MUST see this. I have to say, this is incredible thing, incredible performance and… I have no idea how he made that. ;) Try using “+” button, the performance doesn’t change even with 3k balls on the scene, again… amazing.

If anybody understands what they have written there please give us some info.

Related links:
sample
roxik.com

GO Animation System

GO Animation SystemMoses Gunesch is an author of a very popular animation system for Action Script 2 (The Fuse Kit) and has just posted on his blog some information about new project called Go. This is not Action Script 3 Fuse implementation, it is something completely new - light framework for creating your own animation tools. Go is a very extensible so it allows you to use “tweening, physics and 3D together”. Public beta very soon, for now you can become familiar with the whole idea.

Related links:
The Fuse Kit
Moses blog

Flash gallery

It’s nice to know that you like our flash gallery. We’ve shared it with you guys here but many of you still write to us. You can download it from here. Remember that this gallery requires specially prepared XML which is provided by SimpleViewer gallery plugin for WordPress. All you have to do is to change viewer.swf file (in the plugin folder on your server) for our viewer.swf.

Also you have to know that we on Ars Thanea use classes folder for our… classes files. ;) Remember to change classpath in your Flash properties (Edit -> Preferences -> ActionScript3 settings) to compile our gallery correctly. As I said, we’re happy that you like this gallery but also try to understand that we’re not able to respond for all your e-mails asking us “how to….” or “can you…”. We give you this gallery as it is, if it’s not working for you - try to make it work :).

Multiple event listener

It’s quite common situation when you have to wait until couple of events will be dispatched before you can do “something that makes user to say wow”. I always used to use some flags variables to watch if all objects suspected to dispatch an event already did that but it was very confusing solution. So… I’ve just written this quite simple class to make that waiting much simpler.

To use it, all you have to do is something like this:

function foo ( e:Event )
{
   trace ( "done..." );
}
 
var mel:MultipleEventListener;
mel = new MultipleEventListener ( SomeEvent.EVENT );
mel.addEventListener ( SomeEvent.EVENT, foo );
 
for ( var i:int; i < someList.length; i++ )
{
  var obj:EventDispatcher = EventDispatcher ( someList[i] );
  mel.addDispatcherObject ( obj );
  obj.doSomethingAmazingAndThenDispatchEvent();
}
 
mel.init();

The class stores the information if an object already fired an event or not (it uses internal EventStatus class) so it may happen that just after init function MEL dispatches the event. That happens when all object has already fired their events before you used init function so you have to be sure that you listen to MELs event before you initiate it. But I hope it’s obvious for you. ;)

Download MultipleEventListener class

Shared fonts in Flash

Our friend sent me a link to a nice article about loading fonts into the SWF file. It’s quite useful feature if you often use multiple SWF files in your sites or applications. Check it out.