FLASH ActionScript Language Detailed

Source: Internet
Author: User
Tags abs expression connect natural logarithm numeric value sin socket tostring
Detailed

-Go to jump to the specified frame
-Play played
-Stop Stops
-Toggle high Quality to switch between high-definition and low quality
-Stop all Sounds the playback of all sounds
-Get URL jumps to a super join
-Fscommand Send Fscommand command
-Load Movie Load film
-Unload Movie Uninstall movie
-Tell Target tells targets
-If Frame is Loaded ... To determine whether a frame is fully loaded
-On Mouse Event mouse events

。 Other actions. Including:

-Break Jump Loop
-Call invokes the specified frame (generally shouting for a particular function)
-Comment Notes
-Continue continues to circulate
-delete Deletes a variable from one object (object)
-Doing while doing while loop
-Duplicatemovieclip Replication MC
-Else otherwise (associated with IF)
-Else if otherwise (if associated with if)
-Evaluate calls the Custom function (function)
-For Loop
-For ... In order to get each property in an object or all the elements in an array
-Fscommand Send Fscommand command
-function declares a custom function
-GetURL jump to a super join
-Goto jumps to the specified frame
-If If
-Ifframeloaded. Whether the frame is fully loaded
-Include an externally-readable ActionScript program file (. As)
-Loadmovie Loading MC
-Loadvariables reprint data from external files, which can be text files or text values returned by scripts such as asp/cgi
-The trigger condition for the on mouse event
-Event triggering program for Onclipevent MC
-Play played
-Print output to printer
-Removemovieclip Delete MC
-Return returns a value in functions (function)
-Set Variable Set variable value
-SetProperty Set properties
-StartDrag Start dragging
-Stop Stops
-Stopallsounds stop playback of all sounds
-Stopdrag Stop dragging
-swapdepths switch Depth of two MC
-telltarget Specifies the target for the action command to take effect
-togglehighquality Switch between high-definition and low quality
-Trace Tracing debugging
-Unloadmovie Uninstall MC
-Var declares a local variable
-While ... When set up ...
-with pair of.. Objects (object) to do ...

。 Operator (Operators)
- ! Logical non-operation
-!= Not equal to
-"" String
-% remainder
-&& Logic and operation
-() Bracket
-* Multiplication
-+ Plus
-+ + variable from add one
--minus sign
--variable self-minus one
-/Division
-< less than
-<= less than or equal to
-<> Not equal to
-= = Equal
-> Greater than
->= is greater than or equal to
-and logic and
-Not logical
-or logical OR
-TypeOf return Variable type
-void entity, no return
- | | Logical OR operational
+ Bitwise Operators bit operator
-& Position and operation
-<< left-shift
->> Position Right shift
->>> bit right (no sign)
-^ bit XOR or operation
- | Bit or action
-~ Complement operation
+ Compound Assign Operators composite operator
-%= a%=b equivalent to A=a%b
-&= a&=b equivalent to A=a&b
-*= a*=b equivalent to A=a*b
-+ + = a+=b equivalent to A=a+b
---= a-=b equivalent to A=a-b
-/= a/=b equivalent to a=a/b
-<<= a<<=b equivalent to A=a<<b
->>= a>>=b equivalent to A=a>>b
->>>= a>>>=b equivalent to A=a>>>b
-^= a^=b equivalent to A=a^b
-|= a|=b equivalent to a=a| B
+ String Operators strings operator (note: essentially ASCII comparison)
-Add connection two strings
-eq a eq b string a value equal to the string value 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 value
-Le A le B string a value is less than or equal to the string B value
-Lt A LT B string a value is less than the string B value
-Ne a ne b string a value is not equal to string B value
+ Functions function
-Boolean value of the Boolean expression (True or False)
-Escape removes illegal characters from the URL string and converts its arguments to a string in a URL-encoded format (string)
-Eval accesses and evaluates the value of an expression (expression) and returns the value as a string
-False Boolean non-value (0)
-GetProperty Get Properties
-Gettimer Gets the total playback time from movie start to now (milliseconds)
-GetVersion Gets the Flashplayer version number of the browser
-the coordinates in the globaltolocal scene (Scene) are converted into the coordinates in the MC
-HitTest test a point or whether the MC is crossed with another (i.e. conflict detection)
-int converts decimal values to integers
-Isfinite whether the test value is a finite number
-isNaN test is not a numeric value
-KeyCode Returns the keyboard value (ASCII value) of the keyboard press key
-Coordinates in the Localtoglobal MC to be converted into scenes (Scene)
-Maximum row size for maxscroll text box
-NewLine line feed
-Number converts a parameter to a numeric value that has the following four conditions of return:

