Home » Archive

Articles in the usefull Category

AS3, Uncategorized, flash, usefull »

[22 Jun 2011 | No Comment | ]

A very nice tip over there:
http://blog.comtaste.com/2008/11/how_to_know_who_called_my_acti.html

AS3, Strange/Bugs, flash, usefull »

[26 Jan 2010 | 5 Comments | ]

Well in fact, it is… or is it not ? depends on how you see it.
The trouble
If using masks or objects that have their “visible” property on true but “alpha” at 0.0, it is taken into account into the calculation of the bounding rectangle. Even objects that are outside of the masked area are added to it.
The solution(s)

During my search, I found a post from David Barlia: http://studio.barliesque.com/blog/2008/10/the-trouble-with-getbounds/. He uses a custom technique to approximately calculate the bounding area of a DisplayObject.

In that same post, someone proposed to use BitmapData …

AS3, Featured, Headline, RabbitTween, flash, tween, usefull »

[26 Sep 2009 | 7 Comments | ]

RabbitTween is a professional transition / tween engine written in ActionScript 3 for Flash.
It is fast, easy to use and written in an object oriented way and so easily customizable (code is commented)
If you want to know the “story” behind the RabbitTween, please follow this link.
RabbitTweenMax is making its apparition in the set. It allows to tween filters and much more coming soon.
Check out the new demo showing what you can actually do with RabbitTween and RabbitTweenMax.

AS3, flash, usefull »

[23 Sep 2009 | 2 Comments | ]

Imagine you want to call a function but you don’t have its reference, only its name.
Well everything in ActionScript 3 follows pretty much the same logic. Every member of an object can be accessed via object["member_name"];
Now it should be easy to get a function from it:

var f:Function = object["function_name"] as Function;