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

  • 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 10
Youalsoneedtoupdatethestamparraytoin cludeorremovetheitemyoumodified.
pri vatevar_stamps:Array=[stamp1,stamp2,stamp3,stamp4,stamp5,stamp6];
Finallyyoushouldaddorremovey ourstampitemfromtheViewStackatthebottomoftheclass
id=”vs”.
<mx:VBoxtoolT ip="Copyright"icon="@Embed (source='../../icon s/stamps.swf',
symbol='stamp_c')"/>
ItsindexintheViewStackmustcorrespondtotheindexofthestampinthe_stampsarray.
Multipleuniquewhiteboards
seesamples/WhiteboardM ainDemoandits“Room”setting
FMScomponentstendtotakeaninstance/pre fixapproachtoinstancingwherebyitID’syour
componentsinstancewith[componentID].[instanceName].[resourceName],thewhiteboarddoes
this.
TraditionallytheinstanceNameisthenamepropertyofthecomponentsUIandthat’strueagain
forthewhiteboardifyouusethe.connect(nc)method,howeverthereisalsoa
whiteboard.connectAs(nc,instanceName);method.
Bysettin gtheinstancenameyou canhavemultiplewhiteboardswiththeirownpagesand
history.
Addingcustomkeyboar dshortcuts
KeyboardshortcutsarecontrolledbythekeyController,akeyboardshortcutyoumightliketo
addcouldbewhentheESCkeyispressedanyselectedshapedeselects.
Thiswouldbedoneassuch:
whiteboard.keyController.registerS hortcut(Keyboard.ESCAPE,
whiteboard.shapeController.deselectSha pes,true);
WecallregisterShortcutbecausewejustwanttheESCkeytotriggerit,notESC+shi ftorESC+
ctrl.Thefirstargumen tisthekeycode,thisisnotacharcode,ifyouwantacharacterornumber
tobethekeycodeusetheKeyCon troller.charToKeycodemethod.Thesecondargumentisthe
callbackmethod,thiscanbeyourownmethodorjustonealreadytheresuchasabove.TheLast
argumentsta teswhetherthewhiteboardmustbefocused totriggertheevent,forexample,ifwe
setupCtotriggercopyandwesetthelastargumenttofalsewhenauserwastypinginatextfield
andhittheC itwouldcopysh apes,whereasiftheargumentwastrueitwouldonlycopywhenthe
whiteboardhasfocus.
Youcanforcefocusonthewhiteboard bycallingwhiteb oard.forceFocus();
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15

Commentaires sur ces manuels

Pas de commentaire