MACROMEDIA FLASH MEDIA SERVER 2-INSTALLING FLASH MEDIA SERVER 2 Instrukcja Użytkownika Strona 6

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 15
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 5
disconnect()
TheconnectandconnectAsmethodswereexplainedabove,thedisconnectmethodssh ouldbe
usedwhenthew hiteboardisnolongerinuse,orbeforeconnectingittoanothernetconnection
orinstance,whenyournetconnectionclo sesthewhiteb oardwillcallt hismethoditse lf
auto matically.
drawMode
Theproperty drawmodecontrolshowthewhiteboardshouldhandletheboundariesofthe
canvas,itcaneitherscroll(WhiteboardManager.DRAW_MODE_SCROLLING),sca letofitthe
content(WhiteboardManager.DRAW_MODE_SCALE)orbefixedsize
(WhiteboardManager.DRAW_MODE_FIXED)notallowingshapestoexceedtheb ounda ries.
enableCreation
ThisBooleanallowsordisallowstheusertocreatenewshapes
enableSelection
ThisBooleanallowsordisallowstheusertoselecta ndmodifyshapes
APIWrappers/Controllers
TherestofthepublicAPIsaresplitintocontrollers.Thecontrollersa reavailablefrom the
WhiteboardManagerclasswh ichiswhattheWhiteboard.mxmlextendsfrom.Foreachcontroller
therearetwowaystoacquireit,asapropertysuchas‘my _wb.pageControlle r’orasamethod
‘my_wb.getPa geController()’.Thereasonforbothisbecauseflexcantbindtoapropertyofa
propertybutmostofthepropertiesinthecontrollersarebindable,suchas
‘getPageController().selectedPage’soforbindingthemethodmustbeused.
Anexampleusagemightbe topasteallt heitemsintheclipboardwheretheywere+15pixels,this
wouldbedoneassuch:‘my_wb.shape Controller.pasteAtOffset(15,15);’S implyacquirethe
controllerandcalltheappropriatemethod.
§ PageController (whiteboardManage r.pageController||
whiteboardManager.getPageController())
o Thepagecontrollerhasprop ertiesforgettingandsettingthecurrentpageand
eventsrelevanttothepagechanging.Italsohasfunctionalityforcreatingand
clearingpages,alongwithAPIsforstoringsettin gsagai nstapagesoyoucancreate
scenariosthata repagespecific,suchasapagehavingabackgroundimage.
§ ToolContro ller (whiteboa rdManager.toolController||
whiteboardManager.getToolController())
o Thetoolcontrollerallowsyoutoset theactivetool,suchas‘Rectangle’or‘Circle ’
etcandatoolCha ngeeven t.Thereisalsoahelpermethodreg isterButtonw hich
willallowyoutoassocia teanyUIElementwith aselectedpropertywithatoolso
whenatoolisselectedtheappropriatebuttonis.Howeverifyoudidnotwant to
Przeglądanie stron 5
1 2 3 4 5 6 7 8 9 10 11 ... 14 15

Komentarze do niniejszej Instrukcji

Brak uwag