Learn something new every day

That’s what I love about Flash and the Flash community. Not a day goes by that I don’t learn something new that somehow I missed.

I had a few minutes today and was just poking through George Medve’s TweenExtended Class [LINK] in SEPY and noticed “OnEnterFrameBeacon.init();”. Hmm.. I hadn’t seen that before.. So curious as I am, I researched it and came up with blog article written by Darron Schall back in Jan. 2004 [LINK]. Wow! How did I miss that? Or maybe I saw it and at the time didn’t have time to absorb it.

Anyhow.. the jist is that you can attach onEnterFrame’s to objects without having to hassle with creating your own movieclips and managing them. Pretty cool.

[as]
import mx.transitions.OnEnterFrameBeacon;

OnEnterFrameBeacon.init();

var myObject:Object = new Object();
myObject.onEnterFrame = function() {
trace(”nice!”);
}
MovieClip.addListener(myObject);[/as]

That’s the 2nd Kudo’s to Darron this week. DateFormatter Class