MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Instrukcja Użytkownika Strona 18

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 63
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 17
TEXTCRUNCHER XTRA HELP: GETTING STARTED
TextCruncher is a Scripting Xtra. Scripting Xtras are used to extend the Lingo
language with new functions and datatypes. Unlike Asset Xtras there is no visual
representation of a scripting Xtra in the Director interface, and you can not create
castmembers or sprites.
The first step is to download and install the TextCruncher Xtra, following the
instructions in the installation page. Now that TextCruncher is installed, let's verify
that the installation was successful. If you are using DirectorMX you should see the
TextCruncher entry in the Scripting Xtras context menu, appearing at the top of the
message window. Selecting the TEXTCRUNCHER submenu and the "put
interface" entry will output a list of all commands understood by TextCruncher in
the message window. You can also use the following command
Lingo:
put the xtralist
JavaScript syntax:
trace(_player.xtraList)
to verify which Xtras are installed, including the version number for each one.
We will now try a simple scripting session using TextCruncher and the message
window. All of TextCruncher functions are available as global Lingo keywords, so
there is no need to create an instance of the Xtra in order to use them. For example:
Lingo:
mystring = ReplaceAll("dog cat", "mouse", "dog")
put mystring
--"mouse cat"
JavaScript syntax:
var mystring = ReplaceAll("dog cat", "mouse", "dog")
trace(myresult)
Online Help
18
Przeglądanie stron 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 62 63

Komentarze do niniejszej Instrukcji

Brak uwag