MACROMEDIA FLASH MEDIA SERVER 2-INSTALLING FLASH MEDIA SERVER 2 Manual do Utilizador Página 9

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 15
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 8
Makethecanvasscroll,scale orbefixed size
Tobestfityourapplication3drawmodesareincluded:
Ø Scrolling–shapesareallowedtogooffthecanvasandthiswillcausethecanvastoshow
itssc rollbarsandlet usersscrolltoseealloftheshapes.
Ø Scaletofit –shapesareallowedtogooffthecanvasagainbutwhen theydothewhole
pageisscaledsoitfitsintothesizeofthedrawingAreacanvas.
Ø Fixedsi ze–shapeswillneverbeallowedoutsideofth eedg esofthecanvas.
TosetthedrawModesi mplyassignthe valueonyourwhi teboardorwhiteboardManagertoone
oftheconstantso nwhiteboardManager,e.g.
my_whiteboard.drawMode=WhiteboardManager.DRAW_MODE_SCALE;
my_whiteboard.drawMode=WhiteboardManager.DRAW_MODE_SCROLLING;
my_whiteboard.drawMode=WhiteboardManager.DRAW_MODE_FIXED;
Addinganimagetothewhiteboard
Seesamples/ImagesinWhiteboard
ImageshavenobuiltinUIbecausetheyarethe kindofthingwhichrequirescustomization,a
customuploadsystemetc.Onceyouhavethatsysteminplaceitissimpletoa ddanimage.
Simplytakethe shapeControllerandcallcreateShapeassuch:
my_whiteboard.shapeController.createShape(“Image,{x:50,y:50,width:100,height:100,
src :”foo.jpg”,l ineSize:1,lineColor:‐1});
Andanimagewillbeaddedwithallthosesettings.ThelineColor,likefillColorandlineColoron
othershapescan be‐1,‐1meansnol ineornofill.
Theimageyouusemustbeonthesamesi teasthewhiteboardoryoumusthaveloadedapolicy
filebecauseflash’ssecuritywon’tallowcrossdomainimageloading.
GivingPagesab ackgr oundcolor/anyproperty
Seesamples/PageSettingsWhiteboard
Theflexw hiteboardhasAPIsthatallowyoutostoredataagainstaparticularpage,thiscou ldbe
usedforanypagerelevantsettingssuchasbackgroundimage,page namee tc.Thesemethodscan 
befoundinthepagecontroller,asim pleexamplewouldbe:
whiteboard.pageController.setCurrentPageSetting("/jointfilesconvert/295653/bgcolor",0xCCCCCC);
Youcansetanypropertyyoulike(itmustbeinthestandardformatofaproperty,akajustalpha
numeric).Theabove codesetsavaluecalled/jointfilesconvert/295653/bgcolorforthecurrentpageas0xCCCCCC.When
thatmethodiscalledtheeventbelowiscalled:
Vista de página 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Comentários a estes Manuais

Sem comentários