
Notes
ShapeRefobject
TheShapeRefobjectisu sedtoreferenceashapeonthestage,itshouldneverbeinstantiated,you
cangetthecorrectonefromtheshapeControllersuchasfromallShapes,selectedShapesorina
shapeevent.
Itcontainsapropertycalled‘sprite’,thisisthea ctualshapeMovieClip,thereisalsoaproperty
called‘propertyBag’,thisisahelperclasswhichholdsallthedataforashape.Youcanupda te
propertiesonashapebyeditingitinthepropertyBagandthencalling sa ve,e.g.
(shapeController.selectedShapes[0]asShapeRef).property Bag.setPropert y(“width”,200);
(shapeController.selectedShapes[0]asShapeRef).save();
andthechangewillbesenttoeverybody.
Shapeproperties &ifrequired
IfyouaremanipulatingashapemanuallysuchaswithshapeController.cre ateShape(or
shapeController.setShapePropertyyouneedtoknowwhatpropertiesashapesu pports,ifa
propertyisreq uiredyoumustincludeitwhenyoucreateashapev iathecreateShapemethod.All
colorsarenumbersandcanbe‐1fornofill/noline.
Circle
Property Required Notesif
applicable
x True
y True
width True
height True
line Size True
line Color True Canbe‐1fornoline
fillColor True Canbe‐1fornofill
Freehand
Property Required Notesif
applicable
x True
y True
width True
height True
line Size True
Commenti su questo manuale