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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 15
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 9
whiteboard.pageController.addEventListener(PageEvent.PAGE_SETTINGS
Thisevent iscalledwhensettingsforthecurrentpagearechangedandonfirstcon nect ingtoa
pagewithsettings.Iftherearenosetting sth erewillbenoeventsoit’simportan ttocleanup
whatyou’vedoneinPageEvent.PAGE_CHANGEwhichiscalledjust beforethepagechanges.
Forabackgroundcolorsettingyoucoulddra ginacolorpic kerandwhen itchangesc all:
whiteboard.drawingArea.setStyle("backgroundColor",0xFFFFFF);
YouwouldsubscribetothePageEven t.PAGE_SETTINGSeventandhandleitlikethis:
pri vatefunctiononGetPageSettings(event:PageEvent):void
{
var/jointfilesconvert/295653/bgcolor:Number=whiteboard .pageController.getCurrentPageSetting("/jointfilesconvert/295653/bgcolor")as
Number;
if(bgcolor!=NaN)
{
whiteboard.drawingArea.setStyle("backgroundColor",/jointfilesconvert/295653/bgcolor);
}
}
ifthecoloristheresetthedrawingArea’sbackgroundc olor.InthePAGE_CHANGEeventyou
wouldclearthebackgroundcolorincasethenextpagehasnosettings:
whiteboard.drawingArea.setStyle("backgroundColor",0xFFFFFF);
Itisalsopossibletosendsettingswhencrea ti nganewpage,e.g.
whiteboard.pageController.createPage({/jointfilesconvert/295653/bgc olor:0xCCCCCC,pageName:”mypage”});
Youcouldshowadialogwhenauserpre ssesthe>a rrowtocreateanewpageandaskfora page
nameanddisplaythatnameinsteadof“Pagexofy”.
Changingthestampsshapes
Tochange/addorremoveashapefromthestamptoolyouneedtomodify
Whiteboard/tools/menuBars/_menuStamp.mxml.
Youwillseeintheheaderimportstatements,sucha s:
[Embed(source='../../icons/stamps.swf',symbol='stamp_diamond')]
[Bindable]
publicvarstamp3:Cla ss;
Youneedto add/changeorremoveastatementlikethis,youcanchangethesymbolsin
stamps.swfbyeditingstamps.flainWhiteboard/icons.
Vedere la pagina 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15

Commenti su questo manuale

Nessun commento