Sự hiểu biết và sử dụng fscommand () fscommand () là một chức năng cho phép một bộ phim Flash để giao tiếp với các ứng dụng hiện đang nắm giữ các bộ phim. Sau đây là những ví dụ về các ứng dụng mà giữ (chủ nhà) Flash phim | Understanding and Using fscommand fscommand is a function that enables a Flash movie to communicate with the application that s currently holding the movie. The following are examples of applications that hold host Flash movies Standalone Flash player Web browser Executable that displays the Flash movie such as those created by third-party tools discussed later in this lesson or executables created using C Visual Basic and so on It s simple to use an FSCommand from within Flash. The fscommand function accepts two parameters a command name and optional extra information. The extra information is used as a parameter of the command fscommand command_name optional extra stull When Flash executes an fscommand the host application receives notification that a command has been sent to it. The name of the command is sent as well as any optional parameter data. The host application must be programmed to deal with these incoming commands it looks at the name of the incoming command and reacts accordingly using any optional parameter data to complete the task. This functionality will become clearer as we progress in this lesson. Let s explore in detail some of the previously mentioned uses of the fscommand function. Controlling the Standalone Flash Player Projectors Using the Publish settings in Flash you can publish a Flash movie as a projector. A projector file typically contains your movie as well as the Flash player. Opening the file causes your movie to play in its own application window the Flash player Projector window . The fscommand function can be used in your movie so that it can communicate with the projector in various ways. There are six built-in FSCommands that the standalone player can execute fscommand quit This command closes the standalone player window. fscommand fullscreen true or fscommand fullscreen false This command forces the standalone player to play at full screen if true or at the defined movie size if false . fscommand allowscale true or .