Home Contact

[March 27, 2006]

PixelTip

Filed under: ActionScript — @ 11:14 am

In my Flash 8 bit-twiddling adventures I’ve found it useful to be able to check the colors of individual pixels in a running swf. If you need that too, I offer you the PixelTip class, a variant of my ToolTip class that simply displays the coordinates and value of the pixel under the cursor. (The cursor itself doesn’t show up in these screenshots.)

PixelTip

The class has just four public methods, all static:

· setBoxSize(wd:Number, ht:Number) (default 150 x 50)
· showDecimal(yesno:Boolean) (default true)
· showHex(yesno:Boolean) (default false)
· register(tipTarget:MovieClip). Of course you can register multiple MovieClips.

Download

2 Comments »

  1. Very nice!

    Comment by zikey — March 28, 2006 @ 3:34 am

  2. Great reading, keep up the great posts.
    Peace, JiggaDigga

    Comment by JiggaDigga — April 7, 2006 @ 10:30 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment


Contents copyright © Alan Shaw 2005-2008

25 queries. 0.219 seconds. Powered by WordPress version 2.5.1