Mike T. Henderson

I make interactive things.

Categories:


More Mike:

AS3 Draw Circle Class

March 19, 2008

I've finally been getting around to re-writing all my ActionScript 2.0 classes in ActionScript 3.0. Since a lot of A.S. 3 is still a little foreign to me, I thought I'd start simple with re-creating my shape classes. First up, draw.Circle.

Continue Reading

0 Comments | Posted under Drawing API

Return Variable Value From Query String

January 2, 2008

I recently came across a case where I needed to use a query string in my URL to determine which content to display in my Flash. I learned that returning a query string can be as simple as using the ExternalInterface.call() method.

Continue Reading

0 Comments | Posted under Strings

MovieClip.hitTest() coordinate issues

October 9, 2007

I came across this issue yesterday in Flash with trying to use hitTest() and detect when my mouse intersected with a certain movieClip. The problem came with me trying to do this while using a liquid Flash layout. When I would publish the file it would work fine, but once I resized the window, Flash would still think that my movieClip was in the lower left corner of the stage. For example, when I moused over the clip, nothing would return, but if I would move the mouse about 150 pixels below, then it would.

Continue Reading

2 Comments | Posted under Collision

Random Bubbles in AS2

June 15, 2007

Using the Sine Wave formula from the previous post, I created this random fizz.

Continue Reading

0 Comments | Posted under Trig

Sin Wave Floating Motion in AS2

May 23, 2007

This is an example I made playing with Sin Waves to create a random floating motion.

Continue Reading

0 Comments | Posted under Trig

Dynamic Card Flip Version 2

May 10, 2007

I never really like how I used external movie clips to create my shading on this card. This forced me to duplicate my animating card and use it as a Mask. This also resulted in a flickering in the gradient. I decided to do a little cleaning up of my code and use beginGradientFill() with the Drawing API to create the gradients of my shading. I noticed that by doing this I was able to get a much, much faster performance out of it. Also no flickering.

Continue Reading

2 Comments | Posted under Drawing API

Perlin Flame Version 2

May 2, 2007

I took another crack a making the flame look a little more real for a project I'm working on. Using the same code from the previous post, I added a fire pit and some smoke.

Continue Reading

5 Comments | Posted under BitmapData

Perlin Flame Version 1

April 30, 2007

I've been playing around with PerlinNoise & DisplacementMapFilter in Flash a lot lately. I first learned about it while reading a chapter from the book Flash 8 Essentials by Paul Barnes-Hoggett. He made an example of a flame on a candle. The flame itself didn't look real, but the motion looked very real. I took that same logic and used tried to create a more realistic looking flame. This is my first attempt.

Continue Reading

3 Comments | Posted under BitmapData

Dynamic Card Flip

April 30, 2007

This is the card flip action I created for the side imaging microsite. The card is set up through Flash's Drawing API. I created it so the height, width, x, and y can be reset and new content can be loaded in with each flip. However, this example only shows the basics flip.

Continue Reading

0 Comments | Posted under Drawing API

CSS Naked Day ‘07

April 3, 2007

Shed your CSS Thursday, April 5th

A day devoted for promoting Web Standards, proper use of (x)html, semantic markup, a good hierarchy structure.

0 Comments | Posted under Misc.