McGriff Sez, Real User Testimonial

Bark back against crime!

Have you ever had the perfect message, but then not had the perfect dog to bark it? Well now you have the dog at least. Hear what real users are saying about McGriff Sez!

DW: yo did you get my barkblast? cobrien: ya I didnt know what that was so I ignored it

DW: did you get my barkblast?

l77: huh? what’s that?
DW: it’s a message on Facebook
a dog barks it
l77: oohh
i’ll check
i haven’t check facebook in a while

DWdid you get my barkblast?

kbw: what?
DW: on Facebook
kbw: i don’t know what that is
DW: you should check it out

so did you get it? kbw has left the chat

It all started in early 1995 when an episode of a famous TV show was on TV. The dream was an Internet in every PC and a barking dog messenger service in every Internet. The rest, as they say, is a long story…

Some Tips and Tricks with Tweenlite

Well partaking of some forays into AS3 I came across this sweet utility: TweenLite. I highly recommend checking it out.

Here are some cool tricks that I wish I had known earlier.

1. Tweening scrollRect

        const scroller:DisplayObject; // This is the object that we want to display a portion of via scrollRect
	const scrollRect:Rectangle; // This is the scroll rect we tween the properties of
        private function centerScroll(player:Player) {
  , 1.2, {x:player.x, y:player.y, onUpdate:updateScroll});
	private function updateScroll():void {
		scroller.scrollRect = scrollRect;

It is seriously that easy. The trick is knowing to use the onUpdate parameter to get around being unable to tween scrollRect directly.

2. Random Assemblage

Say you have a logo built out of dozens of tiny stars. You want this logo to assemble from a random starting configuration, but who has the time to micro-manage a bunch of little instances? Well, now, no one needs to. Behold:

for(var i:int = 0; i < numChildren; i++) {
	star = getChildAt(i);

	TweenLite.from(star, duration, {x:String(Math.random()*800 - 400), y:String(Math.random()*800 - 400)});

Just place this little snippet in the actions of your MovieClip. The secret here is using the iteration over all the child elements so we don’t have to name them. Also, we can use random numbers so we don’t have to bother laying them out, they just end up in the correct layout from wherever they happen to start.

I’m sure there are many more ways to utilize TweenLite to simply accomplish many amazing things, and I’d like to hear about them!