MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 82

Director scripting reference
Table of Contents

Advertisement

You can edit linked scripts normally in the Director Script window. Changes you make are
written to the external files each time you save your Director movie. (If you imported the linked
script from a UNIX server, UNIX line endings are preserved.) If you import a script whose text
file is locked, you won't be able to edit the script in Director.
You cannot apply custom text colors to linked scripts in the Script window. Script auto coloring,
however, is enabled for linked scripts.
To turn an internal script cast member into an external, linked script cast member:
Select the internal cast member and click the Script tab of the Property inspector.
1
Click Link Script As.
2
Enter a name for the script file in the Save As dialog box.
3
Click Save.
4
To reload a linked script after it is edited:
Use the Member object's
If a linked script is edited outside of Director, you can reload it by using the
the Message window. The following statement causes the script member
unloaded and then reloaded:
-- Lingo syntax
member("myScript").unload()
// JavaScript syntax
member("myScript").unload();
82
Chapter 3: Writing Scripts in Director
method.
unload()
method in
unload()
to be
myScript

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents