MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Bedienungsanleitung Seite 10

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 16
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 9
10
Lingo
Lingo
The behavior script for the start/stop button
simply inverts the value of the running variable.
Note that we need to use the keyword global
to tell Lingo that running is a global variable
rather than a local variable.
The behavior script for the reset button
simply sets the clockTime variable to zero.
Again, we must indicate that clockTime
is a global variable using the global keyword.
Lingo
Lingo
We can now create a frame script for the first frame.
If the clock is running, then we update the clock time.
By default, Director runs movies at 30 frames per second.
We also need to rotate the clock hand. To do this, we first fetch the sprite
that is named StopwatchHand. (You name a sprite by first selecting it and
then entering a name in the property inspector.)
When we have a reference to the sprite, we update its rotation.
Finally, we jump back to the first frame.
Seitenansicht 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 16

Kommentare zu diesen Handbüchern

Keine Kommentare