
Shapeproperties&ifrequired ................................ ................................................................... ......12
Introduction
TheWhiteboardComponentiswrittenforusewithFlexapplicationsandusesFlashMediaServer
asabackendfordataandsynchronization.Thewhite boardcomesintheformofacontainer
Whiteboard.WhiteboardManager.ThisclassisacanvasandallthewhiteboardsUIelementscan
beputintoitoraround it,thisgivesyoucontroloverallnonshape UIsuchasthemenubarsand
toolbarsetcforafullycustomizedexperience.
AswellasUIcustomizabil itytherearealsomanypublicAPIswhichgivefullcontroloverthe
whiteboardfunc tiona lity,aslowlevelascreatingsh apeswithjustmethodcalls.ThepublicAPIs
aresplitintoseveral‘controllers’whichhostrelevantmethods,propertiesandevents.
Setting upthewhit eboard
Server‐side(FlashMediaServer)
(Ifyouarenewtoflashmediaserverpleaseread
http://flashcomguru.com/artic les/fms2_basics.cfmandthevariousothergettingstartedarticles
onflashcomguru)
Tosetupyourserversideapplicationsimplytaketh eWhiteboard.ascandcopyitintoyour
applicationdirectoryandthenaddthelineload(“Whiteb oard.asc”);toyourownserversidecode .
Togetstartedquicklywit hthesamplescopytheflex_whiteboardfolderfromthe/serverside/
d irectoryintoyourlocalhostapplicationsfolder(typicallyc:\programfiles\Macro media\Flash
MediaServer2\applications\.
Client‐side(FlexBuilder)
InordertousethewhiteboardinyourprojectthefileWhiteboard.SWCmustbeincludedinyour
proj ectaswe llastheresourcefiles(menusandicons).Todothisfindaversionofthewhiteboard
fromthesamplesyouwishtousesuchastheBasi cWhiteboardandbrowseintoit.Ineach
sa mplethereisafoldercalled‘Whiteboard’,thisentirefoldermustbe broughtintoyourproject.
Youcandothisbyeither importingthefolde rin eclipsebyrightclickingonyourapplication‐>
import ‐>filesystemandthenbrowsingtothefolder.
Commenti su questo manuale