flash timeline control commands

2010-04-03  来源:本站原创  分类:Flash  人气:256 

In the Flash animation script to control video playback order, including play, stop, gotoAndPlay, gotoAndStop so, here we will introduce these commands.
1, play (play) stop (stop) command through the key-frame, add a button or movie clip instance, or stop orders can play Flash movies to play or stop control. play the main function is to allow the command to stop the animation continues to play, it does not have any parameters, the specific use of the following:
play (); for example, a button we can add the following statement:
on (press) (
play ();
) The above statement is to achieve the functionality is that when the left mouse button, when pressed to animation to play. stop and play the role of the contrary is a command, which is used to pause playback of the animation to stop. If a key frame to add a stop command if the Flash to the time frame will stop until the play command to continue playing. stop the command without any parameters also the specific usage as follows:
stop (); we have had experience: making good on the Flash file in the implementation of "Test Movie" command when the animation loop is always playing over and over again. If you want the animation only plays once, we can add a key frame for the final stop order to achieve.
2, goto (jump to a frame) command frame jump is a very important command goto timeline control commands, it is mainly used to control the animation playback head jumps, including two command gotoAndPlay and gotoAndStop. gotoAndPlay command function is to allow players to achieve the first jump to a scene from the frame of a frame and start playing. The syntax is as follows:
gotoAndPlay (scene, frame); which parameters can only be used in the timeline. Parameter frame is the first player to jump the frame number or frame label. Note: The frame components instance name tags and more similar, the specific setting method: select a key frame, and then press Ctrl + F3】 【group and the healthy open the "Properties" panel "frame label" box, enter a label string can be. gotoAndPlay command is mainly used in the key frame or button, such as the following example:
gotoAndPlay (20);
gotoAndPlay ("scene1", "fra"); the above statement, before a function is to play the first jump to the current scene of the first 20 and start playing from that frame. Achieved after a function is to play the first jump into the scene "scene1" in the frame label "fra" key frame and start playing from that frame. You can add the above code to a key frame is used to control the play head jump.
gotoAndstop command and gotoAndplay command but mean the opposite is true. In addition there are nextFrame and prevFrame.
nextFrame order to achieve the function is to play the first jump to the next frame, use the following:
nextFrame (); prevFrame order to achieve the function to play the first jump to the previous one, use the following:
prevFrame ();
This carried over: http://www.5uflash.com/flashjiaocheng/Flashjichucaozuo/2993.html

  • flash timeline control commands 2010-04-03

    In the Flash animation script to control video playback order, including play, stop, gotoAndPlay, gotoAndStop so, here we will introduce these commands. 1, play (play) stop (stop) command through the key-frame, add a button or movie clip instance, or

  • flash back control of broadcast or is broadcast 2010-04-03

    A net friend asked: How to control the movie in FLASH instance is Play and down play? Methods to solve this problem more than the previous two at the forum made, and today they made an example of free. 1, first a film animation elements (its contains

  • transaction control commands in oracle 2011-01-23

    Affairs to submit a show to submit: Use the commit command to commit all uncommitted updates Implicit Commit: command alter, audit, comment, connect, create, disconnect, drop, exit, grant, noaudit, revoke, rename, and out of sql * plus are implicit c

  • Control panorama with flash player 2010-04-05

    Many multimedia enthusiasts are always creative, try to integrate the various multimedia elements to effect up to a dazzling work. This article describes how to flash inserted in the panorama, use the control to achieve panoramic flash play, scene ch

  • Flash editing the language to use - JSFL 2010-10-27

    JSFL Overview JSFL in Flash editing environment using a language that Flash editing environment to perform certain operations, such as selection of an object, closing an already open document and so on. JSFL include a series of top-level function (to

  • Flash OBJECT and EMBED tags 2009-03-15

    Insert swf in html document is already familiar with the matter. However, these events are more mechanical then go change the template, and some property fields do not know What is the meaning, today, when the website has found a more comprehensive i

  • The use of Java to realize the remote control of PTZ and lens 2009-11-23

    Abstract: Based on China's actual situation and future development trends, to develop Java-based video surveillance system to realize the remote control PTZ and lens. System, including RS-232/RS-485 conversion, decoder and PTZ, lens and their connect

  • vi editor commands and shortcuts used 2010-03-26

    vi editor commands and shortcuts used Keywords: linux vi Analysis: Hily original link: http://hily.me/blog/2006/04/vi-shortcut/ Copyright: may be reproduced, reproduced sure to indicate the article hyperlink form the original source and author inform

  • Flash local shared object (SharedObject) 2010-04-06

    Flash local shared objects in the user's machine for lasting storage of the data set. Flash can control the data collection process, which deposit or to read a lot of information from the data. SharedObject object using Object Description: SharedObje

  • The TSO commands used 2010-06-12

    TSO TSO command from the TSO user environment issue (as in the main menu, select P.6 can enter TSO command processing tools). Used to start, stop software, check, set the operation of the system software and hardware equipment, operating system opera

  • Visual C + + realization of Flash animation player 2010-07-27

    Abstract: In this paper, the VC will External swf format for embedded VC internal resources, so that the program is running from the resource file Dongtaishifang Dao Lin Shi, Conger achieve VC playback of the animation on the Flash. Introduction Flas

  • vi editor commands and shortcut keys used 2010-10-13

    Cursor control commands Commands move the cursor h ^ h or a character to the left j or ^ j or ^ n to move down one line k or move up one line ^ p l or a space character to the right G to move the last line nG move to file the first n rows w move to t

  • js function called flash 2010-10-23

    Swf in the JavaScript function call http://bbs.flashtc.com/viewthread.php?tid=1051 copy, make a copy http://www.webstudio.com.cn/tutorial/tuts/flash8_javascript/external1.html "" " In the past year, for the developer to use the flash and ja

  • Z "There is no automatic mahjong machine remote control" Z 2010-12-29

    Z "There is no automatic mahjong machine remote control" Z ╱ [honest business Baidu strongly recommend ↘] QQ: -8756 05 570 [TEL: 13779968620] Contact: Mr. Hu [Tips:] [Citie be deleted, or do not see to, please point next to the "Baidu snaps

  • [╲ ㊣ "Where can we buy automatic mahjong machine remote control" ㊣ ╱] 2011-01-08

    ╲ [㊣ "Where can we buy automatic mahjong machine remote control" ㊣] [╱ with Imperial Brand] [q: 1103700089] [TEL: 15979882011] [Tips] Please click Please click next to the next "Baidu snapshot" "Internet industry snapshot" [m

  • Disk I / O performance monitoring commands 2011-05-15

    1) iostat command iostat command, mainly through observation of physical disk activity time and their average speeds, monitoring system input / output device load. According to the report generated by iostat command, the user can determine a system c

  • Common linux system monitoring commands 2011-08-24

    Record yourself linux system commands commonly used to facilitate later review found that more and more memory die Find the most CPU intensive of java threads ps command Command: ps-mp pid-o THREAD, tid, time, or ps-Lfp pid The results show: The comm

  • 图形的控制与表现 (Figure control and representation) 2012-11-18

    MATLAB提供的用于图形控制的函数和命令: axis: 人工选择坐标轴尺寸. clf:清图形窗口. ginput: 利用鼠标的十字准线输入. hold: 保持图形. shg:显示图形窗口. subplot: 将图形窗口分成N块子窗口. 1.图形窗口(figure window) (1). 图形窗口的创建和选择(Creating and selecting of figure window) figure(n):用于为当前的绘图创建图形窗口,每运行一次figure就会创建一个新的图形窗口,n表示

  • AS and JS communication 2010-05-09

    1.Fscommand In the web application, FS Command has two functions. (1) Flash can send commands to the scripting language. Can call the scripting language in a function or variable passed to the script language. (2) enable scripting language (js, vbs)

  • (Transfer) FScommand () implementation of information exchange with external programs 2011-01-03

    FScommand () implementation procedures for information exchange with the outside classroom teaching software for the production of three major programs (PowerPoint, Authorware, and Flash), one of the Flash, it is recognized as producing high-quality