Griffith Designs

Archive for September 26th, 2010

AS2 MovieClip Proximity to Mouse

by webmasterjunkie on Sep.26, 2010, under Actionscript, Programming

Here’s another neat little script that I had to piece together because there was no good resource available on the Internet. I have quite a few more helpful little scripts that I will post soon.

1
2
3
4
5
6
7
function get_proximity (clip:MovieClip):Number {
    var mouseyX:Number = _root._xmouse;
    var mouseyY:Number = _root._ymouse;
    var clipX:Number = clip._x;
    var clipY:Number = clip._y;
    return Math.sqrt ((mouseyX - clipX) * (mouseyX - clipX) + (mouseyY - clipY) * (mouseyY - clipY));
}
Leave a Comment :, , more...

AS2 Random Number Generator

by webmasterjunkie on Sep.26, 2010, under Actionscript, Programming

I remember having to scour the Internet in order to get the code pieced together just right in order to do this. So, in case you were looking, here you go.

1
2
3
function get_random (lowNumber:Number, highNumber:Number):Number {
	return Math.ceil (Math.random () * (highNumber - lowNumber + 1)) + (lowNumber - 1);
}
Leave a Comment :, , more...

The Town

by webmasterjunkie on Sep.26, 2010, under Media, Movies

OK, if you are missing the flare and rampant gunfire we got from the action movie heist Heat (Robert DeNiro and Al Pacino), you have to see this movie. It places right up there next to it when it comes to this genre. I must admit that I was pleasantly surprised and just as equally pleased.

From start to finish the plot was developed and well executed. With stellar action scenes and well used dialogue, this definitely deserves to be called one of the years best movies.

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Connect