Flash playback controls property Detailed

Flash  playback controls property Detailed

First, property papers

1.AlignMode (write) 
Syntax: AlignMode As Long 
Description: Alignment (attributes linked with SAlign). When the aspect ratio of the video control is not inconsistent and WMode ExactFit, film (not amplified) is displayed in the control position of the property adjustment available. The attribute value of flag bits. The attribute value (binary) corresponding to 1 bit flag is set and the corresponding direction of alignment. Attribute values and corresponding alignment (parentheses after a binary number): 1: left (0001) 2: right-aligned (0010) 4: Top alignment (0100) 8: bottom alignment (1000). May be combined with a variety of alignment, while two or more bits of the flag is 1, i.e. these combinations of four base value sum. For example while the top and left-justified alignment, the attribute value is set to 5 (0101).  
Example: set to right alignment film:
movie.AlignMode = 2

2.BackgroundColor (write)
Syntax: BackgroundColor As Long  
Description: video
background color (in conjunction with BGColor). In (Red + Green + Blue) color values is calculated. Red, green and blue color range (0-255). The default background color of the movie to -1. If the movie is set as the background color or background picture, then the change will not see the property values
affected.
Example: Film background color to blue: movie.BackgroundColor = 255

3.Base (write)  
Syntax: Base As String  
Description: Specifies the base address resolve all statements relative path for the film. This property is particularly useful when the movie with their other documents required when not in the same directory. Unless otherwise specified, the default value Base. "", Which is the diameter of the current movie is located.  
Examples: 
movie.Base = " Http://www.domain.com/pathname1/pathname2 "

4.BGColor (reading and writing)  
Grammar: BGColor As String  
Description: movie background color (and BackgroundColor linkage). The difference is that with BackgroundColor, BGColor is a six-digit hexadecimal number, two each representing red, green and blue color values. Such as: FFEEAA red represents the value FF, green is EE, blue value of AA. 
Example: Film background color to red: movie.BGColor = "FF0000"

5.DeviceFont  (reading and writing)
Grammar: DeviceFont As Boolean  
Description: Determines whether to use the video embedded fonts, default is False. The attribute value to True to force the player does not use film embedded fonts using the local system fonts.
Examples: movie.DeviceFont = True

6.EmbedMovie  (reading and writing)  
Grammar: EmbedMovie As Boolean  
Description: Whether the movie is stored into the container control is located. When the property after you have loaded a movie set to True, you do not have to play the video read SWF files. This makes it easier to use Flash movies in PowerPoint presentations or VB program. But this property is set to True, Movie properties of the control will no longer accept the new value of the. To play the other movies (Movie property to assign a new value), you must first EmbedMovie property to False.  
Examples: = True movie.EmbedMovie  
7.FrameNum  (write)  
Syntax: FrameNum As Long  
Description: Number of the current video frame (counting from 0). Set the property value will stop the movie at the frame specified by FrameNum.  
Examples: 
Displays the current frame: MsgBox "are currently displayed" & movie.FrameNum & "frame." Causes the frame 10 of the video display: Bomovie.FrameNum = 9   

8.Loop  (reading and writing)  
Grammar: Loop As Boolean  
Description: Whether loop. True is set to loop, set to False only played once.  
Examples: movie.Loop = True   

9.Menu  (reading and writing)  
Grammar: Menu As Boolean  
Description: Whether to display the menu. True to display all menus, the menu is set to False shielded, but there is still an "About Macromedia Flash Player ...". If you really do not like the menu, it should aim to achieve by means of intercepting mouse messages in the program. Unlike the stand-alone Flash Player, in the right-click menu in the control point "About ...", it will open the browser to Macromedia's web site to see the About. 
Examples: movie.Menu = False

10.Movie  (reading and writing)  
Grammar: Movie As String  
Note: To play video path (URL). Setting this property to the URL of a SWF file will load the file and play it. If the movie is on the local hard disk to write the absolute path from the beginning of the letter; if the movie is on a website, write the full URL address.  
Examples: movie.Movie = " http://www.domain.com/path1/path2/filename.swf " 
or: movie.Movie = "c: \ temp    \ test.swf"

