MACROMEDIA FLASH MEDIA SERVER 2-INSTALLING FLASH MEDIA SERVER 2 Manuale Utente Pagina 5

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 15
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 4
theapplicationCompleteeventetc.Toconnectitsimplycreateyournetconnectionandcall
eitherwhiteboa rd.connectorwhiteboard.connectAs.
nc=newNetConnection();
nc.connect("rtmp:/flex_whiteboard");
whiteboard.connectAs(nc,"demo1");
Theconnect( nc)methodisthesameascalling.connect As(nc,this.name);Thesecond
argumentofcon nect Asistheinstancename .Ifyouwantedtohaveseveralwhiteboardsi nthe
sa meapplicationyoucoulduse1instanceofthewhiteb oa rdUIandjustcallconnectAswith
d ifferentIDs.Thesharedobjectsonth eserversidewhichstorethedatawillbenamedwith:
wb.{instanceID}.{soNamee.g.pages|p1|cache}.
Youcannowruntheapplication.
Notes: ifyouarenotgoingtouseasampleWhiteboard.mxmlyoumustmakesuretogivethe
whiteboardmanager2things.Acanvastodrawonandaviewstackwiththesubmenus.
CanvasdrawingArea
Thecanvascanbeany canvasanywherewithanysettings andyouregisteritbycalling
whiteboardManager.registerDrawingArea(my_canvas);Thewhiteboardwillnotworkwithouta
canvas.
MenuViewStack
Youshouldalso giv ethewhiteboard amenustackifyouintendforuserstobeabletocreate
shapesoreditthem.Basicallyyou musthaveaViewStackwhichcontainsanumberofHBox’s,
eachHBoxshouldhaveitsnamepropertysettothetoolsname,suchas‘Select’or‘Rectangle’.
InsidetheHBoxso ftoolsyouwanttohavemenusthereshouldbeaUIComponentwhichextends
Whiteboard.tools.menuBars.WhiteboardMenuBar.Thisshouldbecalled‘menu’.Youca nsimply
copyandpastetheexistingviewstackfromoneofthesamplestheya refoundin
Whiteboard/Whiteboard.mxmlinmostsamples alongwiththedefaultcanvas.
OnceyouhaveyourviewstackyoushouldregisteritviawhiteboardManager.registerMenuStack(
my_v iew_stack);
UsingThePubli cAPIs
Thewhiteboard.mxmlcomponentextendsfromtheclassWhiteboardManagerwhichcanbe
foundintheasdocs.Thewhiteboardc ontai ns3propertiesand3methods,therestofthemethods
andpropertiesarethecontrollerswhichownotherareasoffunctionality.
Vedere la pagina 4
1 2 3 4 5 6 7 8 9 10 ... 14 15

Commenti su questo manuale

Nessun commento