Easy to realize flash full screen playback

Source: Internet
Author: User
Many people have seen this effect: the CD into the optical drive, the CD automatically run, and then is a flash production of the opening animation, animation is full screen playback, and right click Invalid, animation playback, after the end of the "Close" button, click the button, full screen animation off.

In fact, the above mentioned Full-screen playback and the cancellation of the right menu and other effects are dependent on the Fscommand instructions to play a role. The Fscommand directive is used primarily to control the Flash movie player, but it can also be used to open other applications. The fscommand instruction is valid only when the Flash movie player is executed (. swf and. exe), which is not functional when the animation is previewed by "Ctrl+enter" during the flash production process, and when the animation is published as a Web page file.

The syntax used by the Fscommand directive is: fscommand ("command", "arguments")
The command is an instruction-related order, arguments is the parameter of the command.

Let's talk about how to use the Fscommand instructions to achieve full screen playback, cancel flash playback when the right button menu and turn off Flash animation.

   1, full screen play flash

"Fullscreen" is full screen meaning, in the default case, Flash animation is not in full screen play (false), if you need to let the animation play in full screen state, you must set the fullscreen command to True, written as:
   Fscommand ("fullscreen", "True");
As needed, we can write it to frames, buttons, MC (Movie Clip).

   2, Cancel the right button menu

The ShowMenu command is used to set all instructions (TRUE) No (false) to display the shortcut menu for the Flash animation player, that is, the menu that pops up when you right-click the mouse, the default is True, and if you want to cancel the pop-up menu, you must set it in the first frame:
   Fscommand ("ShowMenu", "false");

   3, turn off the animation

The QUIT command is a. swf and. exe file that is used to close the player, which has no arguments, written as:
   Fscommand ("quit");

If you want a button that closes the animation at the end of the Flash animation, you can do so by following these steps.

Execute "New Symbol" under "Insert" (or press Ctrl+f8), select the button in the pop-up window, and then make a simple button, return to the scene, select the last frame, and drag the newly created button from the "Library" to the scene. Because the button is displayed at the end of the animation.

Write the following code to the button, the implementation of the press button to turn off Flash animation.

On (release)
{
Fscommand ("Quit"); 
}


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.