11.Playing  (read-only)  
Syntax: Playing As Boolean  
Explanation: The current state of play. If the movie is playing, the property value is True, otherwise False.
Examples: If movie.Playing = False Then MsgBox "movie has stopped playing!" End If   

12.Quality  (write) 
Syntax: Quality As Long  
Description: picture quality (and Quality2 linkage). Quality may be taken: 0-- corresponds Quality2 take "Low"  
1-- corresponds Quality2 take "High" 2-- corresponds Quality2 take "AutoLow" 3-- corresponds Quality2 take "AutoHigh" 
Examples: movie.Quality = 1  

13.Quality2 (write)  
Syntax: Quality As String  
Description: picture quality (Quality and linkage). Quality2 can take: Low: emphasis on playback speed regardless of display, but does not enable antialiasing function. High: emphasis on the screen regardless of the playback speed, and antialiasing function is always enabled. If a video is not included in the animation smoothing bitmap; if the animation, the bitmap is not smoothed. (Animation here should be to do a picture translational or rotational) AutoLow: the first focuses on the playback speed, but whenever possible to improve the display. Disable antialiasing when you play a start function. If the player detects that the processor can accept the deregulation, antialiasing function is enabled. AutoHigh: it began as playback speed and display both, but if necessary, to sacrifice quality to ensure speed. Antialiasing feature is enabled at the start of play. However, the specified frame rate if the actual rate is slower than the design, disables antialiasing functions to increase the playback speed. 
Examples: movie.Quality2 = "High"  

14.ReadyState (read-only)  
Syntax: ReadyState As Long  
Description: The current state of the movie. ReadyState can take: 0-- Loading 1-- 2-- uninitialized loaded  
3-- is interacting 4-- complete 
example: If movie.ReadyState = 4 Then MsgBox End If " movie has loaded!"   

15.SAlign  (write)  
Syntax: SAlign As String  
Description: Alignment mode (AlignMode linkage). When AlignMode representatives of each of the alignment pattern is set to "1", SAlign value is accordingly set to "L" (Left), " T" (Top), "R" (Right), "B" (Bottom) each combination of characters. ( 'L', 'T' , 'R', 'B' of the same order)  
Examples: set to left alignment film and top alignment: movie.SAlign = "LT"

16.Scale  (reading and writing)  

Syntax: Scale As String  
Description: Zoom mode (and ScaleMode linkage). Scale may be taken: ShowAll - Show all video within the control region, the aspect ratio remains the same video, the video size determined by the length or width of the control in a smaller side. NoBorder - within the control portion displays the video area, the video aspect ratio remains unchanged, the size of the film depends on the length or width of the control in a large side. ExactFit - Show all video within the control area, the ratio of film width to length aspect ratio of the force is equal to the control. Examples: MsgBox "The current zoom mode is:" & movie.Scale   

17.ScaleMode (write)  
Syntax: ScaleMode As Long  
Description: zoom mode (in conjunction with the Scale). ScaleMode may be taken: taking 0-- corresponds Scale "ShowAll" 1-- corresponds take Scale "NoBorder" 2 - corresponds to the take Scale "ExactFit"  
Examples: ZOOM mode so that the film changed to "ExactFit": movie.ScaleMode = 2   

18.Stacking  (reading and writing)  
Grammar: Stacking As String  
Description: For HTML, HTML to Flash Player as a kind of "behavior" is used, this property determines how the Flash movie relative to its reference HTML content display. (About the "behavior" See information on the style sheet). Stacking can take: none-- "behavior" is not displayed. replaceall-- "Behavior" is displayed substituted entire contents of other elements, including background. content-- "behavior" is displayed only replace the contents of other elements. background-- "behavior" is displayed only replace the background of other elements. below - "behavior" is displayed below all other elements of the content. belowflow-- "Behavior" is displayed in reverse Z order over the child objects of other elements, but on the content of the main element. aboveflow-- "act" in a positive Z in the order shown below child objects of other elements, but above the main content of the element. above-- "behavior" displayed above the content of all other elements. top-- "behavior" display placed over the entire page content. 
Examples: movie.Stacking = "below"   

