MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Manuel d'utilisateur Page 11

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 16
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 10
11
Fetching cast members
Fetching cast members
Use the global function castLib(), which returns a
reference to a Cast Library core object.
firstMember = castLib(1).member[1]
Cast library 1 is the default library,
and member 1 is the first cast member.
You can also say
member = castLib(1).member[”tomato”]
to fetch the cast member named tomato.
Fetching sprites
Fetching sprites
Use the global function channel(), which returns a
reference to a sprite channel.
firstSprite = channel(1).sprite
returns the sprite that is in the first sprite channel
for the current frame.
If a different sprite occupies channel 1 in the
next frame, that sprite will be returned.
Access the corresponding cast member by saying
castMember = firstsprite.member
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16

Commentaires sur ces manuels

Pas de commentaire