Basic action. Including: -Go to jump to the specified frame -Play -Stop stop -Toggle high quality switching between high quality and low quality -Stop all sounds: Stop playing all sounds. -Get URL jump to a superjoin -Fscommand: Send the fscommand -Load movie -Unload movie -Tell target: Inform target -If frame is loaded... determines whether the frame is fully loaded. -On mouse event . Other actions. Including: -Break Jump Out Loop -Call: Call a specified frame (usually a specific function is called) -Comment comment -Continue Loop -Delete: delete a variable in an object. -Do while do while WHILE LOOP -Duplicatemovieclip: Copy MC -Else otherwise (used with if) -Else if otherwise, if (used with if) -Evaluate calls a User-Defined Function) -For Loop -For .. In: obtains each attribute of an object in sequence or all elements in an array. -Fscommand: Send the fscommand -Function declaration: User-Defined Function -Jump to a superjoin with geturl -Go to the specified frame -If -Ifframeloaded .. indicates whether the frame is fully loaded. -Include: Read external ActionScript Program File (.) -Loadmovie: Load MC -Loadvariables: reprints data in external files. These external files can be text files or text values returned by scripts such as ASP/CGI. -Trigger condition for on mouse events -Onclipevent Mc event trigger Program -Play -Print Output to printer -Removemovieclip: delete MC -Return: returns a value in the function. -Set variable: Set the variable value. -Setproperty: Set attributes. -Startdrag -Stop stop -Stopallsounds: stops playing all sounds. -Stopdrag: Stop dragging -Swapdepths: swap the depth of two MC -Telltarget: Specify the target for the action command to take effect. -Togglehighquality switching between high quality and low quality -Trace tracing debugging -Unloadmovie: uninstall MC -Var declares local variables. -While when... is set .. -With: performs the. Object operation .. . Operators) -! Logical non-operation -! = Not equal -"" String -% Returns the remainder. -& Logic and operations -() Brackets -* Multiplication number -+ Plus sign -++ Variable auto-Increment -Minus sign --- Variable auto-minus one -/Division number -<Less -<= Less than or equal -<> Not equal -= Equal -> Greater -> = Greater than or equal -And logic and -Not logical non- -Or logic or -Typeof: Return variable type -Void entity, no response -| Logic or operation + Bitwise operators bit Operators -& Bits and operations -<Shift left -> Shifted right ->>> Shift right (unsigned) -^ Bitwise OR operation -| Bit or operation -~ Makeup operation + Compound assign operators compound Operator -% = A % = B is equivalent to a = A % B -& = A & = B is equivalent to a = A & B -* = A * = B is equivalent to a = a * B -+ = A + = B is equivalent to a = a + B --= A-= B is equivalent to a = A-B -/= A/= B is equivalent to a = A/B -<= A <= B is equivalent to a = A < -> = A> = B is equivalent to a = A> B ->>>= A >>>> = B is equivalent to a = A >>> B -^ = A ^ = B is equivalent to a = a ^ B -| = A | = B is equivalent to a = A | B + String operators string operator (Note: it is essentially an ASCII comparison) -Add connects two strings -Eq a eq B string a value is equal to string B -Ge a ge B string a value greater than or equal to string B value -GT a gt B string a value greater than string B -Le a le B string a value less than or equal to string B value -Lt a lt B string a value less than string B value -Ne a ne B string a value is not equal to string B value + Functions Functions -Boolean: Boolean value of the expression (true or false) -Remove invalid characters from the URL string in escape and convert the parameters to strings according to the URL encoding format) -Eval accesses and computes the value of an expression and returns the value in the form of a string. -False Boolean non-value (0) -Getproperty -Gettimer: gets the total playback time (in milliseconds) from the start of the video to the present) -Getversion: Obtain the Flash Player version of the browser. -The coordinates in the globaltolocal scenario (scene) are converted into coordinates in MC. -Hittest: test whether a vertex or MC is cross with another vertex (that is, conflict detection) -Int: converts a decimal value to an integer. -Isfinite: test whether the value is a finite number. -Isnan: test whether it is a non-numerical value. -Keycode: return the keyboard value (ASCII value) for pressing the key on the keyboard) -Coordinates in localtoglobal MC are converted to coordinates in the scene (scene ). -Maximum row of the maxscroll text box -Newline line break -Number converts a parameter to a value. The return value can be in the following four situations: If X is a number, the return value is the number. If X is a Boolean number, 0 or 1 is returned. If X is a string, the function interprets X as an exponential decimal number. If X is not defined, 0 is returned. -Parsefloat: converts a string to a floating point number. -Parseint: converts a string to an integer. -Random generates random numbers ranging from 0 to a specified number. -Start scroll row in the scroll text box -String: converts a parameter to a string. -Targetpath: returns the path string of the specified instance MC. -True: Boolean value (1) -Unescape retains the % XX hexadecimal characters in the string + String functions string Function -CHR converts the ASCII code to the corresponding character -Length: returns the length of the string. -Mbchr converts ASCII/S-JIS encoding to corresponding multi-byte characters -Mblength: returns the length of a Multi-byte string. -Mbord converts multi-byte characters into corresponding ASCII/S-JIS Encoding -Mbsubstring: truncates strings in a multi-byte string. -Ord converts characters into ASCII codes. -Substring: truncates substrings in a string. + Properties Properties -_ Alpha value (Transparency value) -_ Current number of frames of currentframe in MC -_ Droptarget: When you use start drag to drag an MC, the absolute path of the MC is returned in real time. -_ Focusrect highlight button or whether the current area is displayed (true/flase not displayed) -_ Framesloaded: Number of mounted Frames -_ Height: height of MC -_ High quality (true high quality/false low quality) -_ Name Mc Instance name -_ Quality current image quality (string value) low, medium, high, best -_ Rotation Mc rotation angle (unit: Degree) -_ Soundbuftime specifies the buffer size of the sound (default value: 5; Unit: seconds) -_ Target Mc path -_ Total number of totalframes Frames -_ URL: the URL address called by the movie -_ Visible: whether it is visible (true visible/false invisible) -_ Width Mc width -_ X Mc X coordinate -_ X coordinates of the xmouse -_ XScale Mc X-axis zooming -_ Y Mc y coordinate -_ Y coordinate of ymouse -_ Yscale MC's Y-axis scaling degree + Objects object + Array -Concat combines multiple arrays -Join: converts an element in an array into a string, concatenates it with a specific delimiter, and returns a result string. -Length: returns the length of the array. -New array: Create an array object -Pop-out stack (FILO first in and then out) -Push to stack (inbound Queue) -Reverse reverse (reversing the array, swapping the first element with the last element ......) -Shift-out queue (FIFO first-in-first-out) -Slice captures the substrings in the array to generate a new array. -Sorting of sort array elements -Splice deletes a specified number of elements from an array or deletes a specified element. -Unshift inserts an element from the array Header + Boolean object -New Boolean: Create a Boolean object -Tostring: Convert the value of a Boolean object to a string value. -Valueof: obtain the value of a Boolean object (Return Value: Boolean) + Color object -Getrgb: Obtain the RGB component of the color value (Return Value: 0xrrggbb hexadecimal) -Gettransform: Get the conversion amount of the color value (cxform type returned value) [not clear] -New Color: Creates a color object. -Setrgb: sets the RGB component of the color value (the parameter is 0xrrggbb hexadecimal) -Settransform: sets the conversion amount of color values (the parameter is cxform type) |
+ Date time and date object
-Getdate: Get the current date (number of the current month)
-Getday: Get the day of the week (0-Sunday, 1-Monday ...)
-Getfullyear: Get the current year (four digits)
-Gethours: Get the current hour (in 24-hour format, 0-23)
-Getmilliseconds: Get the current number of milliseconds
-Getminutes: Get the current number of minutes
-Getmonth: Get the current month (Note: 0-Jan, 1-feb ...)
-Getseconds: Get the current number of seconds
-Gettime: the number of seconds since, January 1, in UTC format.
-Gettimezoneoffset: Get the offset value of the current time and UTC format (in minutes)
-Getutcdate: Get the current date in UTC format (number of the current month)
-Getutcday: the day of the week in UTC format (0-Sunday, 1-Monday ...)
-Getutcfullyear: Get the current year in UTC format (four digits)
-Getutchours: Get the current hour in UTC format (in 24-hour format, 0-23)
-Getutcmilliseconds: Get the current number of milliseconds in UTC format
-Getutcminutes: Get the current number of minutes in UTC format
-Getutcmonth: Get the current month in UTC format (Note: Starting from 0: 0-Jan, 1-feb ...)
-Getutcseconds: Get the current number of seconds in UTC format
-Getyear: Get the current abbreviation year (current year minus 1900)
-New Date: Create a date and time object
-Setdate: set the current date (number of the current month)
-Setfullyear: set the current year (four digits)
-Sethours: set the current hour (in 24-hour format, 0-23)
-Setmilliseconds: set the current number of milliseconds
-Setminutes: set the current number of minutes
-Setmonth: set the current month (Note: 0-Jan, 1-feb ...)
-Setseconds: set the current number of seconds.
-Settime: set the number of seconds since, January 1, in UTC format.
-Setutcdate: set the current date in UTC format (number of the current month)
-Setutcfullyear: set the current year in UTC format (four digits)
-Setutchours: set the current hour in UTC format (in 24-hour format, 0-23)
-Setutcmilliseconds: set the current number of milliseconds in UTC format
-Setutcminutes: set the current number of minutes in UTC format
-Setutcmonth: set the current month in UTC format (Note: Starting from 0: 0-Jan, 1-feb ...)
-Setutcseconds: set the current number of seconds in UTC format
-Setyear: set the current abbreviation year (current year minus 1900)
-Tostring: converts a datetime value to a string value in the form of "date/time ".
-Return the fixed time value of the specified UTC format date and time.
+ Key keyboard object
-Backspace (<-) Key
-Capslock: The capslock key.
-Control CTRL
-Deletekey Delete (DEL) Key
-Down
-End key
-Enter enter (Press ENTER)
-Escape ESC key
-Getascii: obtains the ASCII code of the character corresponding to the last key that is pressed or released.
-Getcode: Get the Keyboard Scan code of the last key to be pressed.
-Home Key
-Insert (INS) Key
-Isdown: returns true if the specified key is pressed.
-Istoggled: returns true when the Caps Lock or Num Lock key is locked)
-Left click
-Pgdn Pagedown (pgdn) Key
-Pgup Pageup (pgup) Key
-Right-click
-Shift key
-Space key
-Tab key
-Up
+ Math mathematical function object
-Abs ABS (n) obtains the absolute value of N.
-Arccosine of ACOs (n) n (unit of Return Value: radian)
-Asin (n) n returns the arc sine (unit: radian)
-Atan (n) n arc tangent (unit: radian)
-Atan2 atan2 (x, y) calculates the arc tangent of x/y.
-Ceil (n): an integer near the upper limit of N (rounded up)
-Cos cos (n): returns the cosine of N (unit of N: radian)
-E Euler (Euler) index (about 2.718)
-Exp Index
-Floor floor (n) is an integer (rounded down) that is near the lower limit of N)
-Ln10 ln10 (approximately 2.302)
-Ln2 ln2 (approximately 0.693)
-Log is the natural logarithm (Base E)
-Log10e 10 is the base logarithm of E (approximately 0.434)
-Log2e 2 is the base logarithm of E (approximately 1.443)
-Max returns the maximum value of the two parameters.
-Min: returns the minimum value of the two parameters.
-Pi circumference rate (approximately 3.14159)
-Power Y of POW (x, y) x
-Random generates random numbers between 0 and 1.
-Round rounded to an integer
-Sin (n): returns the sine of N (unit of N: radian)
-SQRT root number
-Sqrt1_2 0.5 root number (approximately 0.707)
-Sqrt2 2 root number (approximately 1.414)
-Tan (n) returns the tangent of N (unit of N: radian)
+ Movieclip video clip object
-Attachmovie generates an MC entity in the library and binds it to a movie.
-Dupicatemovieclip: copy the current MC to generate a new MC.
-Geturl allows the browser to browse a specified page
-Gotoandplay redirects to the specified frame and plays the video.
-Go to the specified frame and stop playing.
-Loadmovie introduces an external movie to a specified layer
-Loadvariables: introduce variable values in external files
-Next frame of nextframe
-Play
-Prevframe: Previous Frame
-Removemovieclip: Delete the MC created with duplicatemovieclip
-Startdrag: Start to drag MC.
-Stop: Stop Mc playback.
-Stopdrag: Stop dragging MC
-Unloadmovie: uninstall the movie introduced by loadmovie.
+ Mouse object
-Hide hides the mouse pointer
-Show show mouse pointer
+ Number value object
-Max_value the maximum value allowed by flash5 is 1.79769313486231 e 308.
-Min_value the minimum value allowed by flash5 is 5 e-324.
-Whether Nan is a non-numeric value (not a number)
-Whether negative_infinity is negative
-New number: New Numeric object
-Whether positive_infinity is positive
-Tostring: converts a value to a string.
+ Object
-New object: New Object
-Tostring: the conversion object is a string.
-Valueof: returned object Value
+ Selection select area object
-Getbeginindex: obtains the starting position of the Editable shard.-1 indicates that the shard cannot be edited.
-Getcaretindex: Get the current editing position.-1 indicates no editable editing area.
-Getendindex: Get the end position of the Editable region.-1 indicates that the region cannot be edited.
-Getfocus: Get the text variable name of the current active partition.
-Setfocus: set the current active region.
-Setselection: Set the start position and end position of editable text
+ Sound object
-Attachsound: a sound in the bound Library
-Getpan: Obtain the sound mixing value [not clear]
-Gettransform: Get the transform volume of the current sound (Return Value Type: sxform) [not clear]
-Getvolume: Get the volume of the current sound (percentage)
-New Sound: Creates a sound object.
-Setpan: Set the sound mixing value [not clear]
-Settransform: set the current audio transform volume (parameter type: sxform) [not clear]
-Setvloume: Set the volume of the current sound (percentage)
-Start: start to play the current sound.
-Stop: stops playing the current sound.
+ String object
-Charat returns a character in the specified index table
-Charcodeat returns a character in the specified index table Code
-Concat join combines multiple strings
-Fromcharcode constructs a new string from the character code group
-Indexof searches for substrings in a string and returns the starting position or-1 (-1 indicates that the substring is not found)
-Lastindexof: searches for substrings in the string, and returns the substring termination position or-1 (-1 indicates that the substring is not found)
-Length: returns the length of the string.
-New String: Creates a String object.
-Slice returns the specified substring in the string.
-Split converts a string into an Array Based on the delimiter
-Substr (START, length): returns a length-long substring starting from start.
-Substring (Indexa, indexb) returns the substring between Indexa.. indexb.
-Tolowercase: converts all uppercase characters in the string to lowercase letters.
-Touppercase: converts all lowercase characters in the string to uppercase.
+ XML eXtensible Markup Language object
-Appendchild: Add a child node to the specified XML element.
-Attribute array of attributes XML Element
-Childnodes: array of child nodes of an XML Element
-Clonenode: Clone (copy) the current node
-Createelement: Create a New XML element.
-Createtextnode: Create a New XML text node.
-Firstchild: returns the first child node of the current XML node.
-Haschildnodes: whether the current XML node has a child node (return true if there is a child node/flash if there is no child node)
-Insertbefore inserts a new child node before the child node of a specified XML Element
-Lastchild: returns the last child node of the current XML node.
-Load: Introduce XML elements into flash from the specified URL
-Loaded: if an XML element is introduced or sent to flash at the same time, true is returned.
-New XML: Create an XML Object
-Nextsibling: Next node of the current XML Node
-Nodename: returns the name of the current XML node.
-Nodetype: Type of the current XML node returned (1-element, 3-text)
-Nodevalue: return the value of the current XML node (text type)
-Onload: triggers an event when both the import and the sending are introduced.
-Parentnode: returns the parent node of the current XML node.
-Parsexml: converts an XML string to an XML object.
-Previussibling: Previous node of the current XML Node
-Removenode deletes a node from the XML text
-Send sends an XML element from flash to the specified URL address.
-Sendandload: sends an XML element from flash to the specified URL and introduces the XML result.
-Tostring: converts an XML object to an XML string expression.
+ Xmlsocket XML sleeve Interface
-Close: close an XML interface.
-Connect connects to an XML interface, specifies the URL, and defines its port number.
-New xmlsocket creates a new XML sleeve Interface
-The onclose event is triggered when the XML set interface is closed.
-Event triggered when onconnect connects to the XML set Interface
-Event triggered when onxml retrieves XML from the server
-Send XML message to the server