
ADOBE DIRECTOR 11.0
User Guide
471
•
Avoid using long repeat loops in browsers. Such repeat loops can make the computer appear unresponsive. As
an alternative, you can split long operations into sections and execute them over a series of frames, or check for user
actions in an
on exitFrame
handler. Remember that the status of any active network operation does not update
while long repeat loops are running.
•
Don’t use a
repeat
while
loop to check whether a network operation is complete.
Lingo or JavaScript syntax that is unsupported in browsers
The following Lingo or JavaScript syntax features are unsupported for movies that play back in browsers:
•
Creating and managing a MIAW
•
Installing and managing custom menus
Interacting with browsers
Use
setPref()
or
getPref()
to read or write simple text preference files to the Prefs folder found in the Shockwave
Player folder.
Write to a preferences file on a local disk
•
Use the
setPref
method. For more information about this method, see the Scripting Reference topics in the
Director Help Panel.
After the method runs, a folder named Prefs is created inside the Shockwave Player folder (in the same location
as the Xtras folder). The
setPref
method can write only to that folder. The default folder locations for Windows
and Mac are described in the following list:
Windows
The \Adobe\Shockwave 8 subfolder of the system folder; the system folder is typically
c:\winnt\system32 or c:\windows\system
Mac
The OS 9 path is the System Folder:Extensions:Adobe:Shockwave 8 folder. The OS X path is /my
Volume/Users/<me>/Library/Application Support/Adobe/Shockwave/prefs.
The
setPref
method cannot write to a file that is on a CD.
Return the content of a file that was written by a previous setPref method
•
Use the
getPref()
method. If no
setPref
method has already written such a file, the
getPref()
method
returns
VOID
if called from Lingo or
null
if called from JavaScript syntax. For more information about this method,
see the Scripting Reference topics in the Director Help Panel.
Specify text in a browser’s status area
•
Use the
netStatus
method. For more information about this method, see the Scripting Reference topics in the
Director Help Panel.
Note:
Some browsers do not support this method.
Testing your movie
Regardless of how you create your movie, test it thoroughly before releasing it to the public. Make sure you test on
systems with all common types of Internet connections, especially on slow modems and at busy times of day. See the
following list of items to check, and remember that each movie has its own special needs:
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...