#32000/12/5 19:56:23
去macromedia.com搜索了一番,找到些东西,看个似懂非懂, 贴出来请大家看看,究竟是怎么回事?
我比较关心二点:一是它怎么用,二是用了之后有什么好处。
Activating safemode
In any Director environment, including the Shockwave player, a projector, the authoring environment, a movie in a window, and so on, you can activate safe mode with the following Lingo command:
set safePlayer = true
You cannot exit safe mode in any of the playback environments. Once in safe mode, the movie and any movies opened in a window or loaded later are subject to the safe mode restrictions.
When a movie is played in safe mode, it is restricted in the following ways:
The movie cannot read or write files on the user's local disk, except to get or set a movie's preferences. There is, however, one exception. A movie can read files that are stored in a folder named dswmedia (or a subfolder at any depth), which is a subfolder of the folder containing the Shockwave player. Dswmedia is also called the support folder. See Using dswmedia folders and the support folder later in this document.
Lingo that reads from or writes to a local disk does not function. (See the sections that follow for a list of Lingo restrictions.)
The movie cannot obtain or broadcast any data about the local system, including local files, pathnames to local files and disks, local IP addresses, and so on. It can obtain system configuration information such as the type of operating system, and the number of colors the monitor is set to display.
The movie cannot install binary code on the client machine unless Director has authenticated the data and the user approves of the source.
The Shockwave player warns the user when the movie is about to do something which might be a security risk, such as accessing information from a server outside the domain from which the movie is playing, or switching into or out of a secure protocol.
Note that when you play a movie in a browser with the Shockwave player, it is in always safe mode, even if the movie is on your local system. This is true even when you use File > Preview in Browser to run a movie that is currently open in the authoring environment. This means that linked media that appears in the authoring environment may not appear when you preview in a browser. See the next section for instructions on solving this problem.
Using dswmedia folders and the support folder
Use a dswmedia folder to obtain data from a local source while a movie is playing in safe mode. Director treats folders named dswmedia as exceptions to the safe mode feature that normally stops movies from reading data from any local source. Any linked media or cast files in a dswmedia folder, or a subfolder of any depth, may be read by a movie running in safe mode. You can use relative links or full file paths to files in dswmedia folders.
To test movies in a browser locally before uploading them to your Web server, place the movie, linked casts, and linked media in a directory tree within a dswmedia folder and use relative links. When you move the movie and its media to a Web server for testing, keep the directory structure intact. You must use file and folder names which do not have spaces or capital letters, and which have recognized file extensions like .dcr and .gif, in order for them to be accessible from your server.
To access local media while a movie is playing in safe mode, install the media in a dswmedia folder in a known location on the user's computer. This location can be a CD that you provide.
There is a dswmedia folder with special properties in the Shockwave player folder (in the same location as the Xtras folder). This folder is called the support folder. If you, or a user, pre-install media in the support folder, you can import or refer to the media in Lingo with URL like this:
file://FILENAME
Director interprets this path as a URL to the support folder. You can only enter this path in Lingo, not in dialog boxes that accept URLs.
You can only use the file://FILENAME syntax to reference files in the support folder. You cannot use this syntax to refer to subfolders. (file://folder/filename.ext).