If X is a number, the return value is the number, and if X is a Boolean, returns 0 or 1, or if x is a string, the function interprets x as an exponential decimal number, or 0 if x is undefined.
-Parsefloat converts strings to floating-point numbers
-parseint Converts a string to an integer
-Random produces a random number between 0 and a specified number
-Scroll the starting scroll line in the text box
-String converts arguments to strings
-TargetPath returns the path string for the specified instance MC
-True Boolean is a value (1)
-Unescape a hexadecimal character that preserves the%xx format in a string
+ String Functions strings function
-CHR converts ASCII code to corresponding characters
-Length returns the lengths of the string
-MBCHR converts the Ascii/s-jis encoding to the corresponding multibyte character
-Mblength Returns the length of a multibyte string
-Mbord converts multibyte characters to corresponding Ascii/s-jis encodings
-Mbsubstring intercepts a string in multibyte strings
-Ord converts characters to ASCII code
-SUBSTRING the substring in the Intercept string
+ Properties Property
-_alpha alpha value (transparency value)
-Current frame number of _currentframe in MC
-_droptarget returns the absolute path to the MC in real time when dragging an MC using the start drag
-_focusrect The Highlight button or the display of a current region (true shows/flase not displayed)
-_framesloaded The number of shadow frames that have been loaded
-The height of _height MC
-_highquality Quality (true high-definition/false low picture)
-Instance name of _name MC
-_quality Current picture (string value) low,medium,high,best
-_rotation MC Rotation angle (unit: degree)
-_soundbuftime The sound's buffer size (default value 5, units: seconds)
-The path of _target MC
-Total frame number of _totalframes
-_url The URL address of the movie being invoked
-_visible is viewable (true visual/false not visible)
-width of _width MC
-_x MC's x-coordinate
-_xmouse the mouse x-coordinate
-X-axis scaling of _xscale MC
-y-coordinate of _y MC
-_ymouse The y-coordinate of the mouse
-Y-Axial scaling of _yscale MC
+ Objects Object
+ Array Arrays
-Concat Merges multiple arrays
-Join converts an element in an array into a string, joins it with a specific delimiter, and returns the result string
-Length returns array lengths
-new array to create the object
-Pop out Stack (FILO first)
-Push into stack (into queue)
-Reverse reversed (reversed array, and first element and last element interchange ...)
-Shift out Queue (FIFO first in first out)
-Slice the substring in the array to generate a new array
-Ordering of sort array elements
-Splice Deletes the specified number of elements from the specified element in the array or deletes the specified element
-Unshift Inserts an element from the array header
+ Boolean Boolean Object
-New Boolean to create an object
-ToString Converts the value of a Boolean object to a string value
-ValueOf Gets the value of the Boolean object (the return value is a Boolean)
+ Color Object
-getRGB gets the RGB component of the color value (the return value is 0xRRGGBB hexadecimal)
-GetTransform Gets the conversion amount of the color value (the return value cxform type) [Not very clear]
-New color creates a newly colored object
-Setrgb sets the RGB component of the color value (parameter is 0xRRGGBB hexadecimal)
-SetTransform Sets the conversion amount of the color value (parameter is cxform type) [Not very clear]
+ Date and Time objects
-GetDate Get Current date (number of this month)
-Getday Get today is the day of the week (0-sunday,1-monday ...)
-getFullYear Get current year (four digits)
-GetHours Gets the current number of hours (24 hours, 0-23)
-Getmilliseconds Gets the current number of milliseconds
-Getminutes Gets the current number of minutes
-GetMonth Gets the current month (note starting at 0:0-jan,1-feb ...)
-Getseconds Gets the current number of seconds
-GetTime Gets the number of seconds since 1970.1.1 0:00 in the UTC format
-getTimezoneOffset Gets the current time and the offset value in UTC format (in minutes)
-getUTCDate Gets the current date in UTC format (date of the month)
-getUTCDay gets the UTC format today is the day of the week (0-sunday,1-monday ...)
-getUTCFullYear Gets the current year in UTC format (four digits)
-getUTCHours Gets the current number of hours in UTC format (24-hour system, 0-23)
-getUTCMilliseconds Gets the current number of milliseconds in UTC format
-getUTCMinutes Gets the current number of minutes in UTC format
-getUTCMonth Gets the current month in UTC format (note starting at 0:0-jan,1-feb ...)
-getUTCSeconds Gets the current number of seconds in UTC format
-GetYear Gets the current abbreviated year (minus 1900 for the current year)
-New date Create a Time object
-Setdate Set the current date (number of this month)
-setFullYear Set Current year (four digits)
-Sethours Set the current number of hours (24 hours, 0-23)
-Setmilliseconds Sets the current number of milliseconds
-Setminutes Set the current number of minutes
-Setmonth Set the current month (note starting at 0:0-jan,1-feb ...)
-Setseconds Set the current number of seconds
-SetTime sets the number of seconds since 1970.1.1 0:00 in UTC format
-setUTCDate Set the current date in UTC format (date of this month)
-setUTCFullYear sets the current year in UTC format (four digits)
-setUTCHours Sets the current number of hours in UTC format (24-hour system, 0-23)
-setUTCMilliseconds Sets the current number of milliseconds in UTC format
-setUTCMinutes Sets the current number of minutes in UTC format
-setUTCMonth Set the current month in UTC format (note starting at 0:0-jan,1-feb ...)
-setUTCSeconds Sets the current number of seconds in UTC format
-Setyear Sets the current abbreviated year (minus 1900 for the current year)
-ToString Converts a date-time value to a string value in the form of date/time
-UTC Returns a fixed time value for the specified UTC format date time
+ Key Keyboard Object
-BACKSPACE BACKSPACE (<-) key
-CapsLock CapsLock Key
-Control CTRL key
-DeleteKey Delete (Del) key
-Down Direction key
-End END Key
-Enter enter (return) key
-ESCAPE ESC key
-Getascii Gets the ASCII code of the corresponding character of the last pressed or loosened key
-GetCode Gets the keyboard scan code of the last pressed key
-Home Home key
-Insert Insert (INS) key
-Isdown Returns a true value when the specified key is pressed
-Istoggled returns True when CAPS LOCK or NUM LOCK key is locked (true)
-Left Arrow
-PgDn PageDown (PGDN) key
-PgUp PageUp (PgUp) key
-Right Arrow
-Shift SHIFT key
-Space SPACEBAR
-Tab key
-Up ARROW key
+ Math Function Object
-ABS ABS (n) Take the absolute value of n
-ACOs ACOs (n) N of the inverse cosine (return value unit: radians)
-ASIN ASIN (n) N of the inverse chord (return value unit: radians)
-Atan atan (n) N of the tangent (return value unit: radians)
-Atan2 atan2 (x,y) calculates x/y's tangent
-Ceil ceil (n) takes an integer (rounded up) near the upper limit of n
-Cos cos (n) takes the cosine of n (unit of N: radians)
-E Euler (Euler) index (approx. 2.718)
-Exp Index
-Floor floor (n) takes an integer near the lower bound of N (rounding down)
-LN10 ln10 (approx. 2.302)
-LN2 LN2 (approx. 0.693)
-Log takes the natural logarithm (E is the base)
-log10e 10 is the logarithm of the base e (equal to 0.434)
-LOG2E 2 is the logarithm of the base e (equal to 1.443)
-Max returns the maximum value in two parameters
-min Returns the minimum value in two parameters
Pi Pi (approximately equal to 3.14159)
-Pow Pow (x,y) x's Y-second square
-Random produces 0-1 random numbers
-Round rounded rounding
-Sin sin (n) take the sine of n (Units of N: radians)
-Sqrt Open Root
-Sqrt1_2 0.5 Open root (about 0.707)
-SQRT2 2 Open root (about 1.414)
-Tan Tan (n) takes the tangent of n (unit of N: radians)
+ MovieClip Movie Clip Object
-Attachmovie produces an entity of the MC in a library and binds it to a movie
-Dupicatemovieclip Copy current MC to generate new MC
-GetURL The browser to browse the specified page
-gotoAndPlay jumps to the specified frame and plays
-gotoAndStop jumps to the specified frame and stops playing
-Loadmovie introduces an external movie to the specified layer
-Loadvariables to introduce variable values in external files
-NextFrame Next Frame
-Play played
-Prevframe Previous Frame
-Removemovieclip Delete the MC created with Duplicatemovieclip
-StartDrag start dragging the MC
-Stop stops the MC to play
-Stopdrag Stop dragging the MC
-Unloadmovie uninstall of movie introduced by Loadmovie
+ Mouse Mouse Object
-Hide mouse pointer
-Show mouse pointer
+ Number Value Object
-Maximum allowable value of Max_value FLASH5 1.79769313486231 e 308
-Minimum allowable value of Min_value FLASH5 5 e-324
-whether NaN is a non-numeric (not a number)
-whether negative_infinity is a negative number
-New number Create the numeric object
-whether positive_infinity is a positive number
-ToString converts numeric values to strings
+ Object Objects
-New Object newly created
-ToString Convert object to String
-ValueOf Returns the value of the object
+ Selection Select Area Object
-Getbeginindex Gets the starting position of the editable text area,-1 indicates no editable text area
-Getcaretindex Gets the current edit position,-1 indicates no editable text area
-Getendindex Gets the end position of the editable text area,-1 indicates no editable text area
-GetFocus Gets the text variable name of the current active text area
-SetFocus Sets the current active text area
-SetSelection sets the starting and ending positions of editable text
+ Sound Sound Object
-Attachsound a sound in the binding library
-Getpan Get the sound of the mixed usu [not very clear]
-GetTransform Gets the current sound transformation (return value type: sxform) [not very clear]
-Getvolume gets the volume of the current sound (percentage)
-New Sound newly created sound object
-Setpan Set sound mixed usu [not very clear]
-SetTransform Sets the current sound transform (parameter type: sxform) [not very clear]
-Setvloume Sets the current sound volume (percentage)
-Start to play the current sound
-Stop stops playing the current sound
+ String Object
-CharAt returns a character in the specified index table
-charCodeAt code that returns a character in the specified index table
-Concat joins merging multiple strings
-fromCharCode constructs a new string from the character code group
-IndexOf finds substrings in string, returns substring start position or-1 (-1 indicates not found)
-LastIndexOf finds substrings in string, returns substring termination position or-1 (-1 indicates not found)
-Length returns the lengths of the string
-New String Object
-Slice returns the substring of the specified intercept in the string
-Split converts a string into an array based on qualifiers
-Substr substr (start, length) returns a substring of length length starting from start
-Substring substring (indexa, INDEXB) returns to Indexa. substring between the INDEXB
-toLowerCase converts all uppercase characters in a string to lowercase
-toUpperCase converts all lowercase characters in a string to uppercase
+ XML Extensible Markup Language Object
-AppendChild adds a child node to the specified XML element
-Attributes an attribute array of XML elements
-ChildNodes a set of child nodes of an XML element
-CloneNode Clone (copy) current node
-CreateElement Create a new XML element
-createTextNode creates 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 (returns true with a child node/flash none)
-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 introduces XML elements into flash from the specified URL
-Loaded returns a true value when XML elements are introduced or sent into flash
-New XML creates an XML object
-NextSibling the next node of the current XML node
-NodeName Returns the name of the current XML node
-NodeType Returns the type of the current XML node (1-element, 3-text)
-NodeValue Returns the value of the current XML node (text-back)
-OnLoad triggers events when introduced or sent simultaneously
-ParentNode returns the parent node of the current XML node
-Parsexml converts an XML string into an XML object
-PreviousSibling the previous node of the current XML node
-Removenode deletes a node from the XML text
-Send an XML element to the specified URL address from flash
-Sendandload sends an XML element from flash to the specified URL address and introduces the XML result
-ToString converts an XML object to an XML string expression
+ xmlsocket XML Socket Interface
-Close closes an XML socket interface
-Connect an XML socket interface, specify the URL, and define its port number
-New Xmlsocket to create an XML socket interface
-Triggers event when OnClose closes an XML socket interface
-Triggers an event when OnConnect connect an XML socket interface
-Triggers an event when Onxml gets XML from the server
-Send XML to Server

Flash password Also
1. Anti-ASV anti-compile:
Precede the code with the following:

function A () {0 ()}

2. Secure SWF file encryption:
In the first frame of the animation, add the code that detects the URL:

Web=getproperty ("", _url);
Test=web. " IndexOf "(" Your url "," 0.000000d ");
if (test== "-1") {
gotoAndStop (88); The number of frames is any.
ElseIf (Not (test== "-1")) {
gotoAndPlay (GetProperty ("",-currentframe+1));
}
}

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.