Class com.bumpslide.util.Draw

com.bumpslide.util.Draw

Description

Drawing Utilities

Method Index

box(), dashedLineHoriz(), fill(), outline(), roundedOutline(), roundedRectangle()

Method Detail

outline

static public function outline(mc:MovieClip, boxwidth:Number, boxheight:Number, boxcolor:Number, linewidth:Number, alpha:Number)

Creates a pixel sharp bounding box on a movie clip @param mc @param boxwidth @param boxheight @param boxcolor @param linewidth @param alpha

roundedOutline

static public function roundedOutline(mc:MovieClip, boxwidth:Number, boxheight:Number, tcolor:Number, rcolor:Number, bcolor:Number, lcolor:Number, fillcolor:Number)

Creates a pseudo-rounded outline for use with the pixel aesthetic Not really rounded, the corners are just missing. @param mc @param boxwidth @param boxheight @param tcolor @param rcolor @param bcolor @param lcolor @param fillcolor

fill

static public function fill(mc:MovieClip, boxWidth:Number, boxHeight:Number, boxColor:Number, alpha:Number)

Alias for Draw.box created for backwards compatibility

Parameters

mc
boxWidth
boxHeight
boxColor
alpha

box

static public function box(mc:MovieClip, boxWidth:Number, boxHeight:Number, boxColor:Number, alpha:Number)

Draws a box on a movieclip

Parameters

mc
boxWidth
boxHeight
boxColor
alpha

dashedLineHoriz

static public function dashedLineHoriz(mc:MovieClip, width:Number, dashColor:Number, dashLen:Number, dashGap:Number)

Draws pixel-perfect horizonal dashed line

Parameters

mc
width
dashColor
dashLen
dashGap

roundedRectangle

static public function roundedRectangle(mc:MovieClip, w:Number, h:Number, cornerRadius:Number, thickness:Number, color:Number, alpha:Number)

Draws a rounded rectangle. modified version of mc.drawRect() - by Ric Ewing (ric@formequalsfunction.com) see http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html

Parameters

mc
w
h
cornerRadius
thickness
color
alpha