Home ContactTwitterFlickr

[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

Get Your Own Real Time Visitor Map!

Entire contents copyright © Alan Shaw 2005-2009. All rights reserved. You may not reprint or repost the contents of this site without the express written permission of the author.

25 queries. 0.415 seconds. Powered by WordPress version 2.8.4

Bad Behavior has blocked 574 access attempts in the last 7 days.