
Testing your movie
479
Interacting with browsers
You can use
setPref()
or
getPref()
to read or write simple text
preference
files to the Prefs
folder found in the Shockwave Player folder.
To 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 Macintosh are described in the following list:
Windows
The \Macromed\Shockwave 8 subfolder of the system folder; the system folder is
typically c:\winnt\system32 or c:\windows\system
Macintosh
The OS 9 path is The System Folder:Extensions:Macromedia:Shockwave 8
folder. The OS X path is /my Volume/Users/<me>/Library/Application Support/Macromedia/
Shockwave/prefs.
The
setPref
method cannot write to a file that is on a CD.
To 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.
To 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
However you decide to 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. The following list describes things you might want to check
before distributing your movie over the Internet; remember, however, that each movie has its own
special needs:
•
Compare a streaming version of the movie to a nonstreaming version to see if the performance
is different. Some smaller movies might work better without streaming playback.
•
Verify that all linked media elements appear correctly. To see if the movie correctly handles an
error, try forcing the linked media elements to fail.
•
Run the movie on all systems your users are likely to have. For the general public, these include
Windows 98, 2000 or XP. For Macintosh OS X users, these include Power Mac G3 running
OS X 10.2.6 or 10.3 or later. For Macintosh Classic users, a Power Macintosh G3 running
System 9.2. Browsers include Netscape 7.1 or later; Microsoft Internet Explorer 5.2 or later
and a color monitor.
•
Test your movie on a machine that was not used to develop the content: this is critical.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...