Several classes are used for reading in problems and creating hint buttons:

 

MbProb | MbEvent | MbSpecHint | MbHintButton

MbDragPoint extends Sprite

Use

A cross-hairs point that can be dragged around the screen

Constructors

MbDragPoint(b:DisplayObjectContainer)


Public Variables

myName String ""
draggable Boolean true

Setters/Getters

setNormalState(dotSize=18, dotColor=0xdca921, outlineSize=3, outlineColor=0xe7c058, szMult = 1.2)

setSize(dotSize_:int)

control appearance

setBounds(r:Rectangle)

MbDragGraphPoint extends MbDragPoint

Use

can be controlled on a graph, snap to a line or axes, draw guidelines

Constructors

MbDragGraphPoint(b_:MbGraphingBoard, xStart=0, yStart=0, labels:Array=null)

Public Variables

decPlaces int 1
xOn, yOn, slopeOn Boolean false -- no labels shown
xGridLineOn, yGridLineOn Boolean false -- no gridlines shown

Setters/Getters

setColor(col:uint)

setVis(xOn_, yOn_, slopeOn_)

setSnapTo(type:String, num=0, xVal=0)

"x-axis", "y-axis". "equ", "graph"

num is for equation number on a multi-equation graph

setX(xVal)

for snapped points only

updateExtras()
updateXLabel() , updateYLabel() , updateXGridLine(), updateYGridLine() , updateSlopeLabel(d:Number=0)

update extras includes all of the below

x gridline non-functional

//getGraphX():Number, getGraphY():Number --> don't use

getXVal(), getYVal():Number

x and y value of dragpoint, expressed in graph coords

getXValRound(dec:int=2):String, getYValRound(dec:int=2):String

x and y value of dragpoint FORMATTED (in graph coords)