19.TotalFrames (Read Only)  
Syntax: TotalFrames As Long  
Description: Returns the total number of frames in the video. The parameters to be valid to the movie has finished loading (ReadyState = 4).  
Examples: If movie.ReadyState = 4 Then MsgBox "This movie Total" & movie.TotalFrames & "frame" 
End the If   

20.WMode  (reading and writing)  
Grammar: WMode As String  
window mode controls: Description. WMode can take: The default value Window-- WMode properties, works as a typical Flash player mode that play movies in a rectangular window control, so generally can provide the fastest animation. Opaque - makes the film opaque. Transparent - creates a transparent film. If there is a transparent film clips, when put here, you can see the controls below background. But use this property value, the playback speed of the animation may be slower.  
Examples: movie.WMode = "Transparent" After reading the above, you get all the data on how a given film's very understanding. But those are mostly static content, the film eventually want to play continuously look after it to move, how to control it? Then you have to look down to resistance method the following articles.   

Second, the method chapter       

We all know that, in a separate player, we can only watch from beginning to end, at most, the middle stop, advance or rewind a one, if there are some places not look at it flashed again Look really want to go back through the trouble. Fortunately, the film short point, at worst play it again, if large files, can be really impatient to see it again, it took the mouse or keyboard hard to knock it. This design really makes people suspect that is not received kickbacks mouse and keyboard manufacturers; to go beyond the built-in Flash player, which is the first to be improved! After reading the following description, you know, these controls are not that hard. Flash control also provides more ways to interact with the movie. If you make the Flash have a good understanding, then, to understand some faster, but also be able to make more powerful Flash movie and procedures. Let Flash program or web page really "live". The method does not return a value of the following:  
1.Back  
Syntax: the Back ()   
Description: back a movie, and stops playing.  
Examples: movie.Back  

2.Forward  
Syntax: Forward ()  
Description: movie forward one, and stop playing. 
Examples: movie.Forward  

3.GotoFrame  
Syntax: GotoFrame (FrameNum As Long) 
Description: Jump to the movie specified by FrameNum, and stops playing. If the frame has not been specified load, the player advances to the last available frame and stop calling process will produce unpredictable results. The best way to determine whether the use of PercentLoaded loaded enough videos to the implementation of this method. FrameNum parameter is zero-based, and this in Flash Goto action is not the same as it was from the beginning of.  
Examples: Jump to the first film 20: movie.GotoFrame 20  

4.LoadMovie  
Syntax: LoadMovie (layer As Long, url  As String)
Description: url specified by a movie loaded onto the layer specified by the layer. 
Example: Loading movie.swf layer to 0: movie.LoadMovie 0, "movie.swf"  

5.Pan  
Syntax: Pan (x As Long, y  As Long, mode As Long)
Description: an amplified video translation specified by the x and y distance. x and y are relative values. That movie is the control relative to the distance to translate (you can imagine control is a window film that we see on the outside scenery through the window, we see a window with respect to the translation of some of the scenery distance, it is outside moving scenery, but the window is not moving). With the mode parameter to specify the value of x and y is the percentage of pixels of the window or, when mode = 0 Coordinate Systems pixels; mode = 1 to Coordinate Systems to calculate the percentage ratio of the window. Translation and can not go beyond the border of the film, that is, to reach up to a translation direction of a video's edge aligned with the control.  
Examples: Controls up film left the respective pixels with respect to the pan 5 (of course, the control does not move, the film is shifted by the right down): movie.Pan 5,5,0  

6.Play  
syntax: Play ()  
Description: to start the movie.  
Examples: movie.Play  

7.Rewind  
Syntax: Rewind ()  
Description: rewind. Return to the first frame of the movie.  
Examples: movie.Rewind  

8.SetVariable  
Syntax: SetVariable (name As String, value  As String)
Description: The value is set by the name of Flash variables specified value.  
Examples: movie.SetVariable "/ Form: UserName" , "John Smith"

Guess you like

Origin www.cnblogs.com/ubantu/p/11288524.html