[Color = red] In order to let everyone learn better from the Flash AS I have collected this Dongdong, I believe that it will help everyone, if so, it is the biggest wish of Keivnzk! ! ! ! ! Let's take a FLASH ACTION statement Chinese Phase Go to jump to the specified frame - Play Play - Stop Stop - Toggle High Quality Switching between high-quality and low-graphics - Stop All Sounds Stop all sounds - GET URL Jump to a super knot - fscommand Send fscommand command - load movie loading movie - Unload Movie Uninstall movie - TELL TARGET Tell Target - if Frame is loaded .. Decludes whether the frame is fully loaded - ON MOUSE EVENT mouse event. Other Actions. Including: - BREAK Jump A loop - CALL Call Specified Frame (General Shouting A Specific Function) - Comment Comments - Continue Continued Cycle - DELETE Deletes Variables in an Object (Object) - DO While Do WHILE CHIN - DUPLICATEMOVIECLIP Copy MC - ELSE Otherwise (with the IF) - Else if, if (with if in use) - Evaluate calls the custom function (Function) - for for loop - for .. in sequentially acquires the individual properties in the object or an array All Elements - FSCommand Send FSCommand Command - Function Declaration Custom Functions - GetURL Jump to a Super None - Goto Jump to Specified Frame - IF If - ifframeloaded ..frame is fully loaded - incrude Reading External ActionScript Program File (.AS) - LoadMovie loads MC-LoadVariables to reprint data in an external file, or the external file can be a text file, or a text value returned by scripts such as ASP / CGI - Trigger Conditions for ON Mouse event - OnClipEvent MC Event Trigger - Play Play - PRINT Output to Printer - RemoveMovieClip Remove MC - RETURN Returns a Value in Function - Set Variable Set Variable Value - STARTDRAG Start Drag - Stopall Sounds Stop all sounds - Stopdrag Stop Drag - SwapDepths Switching Two MC Depth - TELLTARGET Specifies the Target for Effective Action Command - TOGGEHigh Quality Switch - Trace Track Debug - unloadMovie Uninstall MC - VAR declaration partial variable - while as .. Established .. - with pair .. object (Object) ..
Operators -! Logic is not working -! = Not equal - "" String -% Take a number - && logic and operation - () Brand - * Multiply - plus sign - variable self-add Dimensional---variable self-reduction one-/ division -
Returns this value - false Boolean Non-value (0) - getProperty Get Properties - GetTimer Get Playing from Movies Start Playing to Total Playing Time (Mr.) - GetVersion Gets the version number of the browser's FlashPlayer - GlobalTolocal Scene (Scene) The coordinates in the middle are converted into the coordinate of the MC. Whether the MC is synchronized with another cross (ie conflict detection) - INT puts the decimal value to convert to an integer - ISFINITE Test value is a limited number - IsNan test is non-numerical - KeyCode Returns the keyboard value of the keyboard (ASCII value) - the coordinate of the LocalToglobal MC Converts the coordinate in the scene (Scene) - the maximum mark of the MaxScroll text box - NewLine wrap-Number converts the parameter into a value to return There are four cases: if x is a number, the return value is the number; if X is a Mozol number, return 0 or 1; if X is a string, the function will explain X as an index form. The decimal number; if X is not defined, it returns 0.
- PARSEFLOAT converts a string into floating point numbers - PARSEINT converts a string into an integer - random generates 0 to specifying random numbers - Scroll text box - String converts parameters into strings - TargetPath Returns specified Example MC Path Strings - True Boolean is a value of (1) - Unescape Reserved Hexadecimal Character String Functions String Function - CHR Transfer the ASCII code to the corresponding characters - Length Returns string Length - MBCHR converts ASCII / S-JIS encoding into the corresponding multi-byte character - MBLENGTH Returns the length of multibyte string - MBORD converts multi-byte characters into corresponding ASCII / S-JIS coding - MBSUBString intercepted more Strings in the byte string - ORD converts characters to ASCII code - Substring intercepts substrings in a string Properties attribute - _alpha alpha value (transparency value) - _CurrentFrame in the MC Current Frame number - _droptarget When using start Drag Drag a MC to return the absolute path of the MC in real time - _focusRect Highlight button or whether the display of a current area (True Display / Flase is not displayed) - _framesloaded The number of shaded frames loaded - _Height MC Height - _Highquality The high quality of the color (True high-quality / false low quality) - _Name MC instance name - _Quality Current image quality (string value) Low, Medium, High, Best - _ROTATION MC Rotate angle (unit: Degree) - _SoundBuftime Sound Buffer Size (Default 5, Unit: Second) - _Target MC Path - _totAlframes Total Frame - _URL Movie Call URL Address - _Visible is visible (True Visual / False is not visible) - _WIDTH MC width - _X mc X coordinate - _xmouse mouse X coordinate - _xscale MC X axial zoom - _y mc Y coordinate - _ymouse mouse Y coordinate - _yscale MC Y axial zoom
Objects Object Array Array - Concat Multiple array - Join converts elements in an array into strings, coupled through a specific splitter, and returns the result string - length Returns Array Length - New Array New Array Object - POP outlet (Filo First) - Push Factory - Reverse reverse phase (reversing array, and first element and last element interchange ...) - SHIFT out of queue (FIFO first out - SLICE intercept array generates a new array - Sort array element Sort - SPLICE The specified element from the array deletes the specified number of elements or deletes the specified element inserted from the array head into one element Boolean Boolean object - New Boolean New Boolean Object - TOSTRING converts the value of the Boolean object into a string value - Valueof Gets the value of the Boolean object (return value is Boolean) Color color object - getRGB Gets the RGB component of the color value (return value 0XRRGGBB HexTransform Get Color Value Translation (Return Value CXForm) [Not Clear] - New Color New Color Object - SetRGB Sets the RGB component of color value (parameter is 0XRRGBB hex) - SetTransform Set the conversion of color values (parameter is CxForm type) [Not clear]
Date Time and Date Object - GetDate Gets the current date (this month) - getday gets today is the day of the week (0-sunday, 1-monday ...) - getFullyEar Get the current year (four digits) - Gethours Get the current Hours (24-hour, 0-23) - getMilliseconds Get the current number of milliseconds - getMinutes Get the number of current minutes - getMonth Get the current month (note from 0: 0-Jan, 1-Feb ...) - GetSeconds Get the current second second Number - getTime Gets the number of seconds since 1970.1.1 0:00 - getTimeZoneOffset gets the current time and UTC format offset (in minutes) - getcdate Gets the current date in the UTC format (this month - GetcDay gets the UTC format Today is the day (0-sunday, 1-monday ...) - getuscfullyear gets the current year (four digits) of the UTC format - GetCHOURS Gets the current hour number of UTC format (24-hour system, 0-23) - getutcmilliseconds Gets the current millisecond number of UTC format - getcminutes Get the current number of UTC format - GetCmonth Gets the current month of the UTC format (note from 0: 0-Jan, 1-Feb ...) - Getcseconds Get UTC format The number of seconds - getYear Get the current abbreviation year (current year minus 1900) - New date New Date Time Object - SetDate Set the current date (number of this month) - setFullyEar Settings the current year (four digits) - Sethours Set the current hours (24 hours, 0-23) - setmilliseconds Set the current milliseconds - setminutes set the current minutes - setMonth Settings the current month (note from 0: 0-Jan, 1-Feb ...) - setSeconds settings when The number of first seconds - setTime Sets UTC format from 1970.1.1 0:00 Six - setcdate Sets the current date of UTC format (number of this month) - setuscFullyear Set UTC format (four digits) - set artchours Sets the current hour (24-hour system, 0-23) - setutcilliseconds set UTC format - SetutcMinTH set up the number of current minutes in the UTC format - SetutcMonth Set the current month of UTC format (Note from 0: 0- Jan, 1-Feb ...) - setuscSeconds Set the number of current seconds in the UTC format - SetYear Settings the current abbreviation year (current year minus 1900) - toString converts the date time value into a "date / time" string value - UTC returns a fixed time value of the specified UTC format date time key keyboard object - Backspace Backspace
-) Key - Capslock Capslock Key - Control Ctrl Key - DeleteKey Delete (DEL) button - DOWN Direction Under The Key - End End Key - Enter Enter - Escape Esc Key - GetASCII Gets the last press or release The ASCII code of the corresponding character of the key - getCode gets the last keyboard scan code - Home HOME button - INSERT INSERT (ISDOWN) When the specified button is pressed, return TRUE value - ISTOGGLED When Caps LOCK or Num Lock button is locked when it is locked (TRUE) - Left direction Left button - PGDN PAGEDOWN (PGDN) button - PGUP PageUp (PGUP) Key - Right Direction Right-Shift SHIFT Key - Space Spacebar - Tab Tab Key - UP Key Math Mathematical Function Object - ABS ABS (N) Takes N of the absolute value - Anti-Scene (Return Value Units: Arc) - Asin Asin (N) N - Anti - Strove (Return Value Units: Arc) ) - ATAN ATAN (N) N Annectant (Return Value Unit: Arc) - Atan2 Atan2 (X, Y) Calculate X / Y Urgent Cut - CEIL CEIL (N) Near N of the upper limit (upward ) - COS COS (N) Take N cosine (N of the unit: radians) - E Euler (about 2.718) - EXP index - Floor floor (n) takes an integer near N lower limit (down Removal) - LN10 LN10 (about 2.302) - LN2 LN2 (about 0.693) - LOG Take natural logarithm (E is the bottom) - LOG10E 10 is the log number of the bottom (about 0.434) - LOG2E 2 is the bottom Take the log of E (about equal to 1.443) - Max returns the maximum value in the two parameters - MIN Returns the minimum value in the two parameters - PI circumference rate (about 3.14159) - POW POW (X, Y) X - ROM generates 0-1 random number - Round Since the top of the round-saving - sin sin (n) Take N sinusoidal (N) - SQRT Open II - SQRT1_2 0.5 Open Number (about 0.707) - SQRT2 2 Open Number (about 1.414) - TAN TAN (n) Take N of the orthol (N of N: Arc)
MovieClip Film Clip Object - AttachMovie Generates an entity in a library and binds it to a movie - DupicateMovieClip Copy the current MC Generate New MC - GetURL enables the browser to browse the specified page - GotoandPlay jumps to the specified frame and play- gotoAndStop jump to the specified frame and stops playing - loadMovie introduce an external movie into a specified level - loadVariables introducing variable values in external files - nextFrame next frame - play player - prevFrame former one - removeMovieClip delete duplicateMovieClip created by MC - startDrag Start Drag MC - Stop Stop MC Play - Stopdrag Stop Drag Mc - UnloadMovie Uninstall MOVIE MOUSE Mouse Object from LoadMovie - Hide Hide Mouse Pointer - Show Display Mouse Pointer Number Numerical Object - Max_Value Flash5 Maximum Value Allowed 1.79769313486231 E 308 - Min_Value Flash5 Allowed Minimum Value 5 E-324 - NAN NOT A NUMBER - NEGATIVE_INFINITY is negative - New Number New Numeric Object - Positive_Infinity is positive - TOSTRING converts numeric values into characters String Object Object - New Object New Object - TSTRING Convert Object to String - ValueOf Returns the value of the object Selection Select Area Object - GetBeginIndex Get the starting position of the editable text area, -1 indicates that the text area - getCaretIndex get Current editing position, -1 indicates that there is no editable text area - GeTendIndex gets the end position of editable text area -1 Indicates an unbounded text area - getFocus Gets the text variable name of the current activation text area - SetFOCUS Settings Current Active Text Area - SetSerection Settings You Edit Text Start Position and Terminal Location Sound Sound Object - AttachSound Bind A voice in the library - getPan Gets the mixed value of the sound [Not clear] - GetTransform Gets the amount of change in the current sound (Return value type: sxform) [Not clear] - GetVolume gets the volume of the current sound (%) - New Sound New Sound Object - SetPan Set the sound mixed value [Not clear] - SetTransform Set the change amount of the current sound (parameter type: sxform) [not clear] - setvloume Set the volume of the current sound (%) - Start Start playback Current sound - stop playing the current sound
String String Object - Charat returns a character in the specified index table - Charcodeat Returns a character of a character in the specified index table - Concat join combined with multiple strings - fromCharcode constructs a new string from the character code group - IndexOf is looking for a substring in a string, the return sub-string start position or -1 (-1 means not found) - LastIndexof is looking for a substring in a string, returning a substring termination location or -1 (-1 means not found) - Length Returns the length of the string - New String New String Object - SLICE Returns Subrings Specified in Strings - Split Converts strings into an array based on qualifiers - Substr substr (start, length) Back from Start, LENGTH long substrings - Substring Substring (Indexa, IndexB) Returns the substrings between Indexa..indexb - TOLOWERCASE converts all uppercase characters in the string to lowercase - TouPercase translated override characters in the string to uppercase XML Extendability Markup Language Object - AppendChild Add a sub-node to the specified XML element - Attributes XML element properties Array - ChildNodes A sub-node node node of XML elements - Clonenode Clone (copy) Current Node - CreateElement New New XML Elements - CreateTextNode New A New XML Text Node - Firstchild Returns the First Sub Node Node of the Current XML Node - HaschildNodes Current XML Node (Return True] Node / Flash - Insertbefore insert a new sub-node in front of a specified XML element - LastChild Returns the last sub-node of the current XML node - Load introduces XML elements from the specified URL into Flash - loaded as XML Element introduction or sending while introducing Flash , Returns True Value - New XML New An XML Object - Next Subling Current XML Node Next Node - NodeName Returns the name of the current XML node - NodeType returns the current XML node (1-element, 3-text) - NodeValue Returns the value of the current XML node (Text Type Back Text) - OnLoad When introducing or send simultaneous introduction, trigger event - ParentNode Returns the parent node of the current XML node - Parsexml converts XML string to XML object - Previoussibling Current XML Previous Node Previous Node - RemoveNode Remove Notes from XML Text - Send Sends an XML Element to the Specified URL Address from Flash - SendandLoad Sends an XML Element from Flash to the specified URL address and introduce XML results - TSTRING converts XML objects to XML string Expression Xmlsocket XML socket - Close Close an XML socket - Connect Connect an XML socket, specify URL, and define its port number - New Xmlsocket to create a new XML socket - OnClose Close the XML socket, trigger events - OnConnect Connect the XML socket, trigger events - OnXML When you get XML from the server, trigger events - Send Send XML to the server appendix:
A statement concept Description The MATH class is a top class that does not have to use the constructor to use its method and properties. Methodology and properties using this class can access and process mathematical constants and functions. All attributes and methods of the MATH class are static and must be called using syntax math.method (parameter) or math.constant. In the action script, the highest precision definition constant of the dual precision IEE-754 floating point number is used. There are several methods of MATH classes using the arc of the angle as the parameters. The arc value can be calculated by the following equation, or simply deliver the equation (input value) as the arc parameter. To calculate the arc value, use this formula: RADIAN = Math.pi / 180 * Degree The following example passes the equation as a parameter to calculate the sine value of a 45 degree angle: Math.Sin (Math.pi / 180 * 45) The same Flash Player 5 with Math.sin (.7854) fully supports the MATH class. In Flash Player 4, you can use the Math class, but these methods are using approximation simulations, which may not be as accurate as the non-analog math functions supported by Flash Player 5. Method Summary of Math Types Description Math.Abs () Calculates the absolute value. Math.acos () calculates the anti-hosh value. Math.asin () calculates an alternate. Math.atan () calculates an unprepared value. Math.atan2 () calculates the angle from the X coordinate axis to the point. Math.ceil () rounds the numbers up to the closest integer. Math.cos () calculates the cosine value. Math.exp () calculates the index value. Math.floor () rounds the numbers to the closest integer. Math.log () calculates natural logarithm. Math.max () Returns a larger one in two integers. Math.min () returns a smaller in two integers. Math.pow () calculates Y times of X. Math.random () returns a pseudo-random number between 0.0 and 1.0. Math.Round () is rounded into the closest integer. Math.sin () calculates the sine value. Math.sqrt () calculates the square root. Math.tan () calculates the correct value. The properties of the MATH class are all attributes of the MATH class. Attribute Description Math.e Euler (Euler) constant, the bottom of natural logarithm (approximately 2.718). Natural logar of Math.ln2 2 (approximately 0.693). Math.log2e E is logged at 2 (approximately 1.442). Natural logarithm of Math.ln2 10 (approximately 2.302). Math.log10e E is logged at 10 (approximately 0.434). Math.pi The ratio of a circle perimeter with its diameter (approximately 3.14159). Math.sqRT1_2 1/2 of the square root of the square root (approximately 0.707). Math.SQRT2 2 square root (approximately 1.414). Math.cos () Availability Flash Player 5. In Flash Player 4, the method and attribute of the Math class is to use approximately simulated, which may not be as accurate as the non-analog math functions supported by Flash Player 5. Usage Math.cos (X) Parameter x The angle value of the radians. Returns a number. The method of explaining; returns the cosine value (between -1.0 and 1.0) of the cord value (value between -1.0 and 1.0). The angle x must be specified in an arc. Use the information outlined in the Math class to calculate the arc. Math.sin () Availability Flash Player 5.