MACROMEDIA FLASH MEDIA SERVER 2-INSTALLING FLASH MEDIA SERVER 2 Manuel d'utilisateur Page 8

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 15
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 7
Forthemostpartyoucan’tremovea propertyalltogetherbeca usethe toolhasregistereditas
‘requiredford raw’butyoucanremoveitfromtheuser.Foralistofrequiredfieldsforeachtool
seethetoolinfoatthebottomofthisdocume nt.
Fortheexampleofonlyhaving1fontinthetexttool,openthe_menuText.mxmlfrom
Whiteboard/tools/menuBarsanddeletethefontcom bobox.
Whiteboardmenubarsimplement2methodsgetValueandsetValue.getValueiscalledwhenthe
whiteboardneedsthecurrentva luefromthe menu,suchasforanewshape beenc reated,itwill
callgetValuewiththepropertyname,youmustthenreturnwh atthevalueis.Inourcasewecan
re place:
elseif(valueID=="font")
{
re turnfontCombo.value;
withreturn“Verdana”orwhi cheverfixedfontwewishtou se.
ThesetValuemethod is calledwhenashape isselectedsothemenubarcanupdateitselftohave
allthevaluesoftheselectedshape.Wecanremoveentirelythestatementforsettingthefont.
MenubarscanalsoinformthewhiteboardaboutachangebycallingupdateValue(“valueID”,
value);youcanremoveallinstancesofupdateValue(“fontalso.
Fadinginthedrawingcanvaswhenthepageloads
Thisisasimpleeffecttomakethepageloading lessharshandinstant.Addafadetagtoyour
Whiteboard.mxmlandconfigureithowever youwant:
<mx:Fadeid="fadeEffect"duration="500"alphaFrom ="0.0"alphaTo="1.0"></mx:Fade>
Theninthedraw ingAreacanvassettheshowEffecttoyoureffect:
showEffect="fadeEffect"
Thenintheinitfunctionregister2eventswhichyouwillusetomakethecanvasvisibleand
invisible:
pageController.addEventListene r(PageEvent.PAG E_CHANGE,function(){drawingArea.visible=
false;});
pageController.addEventListene r(PageEvent.PAG E_CHANGED,function(){drawingArea.visible
=true;});
PAGE_CHANGEi scalledasapageisabouttoconnecttoge tsitsdataand PAGE_CHANGEDis
calledwhenthefirstdataisinwhichisaftertheshapesonthepagehavebeendrawn.
Vue de la page 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Commentaires sur ces manuels

Pas de commentaire