-ms|428,format-date string, followed by symbol "|" + Date format character, for example-format|14- 04-16 20:15:36 637------If type is an array, you can take a value: New-New object, can be followed by the symbol "|" + element type (default is Object), for example-array| Integer---Note data class Property comments, you can not specifyIt is important to note that when specifying a data class property type, if
Which new language is the transformation? Unity, cocos2dx, swift, oc, h5, java or c ++! Which new language is the transformation? Unity, cocos2dx, swift, oc, h5, java or c ++! Reply content: discard as3. I have written Flash/Flex/FMS/AIR/AS1/2/3 for more than a decade, but I have not switched to: Good Bye, Flash!
AS3 programmers (if you are also familiar with Flash), there are still many transformation di
As3 API Summary (basically have the original code download) original address: http://www.flexstudio.cn/blog? P = 14
Adobe APIs
Corelib, mappr, Flickr, YouTube and more.
Http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries
APE (ActionScript physics engine)
Http://www.cove.org/ape/
As3awss3lib
ActionScript 3.0 library for interacting with Amazon S3
Http://code.google.com/p/as3awss3lib/
As3soundeditorlib
ActionScript 3.0 library
Notes
First, the parameters of the function in AS3 can have a default value.
Public Function TestFunc () {MyFunc ();}Private Function MyFunc (para1:int=10,para2:string= "str"): void{Trace (Para1 + "," + para2); Ten, str}
No extra parameters can be given in the AS3.
Public Function TestFunc () {MyFunc (2, "3", 4);}Private Function MyFunc (para1:int,para2:string): void{Trace (Para1 + "," + para2);}
The compil
, when there is this parameter, will ignore other parameters-module: Indicates what function module needs to be executed, valid parameters are-module macro (representing output constants),-module object (representing output Java and AS3 Common data Class),-module database (representing output Java and AS3 Common data classes, and MySQL's Build table scripts)-template:freemaker required output file template
This article describes in detail the relationships and differences between flash, flex, as3, and air. Hope to help beginners.
As3
Generally, as is the language of the Flash Platform. AsProgramAnd can be compiled into SWF and SWC. SWF is what we often call Flash animation. However, SwF is not just an animation, but a carrier of RIA. There are three versions of ActionScript: Version 1.0 (AS1), version 2.0
I think it's time to correct some of the pitfalls, that is, how JS in HTML gets the SWF object of Flash and interacts with AS3. The official wording should be to return the id attribute of the OBJECT tag in Internet Explorer, or return the name attribute of the embed tag in Netscape (AS3 API manual). function Thismovie (moviename) { if (navigator.appName.indexOf ("Microsoft")! =-1) { return windo
# arrayThe Concept of # # # array* Array is an ordered set of values* Each value in the array is called an element* Each element can be a value of any data type* Each element has an index (subscript)* The index of the element starts at 0 and increments in order. The element's largest index 2^32-2# # # Create an array*
, you can find the Instance Object in front of it. You can use Getobjectsunderpoint Method to obtain the instance object, but if the program is not well written, the instance object cannot be found (I use As3 This method is used to rewrite farm games. After multiple debugging, it can be implemented perfectly ), Therefore, this method is not good enough. Third, if you use Hittestobject , Hittestpoint Or Hittest Collision detection is not suit
I have never studied the interaction between AS3 and JS, that is, SWF communication in html. Recently, I was forced to invest in it out of project requirements. I will also make a summary here.
I. The fastest way to pass values in HTML
When inserting SWF in HTML, you can add parameters, such:
Files/home.swf? Id = "21 ″
In AS3, you can receive
Var id: String = stage. loaderInfo. parameters ["id"]; this metho
Tags: HTTP use AR strong SP on ef bs line
1. Create a regular expression in either of the following ways:VaR exp1: Regexp = new Regexp ("ABCD", "G ");VaR exp2 =/ABCD/g; // G Global indicates global match
Trace ("abcdefabcd". Match (exp1 ));Trace ("abcdefabcd". Match (exp2); // output ABCD and ABCD, where the string. Match (expression) returns a matched array.
2. metacharacters1) "." indicates matching any single character (such as: 1, E, medium, *, e
Public Function Showtimer () {
Stage.scalemode = Stagescalemode.no_scale;
Stage.align = Stagealign.top_left;
INITMC ();
}
A lot of new constants are added to the AS3 instead of strings. This brings us a lot of convenience. For example, to limit the movie's zoom mode to a fixed size, the AS2 code is
Stage.scalemode = "Noscale";
A value is a string that, when entered, is not prompted by code, and is easily lost (I often copy the string in the Help do
This section describes the constant configuration. It is mainly used for constant synchronization between the client (as3) and the server (java), such as error codes and request identifiers.
Configuration format:
A constant can only have one root node macros. A sub-node macro represents a constant, and a sub-node group also represents a constant. However, it has a special relationship with macro, the sub-node, the following is a detailed description
Flex mxml + as3 vs wpf xaml + C #
Object --> eventdispatcher --> displayobject --> Spirit --> movieclip
The flex framework and Microsoft WPF are very similar. They all use their own XML syntax to express the interface.WPF is XAML, while Flex is mxml. They are also expressed in XML syntax. They are all used to express the UI, including attributes, events, behaviors, data binding, and effects. They all have their own set of related controls.Mxml fro
At present, flash in all aspects of the application of more and more wide, and flash is not only focus on their own brilliant effect, but also need to exchange data with external programs to achieve more powerful functions, with the advent of AS3, Flash and external interaction of the way is increasingly simple and rationalized. Talk about the interaction of AS3 and background data here today (choose
Public Function showtimer (){
Stage. scalemode = stagescalemode. no_scale;
Stage. align = stagealign. top_left;
Initmc ();
}
In as3, many new constants are added to replace strings. This brings us great convenience. For example, to limit the zoom mode of a video to a fixed sizeCodeIs
Stage. scalemode = "noscale ";
The value is a string, and there is no code prompt during input, so it is easy to lose errors (I often copy the string in the help
I recently started as3 and encountered many problems. I fixed the issue this afternoon and decided to summarize it so that I could learn about it later.1. Add text boxes by code. Generally, add text boxes in batches. How do I operate the text box after adding them? In this case, you can set an array, add the generated text box to the array, and operate the text b
HP Code (test1.php):
This form of HTML code is not recommended:
The code is as follows
Copy Code
/*** The disadvantage of using this method is that there is no output after the output statement of the as value (the Echo statement below).* Workaround: You can add a variable to the end of the output statement, which is not required to be received in the AS3, for example:* echo "coun=". $country. " pro= ". $province." city=
Are you an as3 veteran? If the following content is of great help to you, please pin it down!
I. Loading images in the SWF Library
The new process is the image decompression process. When the image is in the class state, the memory occupied by the image is the same as the disk space occupied by the image in the SWF file. Once the image is decompressed to a non-compressed bitmapdata, the memory usage increases dramatically.
Whether it is PNG, JPG, or
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.