Author: egoldy nature: Translation Views: 11624 published at: 15:14:42
Statement: This article is an example of the Chinese version of the unpublished Keith Peters event 3.0 making things move. The second chapter in the book. Webstudio will provide forum Forum support when publishing the Chinese version. Please indicate the source for reprinting. Thank you!
Next to the previous article .....
2.5 use code Animation
Well, now you should have understood enough basic knowledge about how to encode i
Let's face it: The client is never a friendly place for Java programmers. Java's technology at the client side, including applets, swing, and JavaFX, has so far yielded only limited results. JavaScript has almost no place like the Java language except for its name. and Adobe Flash, it does look like JavaScript, really? It may have been a few years ago that Flash was as understandable as JavaScript, but as ActionScript
Basic Tutorials
This translator: EgoldyArticle Source: http://www.ultrashock.comArticle Nature: Translation
ActionScript 2.0-Introduction
With the introduction of FLASHMX2004, Macromedia introduced a new type of script called AS2, and in the course of the tutorial we will learn about the new features of AS2. New object-oriented models and how to make AS1 scripts over to AS2.
Why we need a new scripting lang
To this moment, the fact that we as a developer has to face is that the development of language is showing a blossoming landscape. Perhaps not to like, nor to choose, we need is rational, rational choice of a can bring their greatest value of the language. With the growing prosperity of the desktop front-end RIA technology, it is necessary to begin to focus on such a language: ActionScript 3.
The client is
object in the scenario, we usually use the following method.Createemptymovieclip () ---- create an empty video clip.Createtextfield () ------ create a text field.In ActionScript 3.0, we create instances by constructing them. As follows.New moiveclip () ---- creates an empty video clip.New sprite () ---- create a new empty Sprite.New textfield () ---- create a new empty text field.New shape () ------ create a canvasProcessing Methods for existing comp
This article describes the new features and changes that ActionScript 3 has in relation to ActionScript 2. And in the last step of the article to teach you how to use Flex Builder to compile and run the first AS3 program.
Syntax enhancements and changes:
Two concepts of package (package) and namespace (namespace) are introduced. Where package is used to manage
About how to load external SWF in ActionScript 3
Disclaimer: Anyone and organizations are welcome to repost the articles in this blog, but the original links and author information must be marked.
Link: http://blog.csdn.net/li_007/archive/2009/03/27/4031073.aspx
Pioneering little turtle -------> csdn
For external SWF loading, corner 3 has changed the implementa
How to pass parameters to flash in ActionScript 3 (1)
Today, when I tested a flash ad program for Audi, I found that the clicktag provided by Audi is the code of ActionScript 2, which is not supported in ActionScript 3, so I went through Adobe docs.
The clicktag code in 2.0
Article 3: html5 mdash; article 2: Use Sprite to implement animation 1. Assume that all objects that can add mouse events have a mouseEve...
Article 3: mouse events and game character Movement
Write html5 with the syntax of the imitation of the ActionScript-article 1,
Write html5 using the syntax similar to ActionScript
Article 3: mouse events and game character Movement
Write HTML5 using the syntax similar to ActionScript-the first article shows an imageHttp://blog.csdn.net/lufy_legend/article/details/6753032
Write HTML5 using the syntax similar to ActionScript -- Article 2: Use sprite to implement animationHttp://blog.csdn.net/lufy_legend/article/details/6760812
I. HypothesisA
Actionscript 2 wasn ' t, but a few things drove some developers. For example if you initialized A is variable with an Object, which is magically behaved like a static classmember, Due to the storage of the prototype. In ActionScript 3 The works just like expected, as you can.
//////////
The old problems in the AS2 were solved in the AS3. Initializes arrays and ob
I recently started to use flex builder. Developers are still comfortable with this. The flex framework has powerful functions. It is useless for Ria applications, but it is not very useful for game development. In addition, it generates about KB of SWF files. Therefore, I decided to create only the ActionScript project. Then the problem comes...
Flash has a class called Fl. transitions. Tween, which is convenient for scaling or fade-in and fade-out
ActionScript and all the resources for the SWF file) for type detection, AS3 also has type detection at Run-time (runtime, level Flashplayer, or other software that plays SWF) while playing SWF, so AS2 hacks (forced access to inaccessible properties) is no longer valid.
九、一个 had to say the good newsAll of the variables (properties) and functions (methods) in AS3 are scoped to the runtime and class/instance. This is very different from AS2, we no long
Source: http://bauhouse.wordpress.com/2009/01/16/135/
Using mxmlc (the mxml and ActionScript 3 stand alone, command line compiler provided with the Free Flex 3 SDK) to compile your ActionScript 3 SWFs, you can use the SWF metadata tag to set common properties in the mai
Chinese version of ActionScript 3 cookbook
Download in PDF format (Full Version)
Happy learning!
2008.01.25 update
This article is declined without consent
Chapter 1. Basics of The ActionScript Language
Chapter 2. Custom classes
Chapter 3. Runtime Environment
Chapter 4. Numbers and mathematics
Chapter 5. Array
Chapt
The official release of the Simplified Chinese version of the event 3.0 cookbook in the event of a short period of time was announced. This is undoubtedly a great deal for colleagues who like flash and like as. Now let's get started first.Chapter 1. Basics of The ActionScript LanguageChapter 2. Custom classesChapter 3. Runtime EnvironmentChapter 4. Numbers and mathematicsChapter 5. ArrayChapter 6. Visual Ob
deleted, the remaining element index value is automatically minus 1) Pop and shift return the deleted element EG: array. Pop (); Array. Shift (); (4) Splice: You can insert or delete elements in an array flexibly. (5) Slice: Gets the partial element in the array. Note: The difference between splice and slice. (6) Concat: Combining multiple elements or arrays into a new array Note: The difference between concat and push. 3. Deep copy
A few days ago by the boss recommended an article, from 7yue Brother's blog, the author is Sean Moore,
Original address: http://www.insideria.com/2009/04/51-actionscript-30-and-flex-op.html
Instead of being bloated after the program has been written, it is better to keep an eye on the key points and remind yourself at all times. Translate it out so that you can check it out later.
1 Avoid using its constructor when creating a new array.
Do this: var
There are also embedded methods in ActionScript 3, which should be embedded functions. Let's take a look at the specific example: Package
...{
Import flash. display. Sprite;
Public class nestedfunction extends Sprite
...{
Public Function nestedfunction ()
...{
Trace (add (1, 2 ));
}
Private function add (X: int, Y: INT): int ...{
Return addaliass (x, y );
Function addaliass (X: int, Y: INT): int ...{
Ret
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.